Add -e to test scripts where necessary.
[external/binutils.git] / gold / ChangeLog
1 2017-01-23  Rahul Chaudhry  <rahulchaudhry@google.com>
2
3         * testsuite/icf_safe_so_test.sh: Use "set -e".
4         * testsuite/icf_safe_test.sh: Likewise.
5         * testsuite/icf_test.sh: Likewise.
6
7 2017-01-23  Vladimir Radosavljevic  <Vladimir.Radosavljevic@imgtec.com>
8
9         * mips.cc (Mips_output_data_plt::rel_plt): Remove const from return
10         type.
11         (Target_mips::make_plt_entry): Make the sh_info field of .rel.plt
12         point to .plt.
13
14 2017-01-23  Vladimir Radosavljevic  <Vladimir.Radosavljevic@imgtec.com>
15
16         PR gold/21054
17         * mips.cc (Mips_got_info::record_global_got_symbol): Don't add symbol
18         to the dynamic symbol table if it is forced to local visibility.
19         (Target_mips::do_finalize_sections): Don't add __RLD_MAP symbol to the
20         dynamic symbol table if it is forced to local visibility.
21
22 2017-01-20  Nick Clifton  <nickc@redhat.com>
23
24         * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS
25         from a pointer to an array.
26
27 2017-01-13  H.J. Lu  <hongjiu.lu@intel.com>
28
29         PR gold/21040
30         * powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative):
31         Cast 0x80008000 to uint64_t.
32
33 2017-01-12  Cary Coutant  <ccoutant@gmail.com>
34
35         * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
36
37 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
38
39         PR gold/21040
40         * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
41         Remove unnecessary 'typename' keyword.
42         (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
43         (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
44         (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
45         (Output_data_plt_x86_64_bnd::do_write): Likewise.
46
47 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
48
49         PR gold/21040
50         * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
51         Remove unnecessary 'typename' keyword.
52         (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
53         (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
54         (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
55         * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern
56         declarations.
57
58 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
59
60         PR gold/21039
61         * testsuite/script_test_13.sh: Adjust patterns to work for i386.
62         * testsuite/script_test_15a.sh: Likewise.
63         * testsuite/script_test_15b.sh: Likewise.
64         * testsuite/script_test_15c.sh: Likewise.
65
66 2017-01-11  Alan Modra  <amodra@gmail.com>
67
68         * powerpc.cc (class Powerpc_copy_relocs): New.
69         (Powerpc_copy_relocs::emit): New function.
70         (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables.
71         (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines.
72         (Powerpc_relobj::do_relocate_sections): New function.
73         (Powerpc_relobj::make_toc_relative): Likewise.
74         (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc
75         and .toc too.
76         (ok_lo_toc_insn): Move earlier, and handle more insns.
77         (Target_powerpc::Scan::local): If optimizing toc accesses, set
78         no_toc_opt for entries we can't edit.  Check insn validity.
79         Emit "toc optimization is not supported" warning, downgraded
80         from error.
81         (Target_powerpc::Scan::global): Likewise.
82         (Target_powerpc::Relocate::relocate): Edit TOC indirect code
83         to TOC relative.  Don't emit "toc optimization is not supported"
84         error here.
85
86 2017-01-10  Cary Coutant  <ccoutant@gmail.com>
87
88         * aarch64.cc (AArch64_relobj::do_relocate_sections): Call
89         Sized_relobj_file::relocate_section_range().
90         * arm.cc (Arm_relobj::do_relocate_sections): Likewise.
91         * object.h (Sized_relobj_file::relocate_section_range): New method.
92         * reloc.cc (Sized_relobj_file::do_relocate_sections): Move
93         implementation...
94         (Sized_relobj_file::relocate_section_range): ...to new method.
95
96 2017-01-10  Alan Modra  <amodra@gmail.com>
97
98         * testsuite/ver_test_8.sh: Accept .TOC. in lieu of
99         _GLOBAL_OFFSET_TABLE_.  Allow zero count.
100         * testsuite/copy_test_relro_1.cc (c, q): New vars.
101         * testsuite/copy_test_relro.cc: Rewrite to test read-only
102         status of variables directly.  Reference new vars in
103         read-only data.
104
105 2017-01-10  Alan Modra  <amodra@gmail.com>
106
107         * options.h: Add --secure-plt option.
108         * powerpc.cc (Target_powerpc::Scan::local): Detect and error
109         on -fPIC -mbss-plt code.
110         (Target_powerpc::Scan::global): Likewise.
111
112 2017-01-09  Alan Modra  <amodra@gmail.com>
113
114         * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
115         ".rela.plt" at ".plt".
116
117 2017-01-07  Alan Modra  <amodra@gmail.com>
118
119         * powerpc.cc: Use shorter equivalent elfcpp typedef for
120         Reltype and reloc_size throughout.
121         (Target_powerpc::symval_for_branch): Exclude dynamic symbols.
122         (Target_powerpc::Scan::local): Use local var r_sym.
123         (Target_powerpc::Scan::global: Likewise.
124         (Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
125
126 2017-01-02  Alan Modra  <amodra@gmail.com>
127
128         Update year range in copyright notice of all files.
129
130 For older changes see ChangeLog-2016
131 \f
132 Copyright (C) 2017 Free Software Foundation, Inc.
133
134 Copying and distribution of this file, with or without modification,
135 are permitted in any medium without royalty provided the copyright
136 notice and this notice are preserved.
137
138 Local Variables:
139 mode: change-log
140 left-margin: 8
141 fill-column: 74
142 version-control: never
143 End: