Remove redundant checks for relocatable link (MIPS).
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
1728969e
VR
12017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
2
1e1247c8
VR
3 * mips.cc (Target_mips::Relocate::relocate): Remove redundant
4 checks for relocatable link.
5 (Mips_relocate_functions::reljalr): Likewise.
1728969e 6
c3847462
VR
72017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
8
1e1247c8
VR
9 * mips.cc (class Mips_output_section_options): New class.
10 (Target_mips::do_make_output_section): New method.
c3847462 11
453018bf
VR
122017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
13
1e1247c8
VR
14 * mips.cc (Mips_relocate_functions::rel26): Don't print relocation
15 overflow error message.
16 (Target_mips::relocate_special_relocatable): Improve relocation
17 overflow error message.
18 (Target_mips::Relocate::relocate): Likewise.
19
202017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
21
22 * mips.cc (symbol_refs_local): Return false if a symbol
23 is from a dynamic object.
24 (Target_mips::got_section): Make _GLOBAL_OFFSET_TABLE_ STV_HIDDEN.
25 (Target_mips::set_gp): Refactor. Make _gp STT_NOTYPE and
26 STB_LOCAL.
27 (Target_mips::do_finalize_sections): Set _gp after all the checks
28 for creating .got are done.
29 (Target_mips::Scan::global): Remove unused code.
453018bf 30
6528b6eb
AM
312017-02-22 Alan Modra <amodra@gmail.com>
32
33 * powerpc.cc (Target_powerpc::make_iplt_section): Check that
34 output_section exists before attempting add_output_section_data.
35 (Target_powerpc::make_brlt_section): Likewise.
36
f9029569
VR
372017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
38
39 * mips.cc (Target_mips::Scan::get_reference_flags): Remove
40 gold_unreachable from default case.
41
e242ece1
VR
422017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
43
44 PR gold/21111
f9029569
VR
45 * mips.cc (Mips_relocate_functions::relhigher): New method.
46 (Mips_relocate_functions::relhighest): Likewise.
47 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
48 R_MIPS_HIGHEST.
49 (Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
50 R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
51 (Target_mips::Scan::global): Likewise.
52 (Target_mips::Scan::get_reference_flags): Likewise.
53 (Target_mips::Relocate::relocate): Call static methods for resolving
54 HIGHER and HIGHEST relocations.
e242ece1 55
4aebb631
RC
562017-02-03 Rahul Chaudhry <rahulchaudhry@google.com>
57
58 * x86_64.cc (Target_x86_64::do_can_check_for_function_pointers):
59 Return true even when building pie binaries.
60 (Target_x86_64::possible_function_pointer_reloc): Check opcode
61 for R_X86_64_PC32 relocations.
62 (Target_x86_64::local_reloc_may_be_function_pointer): Pass
63 extra arguments to local_reloc_may_be_function_pointer.
64 (Target_x86_64::global_reloc_may_be_function_pointer): Likewise.
65 * gc.h (gc_process_relocs): Add check for STT_FUNC.
66 * testsuite/Makefile.am (icf_safe_pie_test): New test case.
67 * testsuite/Makefile.in: Regenerate.
68 * testsuite/icf_safe_pie_test.sh: New shell script.
69
e666304e
AM
702017-02-03 Alan Modra <amodra@gmail.com>
71
72 * powerpc.cc (Powerpc_relobj::make_toc_relative): Don't crash
73 when no .toc section exists.
74
ed35cc4a
CC
752017-01-31 Cary Coutant <ccoutant@gmail.com>
76
77 PR gold/21090
78 * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): Add check
79 for predefined symbol.
80 (Target_x86_64::Relocate::relocate): Fix formatting.
81
741bcbe9
RC
822017-01-23 Rahul Chaudhry <rahulchaudhry@google.com>
83
84 * testsuite/icf_safe_so_test.sh: Use "set -e".
85 * testsuite/icf_safe_test.sh: Likewise.
86 * testsuite/icf_test.sh: Likewise.
87
04bc2a28
VR
882017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
89
90 * mips.cc (Mips_output_data_plt::rel_plt): Remove const from return
91 type.
92 (Target_mips::make_plt_entry): Make the sh_info field of .rel.plt
93 point to .plt.
94
c1f59f8f
VR
952017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
96
97 PR gold/21054
98 * mips.cc (Mips_got_info::record_global_got_symbol): Don't add symbol
99 to the dynamic symbol table if it is forced to local visibility.
100 (Target_mips::do_finalize_sections): Don't add __RLD_MAP symbol to the
101 dynamic symbol table if it is forced to local visibility.
102
a24df305
NC
1032017-01-20 Nick Clifton <nickc@redhat.com>
104
105 * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS
106 from a pointer to an array.
107
857e829e
L
1082017-01-13 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR gold/21040
111 * powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative):
112 Cast 0x80008000 to uint64_t.
113
aca5eec6
CC
1142017-01-12 Cary Coutant <ccoutant@gmail.com>
115
116 * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
117
6624f3a1
CC
1182017-01-11 Cary Coutant <ccoutant@gmail.com>
119
120 PR gold/21040
121 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
122 Remove unnecessary 'typename' keyword.
123 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
124 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
125 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
126 (Output_data_plt_x86_64_bnd::do_write): Likewise.
127
976e204b
CC
1282017-01-11 Cary Coutant <ccoutant@gmail.com>
129
130 PR gold/21040
131 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
132 Remove unnecessary 'typename' keyword.
133 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
134 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
135 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
136 * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern
137 declarations.
138
1fa5f68b
CC
1392017-01-11 Cary Coutant <ccoutant@gmail.com>
140
141 PR gold/21039
142 * testsuite/script_test_13.sh: Adjust patterns to work for i386.
143 * testsuite/script_test_15a.sh: Likewise.
144 * testsuite/script_test_15b.sh: Likewise.
145 * testsuite/script_test_15c.sh: Likewise.
146
5edad15d
AM
1472017-01-11 Alan Modra <amodra@gmail.com>
148
149 * powerpc.cc (class Powerpc_copy_relocs): New.
150 (Powerpc_copy_relocs::emit): New function.
151 (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables.
152 (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines.
153 (Powerpc_relobj::do_relocate_sections): New function.
154 (Powerpc_relobj::make_toc_relative): Likewise.
155 (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc
156 and .toc too.
157 (ok_lo_toc_insn): Move earlier, and handle more insns.
158 (Target_powerpc::Scan::local): If optimizing toc accesses, set
159 no_toc_opt for entries we can't edit. Check insn validity.
160 Emit "toc optimization is not supported" warning, downgraded
161 from error.
162 (Target_powerpc::Scan::global): Likewise.
163 (Target_powerpc::Relocate::relocate): Edit TOC indirect code
164 to TOC relative. Don't emit "toc optimization is not supported"
165 error here.
166
98461510
CC
1672017-01-10 Cary Coutant <ccoutant@gmail.com>
168
169 * aarch64.cc (AArch64_relobj::do_relocate_sections): Call
170 Sized_relobj_file::relocate_section_range().
171 * arm.cc (Arm_relobj::do_relocate_sections): Likewise.
172 * object.h (Sized_relobj_file::relocate_section_range): New method.
173 * reloc.cc (Sized_relobj_file::do_relocate_sections): Move
174 implementation...
175 (Sized_relobj_file::relocate_section_range): ...to new method.
176
f7fd19e2
AM
1772017-01-10 Alan Modra <amodra@gmail.com>
178
179 * testsuite/ver_test_8.sh: Accept .TOC. in lieu of
180 _GLOBAL_OFFSET_TABLE_. Allow zero count.
181 * testsuite/copy_test_relro_1.cc (c, q): New vars.
182 * testsuite/copy_test_relro.cc: Rewrite to test read-only
183 status of variables directly. Reference new vars in
184 read-only data.
185
f159cdb6
AM
1862017-01-10 Alan Modra <amodra@gmail.com>
187
188 * options.h: Add --secure-plt option.
189 * powerpc.cc (Target_powerpc::Scan::local): Detect and error
190 on -fPIC -mbss-plt code.
191 (Target_powerpc::Scan::global): Likewise.
192
3254d32c
AM
1932017-01-09 Alan Modra <amodra@gmail.com>
194
195 * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
196 ".rela.plt" at ".plt".
197
0e123f69
AM
1982017-01-07 Alan Modra <amodra@gmail.com>
199
200 * powerpc.cc: Use shorter equivalent elfcpp typedef for
201 Reltype and reloc_size throughout.
202 (Target_powerpc::symval_for_branch): Exclude dynamic symbols.
203 (Target_powerpc::Scan::local): Use local var r_sym.
204 (Target_powerpc::Scan::global: Likewise.
205 (Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
206
2571583a
AM
2072017-01-02 Alan Modra <amodra@gmail.com>
208
209 Update year range in copyright notice of all files.
210
5c1ad6b5 211For older changes see ChangeLog-2016
3499769a 212\f
5c1ad6b5 213Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
214
215Copying and distribution of this file, with or without modification,
216are permitted in any medium without royalty provided the copyright
217notice and this notice are preserved.
218
219Local Variables:
220mode: change-log
221left-margin: 8
222fill-column: 74
223version-control: never
224End:
This page took 0.087285 seconds and 4 git commands to generate.