Commit | Line | Data |
---|---|---|
25499ac7 MR |
1 | 2017-05-15 Maciej W. Rozycki <macro@imgtec.com> |
2 | ||
3 | * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. | |
4 | ||
73caa85d L |
5 | 2017-05-12 H.J. Lu <hongjiu.lu@intel.com> |
6 | ||
7 | * elf32-i386.c (elf_i386_parse_gnu_properties): Merge | |
8 | GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED | |
9 | properties. | |
10 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
11 | ||
f2c29a16 L |
12 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
13 | ||
14 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd | |
15 | to plt_second. | |
16 | (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame | |
17 | to plt_second/plt_second_eh_frame. | |
18 | (elf_x86_64_link_hash_newfunc): Updated. | |
19 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
20 | (elf_x86_64_size_dynamic_sections): Likewise. | |
21 | (elf_x86_64_relocate_section): Likewise. | |
22 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
23 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
24 | (elf_x86_64_plt_type): Rename plt_bnd to plt_second. | |
25 | (elf_x86_64_get_synthetic_symtab): Updated. Also scan the | |
26 | .plt.sec section. | |
27 | (elf_backend_setup_gnu_properties): Updated. Create the | |
28 | .plt.sec section instead of the .plt.sec section. | |
29 | ||
dc2be3d2 L |
30 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
31 | ||
32 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert | |
33 | commit 25070364b0ce33eed46aa5d78ebebbec6accec7e. | |
34 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse. | |
35 | ||
db84b98a JM |
36 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
37 | ||
38 | * elf64-sparc.c (elf64_sparc_set_reloc): New function. | |
39 | (bfd_elf64_set_reloc): Define. | |
40 | (elf64_sparc_write_relocs): Use `canon_reloc_count'. | |
41 | ||
23186865 JM |
42 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
43 | ||
44 | * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc. | |
45 | (struct bfd_target): New field _bfd_set_reloc. | |
46 | * bfd.c (bfd_set_reloc): Call backend _set_bfd. | |
47 | * reloc.c (_bfd_generic_set_reloc): New function. | |
48 | * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc. | |
49 | * nlm-target.h (nlm_set_reloc): Likewise. | |
50 | * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise. | |
51 | * aout-tic30.c (MY_set_reloc): Likewise. | |
52 | * aout-target.h (MY_set_reloc): Likewise. | |
53 | * elfxx-target.h (bfd_elfNN_set_reloc): Likewise. | |
54 | * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise. | |
55 | * mach-o-target.c (bfd_mach_o_set_reloc): Likewise. | |
56 | * vms-alpha.c (alpha_vms_set_reloc): Likewise. | |
57 | * aout-adobe.c (aout_32_set_reloc): Likewise. | |
58 | * bout.c (b_out_set_reloc): Likewise. | |
59 | * coff-mips.c (_bfd_ecoff_set_reloc): Likewise. | |
60 | * i386os9k.c (aout_32_set_reloc): Likewise. | |
61 | * ieee.c (ieee_set_reloc): Likewise. | |
62 | * oasys.c (oasys_set_reloc): Likewise. | |
63 | * som.c (som_set_reloc): Likewise. | |
64 | * versados.c (versados_set_reloc): Likewise. | |
65 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add | |
66 | _bfd_generic_set_reloc. | |
67 | (rs6000_xcoff64_aix_vec): LIkewise. | |
68 | * libbfd.c (_bfd_norelocs_set_reloc): New function. | |
69 | * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc. | |
70 | * i386msdos.c (msdos_set_reloc): Define to | |
71 | _bfd_norelocs_set_reloc. | |
72 | * elfcode.h (elf_set_reloc): Define. | |
73 | * bfd-in2.h: Regenerated. | |
74 | ||
aab82f4c L |
75 | 2017-05-10 H.J. Lu <hongjiu.lu@intel.com> |
76 | ||
77 | PR ld/21481 | |
78 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd | |
79 | for IFUNC function address. | |
80 | ||
53a346d8 CZ |
81 | 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com> |
82 | ||
83 | * elf32-arc.c (FEATURE_LIST_NAME): Define. | |
84 | (CONFLICT_LIST): Likewise. | |
85 | (opcode/arc-attrs.h): Include. | |
86 | (arc_elf_print_private_bfd_data): Print OSABI v4 flag. | |
87 | (arc_extract_features): New file. | |
88 | (arc_stralloc): Likewise. | |
89 | (arc_elf_merge_attributes): Likewise. | |
90 | (arc_elf_merge_private_bfd_data): Use object attributes. | |
91 | (bfd_arc_get_mach_from_attributes): New function. | |
92 | (arc_elf_object_p): Use object attributes. | |
93 | (arc_elf_final_write_processing): Likewise. | |
94 | (elf32_arc_obj_attrs_arg_type): New function. | |
95 | (elf32_arc_obj_attrs_handle_unknown): Likewise. | |
96 | (elf32_arc_section_from_shdr): Likewise. | |
97 | (elf_backend_obj_attrs_vendor): Define. | |
98 | (elf_backend_obj_attrs_section): Likewise. | |
99 | (elf_backend_obj_attrs_arg_type): Likewise. | |
100 | (elf_backend_obj_attrs_section_type): Likewise. | |
101 | (elf_backend_obj_attrs_handle_unknown): Likewise. | |
102 | (elf_backend_section_from_shdr): Likewise. | |
103 | ||
e645cf40 AG |
104 | 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za> |
105 | ||
106 | PR ld/21458 | |
107 | * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit | |
108 | of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation | |
109 | and the destination is a Thumb symbol. | |
110 | ||
dd9e66ee L |
111 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
112 | ||
113 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing | |
114 | initializer to silence GCC 4.2. | |
115 | * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
116 | ||
38b12349 L |
117 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
118 | ||
119 | * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ... | |
120 | (LAZY_PLT_ENTRY_SIZE): This. | |
121 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
122 | (elf_x86_64_plt0_entry): Renamed to ... | |
123 | (elf_x86_64_lazy_plt0_entry): This. | |
124 | (elf_x86_64_plt_entry): Renamed to ... | |
125 | (elf_x86_64_lazy_plt_entry): This. | |
126 | (elf_x86_64_bnd_plt0_entry): Renamed to ... | |
127 | (elf_x86_64_lazy_bnd_plt0_entry): This. | |
128 | (elf_x86_64_legacy_plt_entry): Removed. | |
129 | (elf_x86_64_bnd_plt_entry): Renamed to ... | |
130 | (elf_x86_64_lazy_bnd_plt_entry): This. | |
131 | (elf_x86_64_legacy_plt2_entry): Renamed to ... | |
132 | (elf_x86_64_non_lazy_plt_entry): This. | |
133 | (elf_x86_64_bnd_plt2_entry): Renamed to ... | |
134 | (elf_x86_64_non_lazy_bnd_plt_entry): This. | |
135 | (elf_x86_64_eh_frame_plt): Renamed to ... | |
136 | (elf_x86_64_eh_frame_lazy_plt): This. | |
137 | (elf_x86_64_eh_frame_bnd_plt): Renamed to ... | |
138 | (elf_x86_64_eh_frame_lazy_bnd_plt): This. | |
139 | (elf_x86_64_eh_frame_plt_got): Renamed to ... | |
140 | (elf_x86_64_eh_frame_non_lazy_plt): This. | |
141 | (elf_x86_64_lazy_plt_layout): New. | |
142 | (elf_x86_64_non_lazy_plt_layout): Likewise. | |
143 | (elf_x86_64_plt_layout): Likewise. | |
144 | (elf_x86_64_backend_data): Remove PLT layout information. Add | |
145 | os for target system. | |
146 | (GET_PLT_ENTRY_SIZE): Removed. | |
147 | (elf_x86_64_lazy_plt): New. | |
148 | (elf_x86_64_non_lazy_plt): Likewise. | |
149 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
150 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
151 | (elf_x86-64_arch_bed): Updated. | |
152 | (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
153 | (elf_x86_64_create_dynamic_sections): Removed. | |
154 | (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call | |
155 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
156 | (elf_x86-64_adjust_dynamic_symbol): Updated. | |
157 | (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
158 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
159 | size for PLT0 if there is no PLT0. Get plt_entry_size from | |
160 | non_lazy_plt for non-lazy PLT entries. | |
161 | (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size | |
162 | from non_lazy_plt for non-lazy PLT entries. | |
163 | (elf_x86-64_relocate_section): Updated. Properly get PLT index | |
164 | if there is no PLT0. | |
165 | (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot | |
166 | in the PLT entry with generic PLT layout. Fill the non-lazy PLT | |
167 | entries with non-lazy PLT layout. Don't fill the second and third | |
168 | slots in the PLT entry if there is no PLT0. | |
169 | (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0 | |
170 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
171 | (compare_relocs): New. | |
172 | (elf_x86_64_plt_type): Likewise. | |
173 | (elf_x86_64_plt): Likewise. | |
174 | (elf_x86_64_nacl_plt): New. Forward declaration. | |
175 | (elf_x86_64_get_plt_sym_val): Removed. | |
176 | (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections | |
177 | against all dynamic relocations. | |
178 | (elf_x86_64_link_setup_gnu_properties): New function. | |
179 | (elf_backend_create_dynamic_sections): Updated. | |
180 | (elf_backend_setup_gnu_properties): New. | |
181 | (elf_x86_64_nacl_plt): New. | |
182 | (elf_x86_64_nacl_arch_bed): Updated. | |
183 | ||
f604c2a2 L |
184 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
185 | ||
186 | * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ... | |
187 | (LAZY_PLT_ENTRY_SIZE): This. | |
188 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
189 | (elf_i386_plt0_entry): Renamed to ... | |
190 | (elf_i386_lazy_plt0_entry): This. | |
191 | (elf_i386_plt_entry): Renamed to ... | |
192 | (elf_i386_lazy_plt_entry): This. | |
193 | (elf_i386_pic_plt0_entry): Renamed to ... | |
194 | (elf_i386_pic_lazy_plt0_entry): This. | |
195 | (elf_i386_pic_plt_entry): Renamed to ... | |
196 | (elf_i386_pic_lazy_plt_entry): This. | |
197 | (elf_i386_got_plt_entry): Renamed to ... | |
198 | (elf_i386_non_lazy_plt_entry): This. | |
199 | (elf_i386_pic_got_plt_entry): Renamed to ... | |
200 | (elf_i386_pic_non_lazy_plt_entry): This. | |
201 | (elf_i386_eh_frame_plt): Renamed to ... | |
202 | (elf_i386_eh_frame_lazy_plt): This. | |
203 | (elf_i386_eh_frame_plt_got): Renamed to ... | |
204 | (elf_i386_eh_frame_non_lazy_plt): This. | |
205 | (elf_i386_plt_layout): Renamed to ... | |
206 | (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and | |
207 | eh_frame_plt_got_size. | |
208 | (elf_i386_non_lazy_plt_layout): New. | |
209 | (elf_i386_plt_layout): Likewise. | |
210 | (elf_i386_non_lazy_plt): Likewise. | |
211 | (GET_PLT_ENTRY_SIZE): Removed. | |
212 | (elf_i386_plt): Renamed to ... | |
213 | (elf_i386_lazy_plt): This. | |
214 | (elf_i386_backend_data): Remove plt. Rename is_vxworks to os. | |
215 | (elf_i386_arch_bed): Updated. | |
216 | (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
217 | (elf_i386_create_dynamic_sections): Removed. | |
218 | (elf_i386_check_relocs): Don't check elf.dynobj. Don't call | |
219 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
220 | (elf_i386_adjust_dynamic_symbol): Updated. | |
221 | (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
222 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
223 | size for PLT0 if there is no PLT0. | |
224 | (elf_i386_size_dynamic_sections): Updated. Check whether GOT | |
225 | output section is discarded only if GOT isn't empty. | |
226 | (elf_i386_relocate_section): Updated. Properly get PLT index | |
227 | if there is no PLT0. | |
228 | (elf_i386_finish_dynamic_symbol): Updated. Don't fill the | |
229 | second and third slots in the PLT entry if there is no PLT0. | |
230 | (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0 | |
231 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
232 | (elf_i386_nacl_plt): Forward declaration. | |
233 | (elf_i386_get_plt_sym_val): Removed. | |
234 | (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections | |
235 | against all dynamic relocations. | |
236 | (elf_i386_link_setup_gnu_properties): New function. | |
237 | (elf_backend_create_dynamic_sections): Updated. | |
238 | (elf_backend_setup_gnu_properties): New. | |
239 | (elf_i386_nacl_plt): Updated. | |
240 | (elf_i386_nacl_arch_bed): Likewise. | |
241 | (elf_i386_vxworks_arch_bed): Likewise. | |
242 | ||
046734ff TP |
243 | 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> |
244 | ||
245 | * elflink.c (elf_output_implib): Remove executable flag from import | |
246 | library bfd. | |
247 | * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import | |
248 | library is a relocatable object file. | |
249 | ||
b660e9eb SKS |
250 | 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
251 | ||
252 | PR ld/21404 | |
253 | * elf32-avr.c (avr_should_move_sym): New function. | |
254 | (avr_should_reduce_sym_size): Likewise. | |
255 | (avr_should_increase_sym_size): Likewise. | |
256 | (elf32_avr_relax_delete_bytes): Adjust symbol values | |
257 | and sizes by calling new functions. | |
258 | ||
763a5fa4 PD |
259 | 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com> |
260 | ||
261 | * config.bfd (riscv32-*): Enable rv64. | |
262 | ||
73ec947d AM |
263 | 2017-05-02 Alan Modra <amodra@gmail.com> |
264 | ||
265 | PR 21384 | |
266 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf | |
267 | rather than h->root.type == bfd_link_hash_new. | |
268 | (bfd_elf_record_link_assignment): Similarly, call | |
269 | bfd_elf_link_mark_dynamic_symbol when h->non_elf. | |
270 | ||
a941291c AM |
271 | 2017-04-29 Alan Modra <amodra@gmail.com> |
272 | ||
273 | PR 21432 | |
274 | * reloc.c (reloc_offset_in_range): New function. | |
275 | (bfd_perform_relocation, bfd_install_relocation): Use it. | |
276 | (_bfd_final_link_relocate): Likewise. | |
277 | ||
750eaa47 L |
278 | 2017-04-28 H.J. Lu <hongjiu.lu@intel.com> |
279 | ||
280 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got | |
281 | before using .plt.got. | |
282 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
283 | ||
5b66fac4 L |
284 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
285 | ||
286 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "=" | |
287 | instead of "+=" to update 0. | |
288 | ||
de9a3c42 L |
289 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
290 | ||
291 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create the | |
292 | .plt.got section here. | |
293 | (elf_i386_check_relocs): Don't create the .plt.got section. | |
294 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create | |
295 | the .plt.got and .plt.bnd sections here. | |
296 | (elf_x86_64_check_relocs): Don't create the .plt.got nor | |
297 | .plt.bnd sections. | |
298 | ||
da3d25af L |
299 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
300 | ||
301 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove | |
302 | has_bnd_reloc. | |
303 | (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc. | |
304 | (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc. | |
305 | (elf_x86_64_check_relocs): Don't set has_bnd_reloc. | |
306 | (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of | |
307 | has_bnd_reloc. | |
308 | ||
fba37edd L |
309 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
310 | ||
311 | * elf-bfd.h (elf_backend_data): Change setup_gnu_properties | |
312 | to return bfd *. | |
313 | (_bfd_elf_link_setup_gnu_properties): Return bfd *. | |
314 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return | |
315 | the first relocatable ELF input with GNU properties. | |
316 | ||
1f78f649 L |
317 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
318 | ||
319 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify | |
320 | VxWorks for non-PIC. | |
321 | ||
76c20d54 AM |
322 | 2017-04-27 Alan Modra <amodra@gmail.com> |
323 | ||
324 | * elf-bfd.h (struct elf_backend_data): Make asection param of | |
325 | elf_backend_eh_frame_address_size const. | |
326 | (_bfd_elf_eh_frame_address_size): Likewise. | |
327 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise. | |
328 | * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise. | |
329 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
330 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
331 | * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise. | |
332 | (next_cie_fde_offset): Constify params. | |
333 | (offset_adjust, adjust_eh_frame_local_symbols): Likewise. | |
334 | ||
d7153c4a AM |
335 | 2017-04-27 Alan Modra <amodra@gmail.com> |
336 | ||
337 | * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len. | |
338 | (_bfd_elf_adjust_eh_frame_global_symbol): Declare. | |
339 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and | |
340 | aug_data_len. | |
341 | (offset_adjust): New function. | |
342 | (_bfd_elf_adjust_eh_frame_global_symbol): Likewise. | |
343 | (adjust_eh_frame_local_symbols): Likewise. | |
344 | (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols | |
345 | after changing anything. Return true if anything changed. | |
346 | * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call | |
347 | _bfd_elf_adjust_eh_frame_global_symbol for globals. | |
348 | ||
641338d8 AM |
349 | 2017-04-27 Alan Modra <amodra@gmail.com> |
350 | ||
351 | * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index | |
352 | when force_local. | |
353 | ||
21d68fcd AM |
354 | 2017-04-27 Alan Modra <amodra@gmail.com> |
355 | ||
356 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
357 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it. | |
358 | (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise. | |
359 | (ppc_elf_relocate_section): Likewise. Delete silly optimisation | |
360 | for undef and undefweak dyn_relocs. | |
361 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
362 | (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it. | |
363 | (allocate_got, allocate_dynrelocs): Likewise. | |
364 | (ppc64_elf_relocate_section): Likewise. | |
365 | ||
97d343d4 L |
366 | 2017-04-26 H.J. Lu <hongjiu.lu@intel.com> |
367 | ||
368 | * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add | |
369 | DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section. | |
370 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys | |
371 | add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section. | |
372 | ||
04b31182 NC |
373 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
374 | ||
375 | PR binutils/21434 | |
376 | * reloc.c (bfd_perform_relocation): Check for a negative address | |
377 | in the reloc. | |
378 | ||
23ec1e32 MR |
379 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
380 | ||
381 | PR ld/21334 | |
382 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' | |
383 | member. | |
384 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] | |
385 | (elf_backend_always_renumber_dynsyms): Define. | |
386 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. | |
387 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. | |
388 | * elflink.c (bfd_elf_size_dynamic_sections): Also call | |
389 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested | |
390 | it. | |
391 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
392 | ||
c46cec3a MR |
393 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
394 | ||
395 | * elflink.c (bfd_elf_size_dynamic_sections): Only call | |
396 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic | |
397 | sections have been created. | |
398 | ||
e63d1232 NC |
399 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
400 | ||
401 | PR binutils/21431 | |
402 | * compress.c (bfd_init_section_compress_status): Check the return | |
403 | value from bfd_malloc. | |
404 | ||
9e9821dd L |
405 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
406 | ||
407 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add | |
408 | no_finish_dynamic_symbol. | |
409 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to | |
410 | 0. | |
411 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined | |
412 | weak symbol, don't make it dynamic. | |
413 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, | |
414 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE | |
415 | relocation for GOT reference. | |
416 | (elf_x86_64_finish_dynamic_symbol): Abort if | |
417 | no_finish_dynamic_symbol isn't 0. | |
418 | ||
0dc9a308 L |
419 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
420 | ||
421 | PR ld/21402 | |
422 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't | |
423 | undefined weak symbol, don't make it dynamic. | |
424 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, | |
425 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
426 | relocation for R_386_GOT32. | |
427 | ||
1587442d L |
428 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
429 | ||
430 | PR ld/21425 | |
431 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. | |
432 | ||
7eacd66b AM |
433 | 2017-04-23 Alan Modra <amodra@gmail.com> |
434 | ||
435 | PR 21414 | |
436 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. | |
437 | * elf.c (lcomm_sym): New. | |
438 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. | |
439 | * bfd-in2.h: Regenerate. | |
440 | ||
bce964aa AM |
441 | 2017-04-23 Alan Modra <amodra@gmail.com> |
442 | ||
443 | PR 21412 | |
444 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change | |
445 | parameters and comment. | |
446 | (_bfd_elf_get_reloc_section): Delete. | |
447 | (_bfd_elf_plt_get_reloc_section): Declare. | |
448 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): | |
449 | New functions. Don't blindly skip over assumed .rel/.rela prefix. | |
450 | Extracted from.. | |
451 | (_bfd_elf_get_reloc_section): ..here. Delete. | |
452 | (assign_section_numbers): Call elf_get_reloc_section. | |
453 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. | |
454 | * elfxx-target.h (elf_backend_get_reloc_section): Update. | |
455 | ||
97e83a10 AM |
456 | 2017-04-23 Alan Modra <amodra@gmail.com> |
457 | ||
458 | PR 21409 | |
459 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when | |
460 | no symbols. | |
461 | ||
e133d005 L |
462 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
463 | ||
464 | PR ld/21402 | |
465 | * elf32-i386.c (elf_i386_link_hash_entry): Add | |
466 | no_finish_dynamic_symbol. | |
467 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. | |
468 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak | |
469 | symbol, don't make it dynamic in PIE. | |
470 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, | |
471 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
472 | relocation for R_386_GOT32 | |
473 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol | |
474 | isn't 0. | |
475 | ||
3c5fce9b L |
476 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
477 | ||
478 | PR ld/19617 | |
479 | PR ld/21086 | |
480 | * elflink.c (elf_link_add_object_symbols): Require | |
481 | --no-dynamic-linker with -E/--dynamic-list when creating | |
482 | dynamic sections. | |
483 | ||
0fad2956 MR |
484 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
485 | ||
486 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE | |
487 | if forced local. | |
488 | ||
64575f78 MR |
489 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
490 | ||
491 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about | |
492 | dynamic symbol sorting. | |
493 | ||
59fa66c5 L |
494 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
495 | ||
496 | PR ld/21382 | |
497 | * elflink.c (elf_link_add_object_symbols): Preserve | |
498 | dynamic_ref_after_ir_def when restoring the symbol table for | |
499 | unneeded dynamic object. | |
500 | ||
e492d2f8 L |
501 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
502 | ||
503 | PR ld/21401 | |
504 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort | |
505 | on on undefined IFUNC symbol in the second PLT. | |
506 | ||
10169134 WAF |
507 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
508 | ||
509 | * peXXigen.c (pe_print_reloc): Correct chunk_end. | |
510 | ||
954b63d4 AM |
511 | 2017-04-19 Alan Modra <amodra@gmail.com> |
512 | ||
513 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak | |
514 | or make dynamic for info->dynamic_undefined_weak 0 and 1. | |
515 | * elf32-ppc.c:Formatting. | |
516 | (ensure_undefweak_dynamic): Don't make dynamic when | |
517 | info->dynamic_undefined_weak is zero. | |
518 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
519 | info->dynamic_undefined_weak. Discard undef dyn_relocs when | |
520 | not default visibility. Discard undef and undefweak | |
521 | dyn_relocs earlier. | |
522 | (ppc_elf_relocate_section): Adjust to suit. | |
523 | * elf64-ppc.c: Formatting. | |
524 | (ensure_undefweak_dynamic): Don't make dynamic when | |
525 | info->dynamic_undefined_weak is zero. | |
526 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
527 | info->dynamic_undefined_weak. Discard them earlier. | |
528 | ||
e6699019 L |
529 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
530 | ||
531 | PR ld/21389 | |
532 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
533 | before generating the version definition section. | |
534 | ||
c5d37467 AM |
535 | 2017-04-17 Alan Modra <amodra@gmail.com> |
536 | ||
537 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
538 | state when a regular object file defines a symbol with | |
539 | incompatible type to that defined by an earlier shared lib. | |
540 | ||
63a5468a AM |
541 | 2017-04-13 Alan Modra <amodra@gmail.com> |
542 | ||
543 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
544 | * elf.c: Likewise. | |
545 | * elf32-arm.c: Likewise. | |
546 | * elf32-i386.c: Likewise. | |
547 | * elf32-mep.c: Likewise. | |
548 | * elf64-ia64-vms.c: Likewise. | |
549 | * elf64-x86-64.c: Likewise. | |
550 | * elflink.c: Likewise. | |
551 | * elfnn-ia64.c: Likewise. | |
552 | * elfxx-mips.c: Likewise. | |
553 | ||
dae82561 AM |
554 | 2017-04-13 Alan Modra <amodra@gmail.com> |
555 | ||
556 | * aoutx.h: Use %B and %A in error messages throughout file. | |
557 | * aout-cris.c: Likewise. | |
558 | * archive.c: Likewise. | |
559 | * binary.c: Likewise. | |
560 | * coff-rs6000.c: Likewise. | |
561 | * coff-tic4x.c: Likewise. | |
562 | * coffcode.h: Likewise. | |
563 | * coffgen.c: Likewise. | |
564 | * cofflink.c: Likewise. | |
565 | * coffswap.h: Likewise. | |
566 | * cpu-arm.c: Likewise. | |
567 | * elf-eh-frame.c: Likewise. | |
568 | * elf-m10300.c: Likewise. | |
569 | * elf.c: Likewise. | |
570 | * elf32-arc.c: Likewise. | |
571 | * elf32-arm.c: Likewise. | |
572 | * elf32-bfin.c: Likewise. | |
573 | * elf32-frv.c: Likewise. | |
574 | * elf32-iq2000.c: Likewise. | |
575 | * elf32-m32c.c: Likewise. | |
576 | * elf32-microblaze.c: Likewise. | |
577 | * elf32-nds32.c: Likewise. | |
578 | * elf32-rl78.c: Likewise. | |
579 | * elf32-rx.c: Likewise. | |
580 | * elf32-score.c: Likewise. | |
581 | * elf32-score7.c: Likewise. | |
582 | * elf32-sh64.c: Likewise. | |
583 | * elf32-v850.c: Likewise. | |
584 | * elf32-vax.c: Likewise. | |
585 | * elf32-visium.c: Likewise. | |
586 | * elf64-ia64-vms.c: Likewise. | |
587 | * elf64-mmix.c: Likewise. | |
588 | * elf64-sh64.c: Likewise. | |
589 | * elfcode.h: Likewise. | |
590 | * elfnn-aarch64.c: Likewise. | |
591 | * elfnn-ia64.c: Likewise. | |
592 | * elfxx-mips.c: Likewise. | |
593 | * hpux-core.c: Likewise. | |
594 | * ieee.c: Likewise. | |
595 | * ihex.c: Likewise. | |
596 | * linker.c: Likewise. | |
597 | * merge.c: Likewise. | |
598 | * mmo.c: Likewise. | |
599 | * oasys.c: Likewise. | |
600 | * pdp11.c: Likewise. | |
601 | * peXXigen.c: Likewise. | |
602 | * rs6000-core.c: Likewise. | |
603 | * vms-alpha.c: Likewise. | |
604 | * xcofflink.c: Likewise. | |
605 | ||
c08bb8dd AM |
606 | 2017-04-13 Alan Modra <amodra@gmail.com> |
607 | ||
608 | * bfd.c (PRINT_TYPE): Define. | |
609 | (_doprnt): New function. | |
610 | (error_handler_internal): Use _doprnt. | |
611 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
612 | calls in their natural order, throughout file. | |
613 | * coff-mcore.c: Likewise. | |
614 | * coff-ppc.c: Likewise. | |
615 | * coff-tic80.c: Likewise. | |
616 | * cofflink.c: Likewise. | |
617 | * elf-s390-common.c: Likewise. | |
618 | * elf.c: Likewise. | |
619 | * elf32-arm.c: Likewise. | |
620 | * elf32-i386.c: Likewise. | |
621 | * elf32-m32r.c: Likewise. | |
622 | * elf32-msp430.c: Likewise. | |
623 | * elf32-spu.c: Likewise. | |
624 | * elf64-ia64-vms.c: Likewise. | |
625 | * elf64-sparc.c: Likewise. | |
626 | * elf64-x86-64.c: Likewise. | |
627 | * elflink.c: Likewise. | |
628 | * elfnn-aarch64.c: Likewise. | |
629 | * elfnn-ia64.c: Likewise. | |
630 | * elfxx-mips.c: Likewise. | |
631 | ||
10463f39 AM |
632 | 2017-04-13 Alan Modra <amodra@gmail.com> |
633 | ||
634 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
635 | branch veneers" error. Fix double space and format message. | |
636 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
637 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
638 | ||
4af8774e AM |
639 | 2017-04-13 Alan Modra <amodra@gmail.com> |
640 | ||
641 | * bfd-in2.h: Regenerate. | |
642 | ||
e4097f5e L |
643 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
644 | ||
645 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
646 | extra `\n' in warning/error messages. | |
647 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
648 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
649 | ||
537616aa L |
650 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
651 | ||
652 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
653 | processor-specific properties with generic ELF target vector. | |
654 | ||
bb1dd176 QZ |
655 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
656 | ||
657 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
658 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
659 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
660 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
661 | has_non_got_reloc. | |
662 | (link_hash_newfunc): Initialize has_got_reloc and | |
663 | has_non_got_reloc. | |
664 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
665 | section. | |
666 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
667 | has_non_got_reloc. | |
668 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
669 | has_non_got_reloc. | |
670 | (_bfd_sparc_elf_fixup_symbol): New function. | |
671 | (allocate_dynrelocs): Don't allocate space for dynamic | |
672 | relocations and discard relocations against resolved undefined | |
673 | weak symbols in executable. Don't make resolved undefined weak | |
674 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
675 | relocation against undefined weak symbols in PIE. | |
676 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
677 | relocations against resolved undefined weak symbols in PIE | |
678 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
679 | without ynamic PLT/GOT relocations for resolved undefined weak | |
680 | symbols. | |
681 | Don't generate dynamic relocation against resolved undefined | |
682 | weak symbol in executable. | |
683 | (pie_finish_undefweak_symbol): New function. | |
684 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
685 | pie_finish_undefweak_symbol on all symbols in PIE. | |
686 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
687 | (_bfd_sparc_elf_fixup_symbol): New function. | |
688 | ||
d236cfd4 NC |
689 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
690 | ||
691 | * config.bfd: Remove ns32k from obsolete list. | |
692 | ||
6f9dbcd4 AM |
693 | 2017-04-10 Alan Modra <amodra@gmail.com> |
694 | ||
695 | PR 21287 | |
696 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
697 | (special_sections_i): Likewise for .init_array. | |
698 | (special_sections_p): Likewise for .preinit_array. | |
699 | ||
8170f769 L |
700 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
701 | ||
702 | PR ld/19579 | |
703 | PR ld/21306 | |
704 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
705 | ELF_COMMON_DEF_P for common symbols. | |
706 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
707 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
708 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
709 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
710 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
711 | ||
49f4617b PA |
712 | 2017-04-07 Pedro Alves <palves@redhat.com> |
713 | ||
714 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
715 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
716 | parameter to void pointer. Adjust. | |
717 | (bfd_get_debug_link_info): Reimplement on top of | |
718 | bfd_get_debug_link_info_1. | |
719 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
720 | Change type of second parameter to void pointer. Adjust. | |
721 | (get_func_type, check_func_type): Change type of second parameter | |
722 | to void pointer. | |
723 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
724 | the callback functions instead of passing the address of a local. | |
725 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
726 | find_separate_debug_file. | |
727 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
728 | void pointer. Adjust. | |
729 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
730 | find_separate_debug_file. | |
731 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
732 | of second parameter to void pointer. Adjust. | |
733 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
734 | pointer local to find_separate_debug_file. | |
735 | ||
736 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
737 | |
738 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
739 | external symbols with a definition. | |
740 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
741 | ||
86abf93a AM |
742 | 2017-04-07 Alan Modra <amodra@gmail.com> |
743 | ||
744 | * po/SRC-POTFILES.in: Regenerate. | |
745 | ||
8dea77f0 AM |
746 | 2017-04-05 Alan Modra <amodra@gmail.com> |
747 | ||
748 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
749 | reference counting. | |
750 | ||
477bdd39 JT |
751 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
752 | ||
753 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
754 | numbers for DataDirectory entry indicies passed to | |
755 | add_data_entry(). | |
756 | ||
a91e1603 L |
757 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
758 | ||
759 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
760 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
761 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
762 | segment for each GNU_MBIND section. | |
763 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
764 | for GNU_MBIND section. | |
765 | ||
b5292032 PD |
766 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
767 | ||
768 | * elfnn-riscv.c (GP_NAME): Delete. | |
769 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
770 | (_bfd_riscv_relax_lui): Likewise. | |
771 | ||
ad32986f NC |
772 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
773 | ||
774 | PR binutils/21342 | |
775 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
776 | dereference. | |
777 | (bfd_elf_final_link): Only initialize the extended symbol index | |
778 | section if there are extended symbol tables to list. | |
779 | ||
46bed679 L |
780 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
781 | ||
782 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
783 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
784 | * configure.ac (elf): Add elf-properties.lo. | |
785 | * Makefile.in: Regenerated. | |
786 | * configure: Likewise. | |
787 | * elf-bfd.h (elf_property_kind): New. | |
788 | (elf_property): Likewise. | |
789 | (elf_property_list): Likewise. | |
790 | (elf_properties): Likewise. | |
791 | (_bfd_elf_parse_gnu_properties): Likewise. | |
792 | (_bfd_elf_get_property): Likewise. | |
793 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
794 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
795 | and setup_gnu_properties. | |
796 | (elf_obj_tdata): Add properties. | |
797 | * elf-properties.c: New file. | |
798 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
799 | (elf_i386_merge_gnu_properties): Likewise. | |
800 | (elf_backend_parse_gnu_properties): Likewise. | |
801 | (elf_backend_merge_gnu_properties): Likewise. | |
802 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
803 | (elf_x86_64_merge_gnu_properties): Likewise. | |
804 | (elf_backend_parse_gnu_properties): Likewise. | |
805 | (elf_backend_merge_gnu_properties): Likewise. | |
806 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
807 | (elf_backend_parse_gnu_properties): Likewise. | |
808 | (elf_backend_setup_gnu_properties): Likewise. | |
809 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
810 | elf_backend_merge_gnu_properties and | |
811 | elf_backend_setup_gnu_properties. | |
812 | ||
f96bd6c2 PC |
813 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
814 | ||
815 | * elf32-wasm32.c: Add relocation code, two relocs. | |
816 | * reloc.c: Add wasm32 relocations. | |
817 | * libbfd.h: Regenerate. | |
818 | * bfd-in2.h: Regenerate. | |
819 | * bfd/po/bfd.pot: Regenerate. | |
820 | ||
e643cb45 NC |
821 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
822 | ||
823 | PR binutils/18025 | |
824 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
825 | saved_bias and bias. | |
826 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
827 | computed for PE binaries. | |
828 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
829 | missing abbrev. | |
830 | ||
086554e8 HPN |
831 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
832 | ||
833 | PR ld/16044 | |
834 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
835 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
836 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
837 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
838 | isn't forced-or-set local. | |
839 | ||
a6be0538 PC |
840 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
841 | ||
842 | * wasm-module.c: New file to support WebAssembly modules. | |
843 | * wasm-module.h: New file to support WebAssembly modules. | |
844 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
845 | * config.bfd: Add wasm_vec. | |
846 | * targets.c: Likewise. | |
847 | * configure.ac: Likewise. | |
848 | * Makefile.am: Add entries for wasm-module.c. | |
849 | * Makefile.in: Regenerate. | |
850 | * configure: Regenerate. | |
851 | * po/SRC-POTFILES.in: Regenerate. | |
852 | ||
79b1d3cb PC |
853 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
854 | ||
855 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
856 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
857 | * Makefile.am: Add wasm32 architecture. | |
858 | * archures.c: Likewise. | |
859 | * config.bfd: Likewise. | |
860 | * configure.ac: Likewise. | |
861 | * targets.c: Likewise. | |
862 | * Makefile.in: Regenerate. | |
863 | * bfd-in2.h: Regenerate. | |
864 | * configure: Regenerate. | |
865 | * po/SRC-POTFILES.in: Regenerate. | |
866 | ||
aaed6f5b AM |
867 | 2017-03-20 Alan Modra <amodra@gmail.com> |
868 | ||
869 | PR 21266 | |
870 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
871 | ||
82e66161 AM |
872 | 2017-03-18 Alan Modra <amodra@gmail.com> |
873 | ||
874 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
875 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
876 | (ppc_build_one_stub): Set flags on emitting dynamic | |
877 | relocation to ifunc. | |
878 | (ppc64_elf_relocate_section): Likewise. | |
879 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
880 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
881 | local dynamic relocs to ifuncs. | |
882 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
883 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
884 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
885 | relocation to ifuncs. | |
886 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
887 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
888 | dynamic relocs to ifuncs. | |
889 | ||
f955cccf NC |
890 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
891 | ||
892 | PR binutils/21202 | |
893 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
894 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
895 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
896 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
897 | * bfd-in2.h: Regenerate. | |
898 | * libbfd.h: Regenerate. | |
899 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
900 | names. | |
901 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
902 | (elfNN_aarch64_howto_table): Likewise. | |
903 | (aarch64_tls_transition_without_check): Likewise. | |
904 | (aarch64_reloc_got_type): Likewise. | |
905 | (elfNN_aarch64_final_link_relocate): Likewise. | |
906 | (elfNN_aarch64_tls_relax): Likewise. | |
907 | (elfNN_aarch64_relocate_section): Likewise. | |
908 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
909 | (elfNN_aarch64_check_relocs): Likewise. | |
910 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
911 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
912 | ||
4aef7643 AM |
913 | 2017-03-11 Alan Modra <amodra@gmail.com> |
914 | ||
915 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
916 | parameter is in fact used. Whitespace fixes. | |
917 | * elf64-ppc.c: Likewise. | |
918 | ||
f03265d9 ST |
919 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
920 | ||
921 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
922 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
923 | ||
b1b07054 AM |
924 | 2017-03-07 Alan Modra <amodra@gmail.com> |
925 | ||
926 | PR 21224 | |
927 | PR 20519 | |
928 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
929 | dyn_relocs check. | |
930 | ||
2e0ce1c8 AM |
931 | 2017-03-05 Alan Modra <amodra@gmail.com> |
932 | ||
933 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
934 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
935 | (next_cie_fde_offset): New function. | |
936 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
937 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
938 | four bytes. Align CIEs to four or eight bytes depending on | |
939 | per_encoding_aligned8. Align FDEs according to their encoding. | |
940 | Pad last FDE to output section alignment. | |
941 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
942 | assertion. | |
943 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
944 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
945 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
946 | ||
f98450c6 NC |
947 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
948 | ||
949 | PR ld/21212 | |
950 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 951 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 952 | |
673cff9b AM |
953 | 2017-03-02 Alan Modra <amodra@gmail.com> |
954 | ||
955 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
956 | ||
3de43e7b AM |
957 | 2017-02-28 Alan Modra <amodra@gmail.com> |
958 | ||
959 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
960 | (ppc64_elf_relocate_section): Likewise. | |
961 | ||
4ef97a1b AM |
962 | 2017-02-28 Alan Modra <amodra@gmail.com> |
963 | ||
964 | PR 20995 | |
965 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
966 | rather than elf32_nios2_hash_table or elf_hash_table. | |
967 | (create_got_section): Likewise. | |
968 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
969 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
970 | (nios2_elf32_size_dynamic_sections): Likewise. | |
971 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
972 | vars. Use htab equivalents directly instead. Don't create | |
973 | all dynamic sections on needing just the GOT. Use a goto | |
974 | rather than a fall-through with reloc test. Ensure | |
975 | htab->dynobj is set when making dynamic sreloc section. | |
976 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
977 | equivalent directly instead. Don't segfault on looking for | |
978 | .dynamic when dynamic sections have not been created. Don't | |
979 | segfault on .got.plt being discarded. | |
980 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
981 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
982 | fixme and another not so relevant comment. | |
983 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
984 | already set, set hash table dynobj on creating .sbss. | |
985 | ||
7ba71655 AM |
986 | 2017-02-28 Alan Modra <amodra@gmail.com> |
987 | ||
988 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
989 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
990 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
991 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
992 | (ppc64_elf_relocate_section): Likewise. | |
993 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
994 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
995 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
996 | * libbfd.h: Regenerate. | |
997 | * bfd-in2.h: Regenerate. | |
998 | ||
afbf7e8e AM |
999 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1000 | ||
1001 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
1002 | dynamic .data.rel.ro read-only. | |
1003 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
1004 | rather than section flags when deciding where copy reloc goes. | |
1005 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
1006 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
1007 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
1008 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
1009 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
1010 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
1011 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
1012 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
1013 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1014 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
1015 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
1016 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
1017 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1018 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
1019 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
1020 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
1021 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
1022 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
1023 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
1024 | ||
0e392101 MR |
1025 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
1026 | ||
1027 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
1028 | `jalr $0, $25' instruction encoding. | |
1029 | ||
bd757ca7 NC |
1030 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
1031 | ||
1032 | PR ld/21180 | |
1033 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
1034 | generating a seg-fault when encountering a symbol that has been | |
1035 | deleted by garbage collection. | |
1036 | ||
034fed0b AM |
1037 | 2017-02-25 Alan Modra <amodra@gmail.com> |
1038 | ||
1039 | * elf32-arc.c (struct dynamic_sections): Delete. | |
1040 | (enum dyn_section_types): Delete. | |
1041 | (dyn_section_names): Delete. | |
1042 | (arc_create_dynamic_sections): Delete. | |
1043 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
1044 | segfault on discarded .rela.plt section. | |
1045 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
1046 | arc_create_dynamic_sections. Don't allocate memory for sections | |
1047 | handled by the generic linker. Correct code finding relocs in | |
1048 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
1049 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
1050 | ||
d0f744f9 AW |
1051 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
1052 | ||
1053 | * elfnn-riscv.c (GP_NAME): New macro. | |
1054 | (riscv_global_pointer_value): Use it. | |
1055 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
1056 | output section, consider only that section's alignment. | |
1057 | ||
5d58c733 MR |
1058 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
1059 | ||
1060 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
1061 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
1062 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
1063 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
1064 | ||
c1556ecd MR |
1065 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
1066 | ||
1067 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
1068 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
1069 | or misaligned. | |
1070 | ||
5499c7c7 AM |
1071 | 2017-02-23 Alan Modra <amodra@gmail.com> |
1072 | ||
1073 | PR 20744 | |
1074 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
1075 | 16D relocations. | |
1076 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
1077 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
1078 | relocs. | |
1079 | ||
902e9fc7 MR |
1080 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
1081 | ||
1082 | PR ld/20828 | |
1083 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
1084 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
1085 | ||
758d96d8 NC |
1086 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
1087 | ||
1088 | PR binutils/21193 | |
1089 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
1090 | created section 4-byte alignment. | |
1091 | ||
6528b6eb AM |
1092 | 2017-02-22 Alan Modra <amodra@gmail.com> |
1093 | ||
1094 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
1095 | on .got or .plt output section being discarded by script. | |
1096 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
1097 | vxworks splt temp. | |
1098 | ||
24f1a751 AM |
1099 | 2017-02-21 Alan Modra <amodra@gmail.com> |
1100 | ||
1101 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
1102 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
1103 | ||
64487780 AM |
1104 | 2017-02-20 Alan Modra <amodra@gmail.com> |
1105 | ||
1106 | PR 21181 | |
1107 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
1108 | if DT_RELSZ/DT_RELASZ is zero. | |
1109 | ||
6438d1be NC |
1110 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
1111 | ||
1112 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
1113 | compressed size by the sizeof the compression header when | |
1114 | decompressing the contents. | |
1115 | ||
4bc26c69 PA |
1116 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1117 | ||
1118 | * srec.c (Chunk): Rename to ... | |
1119 | (_bfd_srec_len): ... this. | |
1120 | (S3Forced): Rename to ... | |
1121 | (_bfd_srec_forceS3): ... this. | |
1122 | * objcopy.c: Adjust all references. | |
1123 | ||
7ec22e0f PA |
1124 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1125 | ||
1126 | * archive.c (bsd_write_armap): Rename to ... | |
1127 | (_bfd_bsd_write_armap): ... this. | |
1128 | (coff_write_armap): Rename to ... | |
1129 | (_bfd_coff_write_armap): ... this. | |
1130 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
1131 | (_bfd_bsd_write_armap): ... this. | |
1132 | (coff_write_armap): Rename to ... | |
1133 | (_bfd_coff_write_armap): ... this. | |
1134 | * aout-target.h, aout-tic30.c: Adjust all users. | |
1135 | * libbfd.h: Regenerate. | |
1136 | ||
8c8402cc PA |
1137 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1138 | ||
1139 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
1140 | (warn_deprecated): Rename to ... | |
1141 | (_bfd_warn_deprecated): ... this. | |
1142 | * libbfd.c (warn_deprecated): Rename to ... | |
1143 | (_bfd_warn_deprecated): ... this. | |
1144 | * bfd-in2.h: Regenerate. | |
1145 | ||
c7c3d11b PA |
1146 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1147 | ||
1148 | * bfdio.c (real_ftell): Rename to ... | |
1149 | (_bfd_real_ftell): ... this. | |
1150 | (real_fseek): Rename to ... | |
1151 | (_bfd_real_fseek): ... this. | |
1152 | (real_fopen): Rename to ... | |
1153 | (_bfd_real_fopen): ... this. | |
1154 | * libbfd-in.h (real_ftell): Rename to ... | |
1155 | (_bfd_real_ftell): ... this. | |
1156 | (real_fseek): Rename to ... | |
1157 | (_bfd_real_fseek): ... this. | |
1158 | (real_fopen): Rename to ... | |
1159 | (_bfd_real_fopen): ... this. | |
1160 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
1161 | * libbfd.h: Regenerate. | |
1162 | ||
4265548c PA |
1163 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1164 | ||
1165 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
1166 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
1167 | (_bfd_read_unsigned_leb128): ... this. | |
1168 | (read_signed_leb128): Rename to ... | |
1169 | (_bfd_read_signed_leb128): ... this. | |
1170 | (safe_read_leb128): Rename to ... | |
1171 | (_bfd_safe_read_leb128): ... this. | |
1172 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
1173 | (_bfd_read_unsigned_leb128): ... this. | |
1174 | (read_signed_leb128): Rename to ... | |
1175 | (_bfd_read_signed_leb128): ... this. | |
1176 | (safe_read_leb128): Rename to ... | |
1177 | (_bfd_safe_read_leb128): ... this. | |
1178 | * libbfd.h: Renegerate. | |
1179 | ||
3239a423 AB |
1180 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1181 | ||
1182 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
1183 | before trying to fine matching file and line information. | |
1184 | ||
90ed9b8b AB |
1185 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1186 | ||
1187 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
1188 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
1189 | not match current bfd, then reload debug information. Record bfd | |
1190 | we're loading debug info for in the stash. If we have debug | |
1191 | informatin in the cache then perform section placement before | |
1192 | returning. | |
1193 | ||
a8c75b76 AM |
1194 | 2017-02-16 Alan Modra <amodra@gmail.com> |
1195 | ||
1196 | PR 21000 | |
1197 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
1198 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
1199 | (elfNN_bed): Init new field. | |
1200 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
1201 | ensure PT_LOAD segment starts on a new page. | |
1202 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
1203 | ||
247d6c4c AM |
1204 | 2017-02-16 Alan Modra <amodra@gmail.com> |
1205 | ||
1206 | PR 21132 | |
1207 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
1208 | if pic. | |
1209 | ||
90571206 JW |
1210 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
1211 | ||
1212 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
1213 | * bfd-in2.h: Regenerated. | |
1214 | ||
2a568401 L |
1215 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1216 | ||
1217 | PR ld/21168 | |
1218 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
1219 | "lea foo@GOT, %reg" in PIC. | |
1220 | ||
a5def14f L |
1221 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1222 | ||
1223 | PR ld/20244 | |
1224 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
1225 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
1226 | error against local IFUNC symbol without a base register for | |
1227 | PIC. | |
1228 | ||
174d0a74 MR |
1229 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
1230 | ||
1231 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
1232 | `%P: %H:' with `info->callbacks->einfo'. | |
1233 | (ppc_elf_relocate_section): Likewise. | |
1234 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
1235 | (ppc64_elf_edit_toc): Likewise. | |
1236 | (ppc64_elf_relocate_section): Likewise. | |
1237 | ||
e278ae05 AM |
1238 | 2017-02-14 Alan Modra <amodra@gmail.com> |
1239 | ||
1240 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
1241 | --gc-keep-exported, and test versioned field of sym rather than | |
1242 | looking for @ in name. | |
1243 | ||
10ddfe62 PD |
1244 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
1245 | ||
1246 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
1247 | __global_pointer$. | |
1248 | ||
d11135f5 NC |
1249 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
1250 | ||
1251 | PR binutils/21151 | |
1252 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
1253 | unit length field. | |
1254 | ||
cc162427 AW |
1255 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
1256 | ||
1257 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
1258 | entry size if PLT header is written. | |
1259 | ||
3d044c0c SL |
1260 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
1261 | ||
1262 | Fix sparc64 dynamic relocation processing to use the dynamic | |
1263 | symbol count. | |
1264 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
1265 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
1266 | should be used. | |
1267 | ||
1b7e3d2f NC |
1268 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
1269 | ||
1270 | PR 21096 | |
1271 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
1272 | s_name_buf in order to avoid compile time warning about possible | |
1273 | integer truncation. | |
1274 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
1275 | 32-bits of insn value before printing into buffer. | |
1276 | ||
e17b0c35 MR |
1277 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1278 | ||
1279 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
1280 | `max_local_dynindx'. | |
1281 | (mips_elf_sort_hash_table): Handle it. | |
1282 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
1283 | symbols bump up `max_local_dynindx' rather than | |
1284 | `max_non_got_dynindx'. | |
1285 | ||
55f8b9d2 MR |
1286 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1287 | ||
1288 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
1289 | `min_got_dynindx', `max_unref_got_dynindx' and | |
1290 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
1291 | (mips_elf_sort_hash_table): Adjust accordingly. | |
1292 | ||
0f8c4b60 MR |
1293 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1294 | ||
1295 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
1296 | to access the hash table. | |
1297 | ||
17a80fa8 MR |
1298 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1299 | ||
1300 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
1301 | non-NULL `htab' to the beginning. | |
1302 | ||
8f56d4fd MR |
1303 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1304 | ||
1305 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
1306 | ||
8b10b0b3 MR |
1307 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
1308 | ||
1309 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
1310 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
1311 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
1312 | `ignore_branch_isa' member. | |
1313 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
1314 | in branch relocation calculation as an error if | |
1315 | `ignore_branch_isa' has been set. | |
1316 | (_bfd_mips_elf_insn32): Rename to... | |
1317 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
1318 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
1319 | Handle the new parameter. | |
1320 | ||
1fbd05e1 HPN |
1321 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
1322 | ||
22d9a0de HPN |
1323 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
1324 | local variable dynobj. | |
1325 | ||
1fbd05e1 HPN |
1326 | PR ld/20995 |
1327 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
1328 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
1329 | executable from read-only sections into sdynrelro. | |
1330 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
1331 | dynamic relocs in sdynrelro. | |
1332 | (elf_backend_want_dynrelro): Define. | |
1333 | ||
4a7324e1 SH |
1334 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1335 | ||
1336 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
1337 | ||
c75b4ebd SH |
1338 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1339 | ||
1340 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
1341 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
1342 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
1343 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
1344 | ||
850d84f6 SH |
1345 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1346 | ||
1347 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
1348 | ||
b531344c MR |
1349 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
1350 | ||
1351 | PR ld/20828 | |
1352 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
1353 | change and don't ever clear `forced_local'. Set `mark' | |
1354 | unconditionally. | |
1355 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
1356 | file. | |
1357 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
1358 | (bfd_elf_size_dynamic_sections): ... here. | |
1359 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
1360 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
1361 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
1362 | ||
f0158f44 AM |
1363 | 2017-01-24 Alan Modra <amodra@gmail.com> |
1364 | ||
1365 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
1366 | where dynamic relocs are preferable. Allow ifunc too. | |
1367 | (ensure_undefweak_dynamic): New function. | |
1368 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
1369 | don't make symbols dynamic, simplifying loop. Only make undef | |
1370 | weak symbols with GOT entries dynamic. Correct condition | |
1371 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
1372 | comments. Remove goto. | |
1373 | (ppc_elf_relocate_section): Correct test for using dynamic | |
1374 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
1375 | to suit. Set up explicit tls_index entries and implicit GOT | |
1376 | tls_index entries resolvable at link time for | |
1377 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
1378 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
1379 | (ensure_undefweak_dynamic): New function. | |
1380 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
1381 | with GOT entries dynamic. Remove unnecessary test of | |
1382 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
1383 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
1384 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
1385 | to suit. Set up explicit tls_index entries and implicit GOT | |
1386 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
1387 | Simplify expression to clear mem for prelink. | |
1388 | ||
2d0ca824 YN |
1389 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
1390 | ||
1391 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
1392 | ||
7f784814 JW |
1393 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
1394 | ||
1395 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
1396 | (elf_backend_hash_symbol): Define. | |
1397 | ||
81ff47b3 MR |
1398 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
1399 | ||
1400 | PR ld/20828 | |
1401 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
1402 | `forced_local' marking for DSO symbols that are not being | |
1403 | provided. | |
1404 | ||
640d6bfd KLC |
1405 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
1406 | ||
1407 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
1408 | ||
8361ed4d L |
1409 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
1410 | ||
1411 | PR ld/21038 | |
1412 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
1413 | plt_bnd_eh_frame. | |
1414 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
1415 | .plt.bnd section. | |
1416 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1417 | .eh_frame section for the .plt.bnd section. | |
1418 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1419 | for the .plt.bnd section. | |
1420 | ||
2425a30e NC |
1421 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
1422 | ||
1423 | PR binutils/20876 | |
1424 | * opncls.c (find_separate_debug_file): Add include_dirs | |
1425 | parameter. Only include the directory part of the bfd's filename | |
1426 | in search paths if include_dirs is true. Add a couple of extra | |
1427 | locations for looking for debug files. | |
1428 | ( bfd_follow_gnu_debuglink): Update invocation of | |
1429 | find_separate_debug_file. | |
1430 | (bfd_follow_gnu_debugaltlink): Likewise. | |
1431 | (get_build_id): New function: Finds the build-id of the given bfd. | |
1432 | (get_build_id_name): New function: Computes the name of the | |
1433 | separate debug info file for a bfd, based upon its build-id. | |
1434 | (check_build_id_file): New function: Checks to see if a separate | |
1435 | debug info file exists at the given location, and that its | |
1436 | build-id matches that of the original bfd. | |
1437 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
1438 | debug info file for a given bfd by using the build-id method. | |
1439 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
1440 | method of locating a separate debug info file before using the | |
1441 | debuglink method. | |
1442 | * bfd-in2.h: Regenerate. | |
1443 | ||
9e659176 L |
1444 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1445 | ||
1446 | PR ld/21038 | |
1447 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
1448 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
1449 | elf_x86_64_eh_frame_plt_got. | |
1450 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
1451 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
1452 | ||
f2e2d2f5 JS |
1453 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
1454 | ||
1455 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
1456 | ||
52b232b3 L |
1457 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1458 | ||
1459 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
1460 | to 4 bytes. | |
1461 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
1462 | .eh_frame section to 4 bytes for x32. | |
1463 | (elf_x86_64_check_relocs): Likewise. | |
1464 | ||
fff53dae L |
1465 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1466 | ||
1467 | PR ld/20830 | |
1468 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
1469 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1470 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
1471 | eh_frame_plt_got_size. | |
1472 | (elf_i386_plt): Updated. | |
1473 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
1474 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
1475 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
1476 | .eh_frame section for .plt.got. | |
1477 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
1478 | .plt.got. | |
1479 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
1480 | eh_frame_plt_got_size. | |
1481 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
1482 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1483 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
1484 | eh_frame_plt_got_size. | |
1485 | (elf_x86_64_arch_bed): Updated. | |
1486 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
1487 | eh_frame_plt_got_size. | |
1488 | (elf_x86_64_nacl_arch_bed): Likewise. | |
1489 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
1490 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
1491 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1492 | .eh_frame section for .plt.got. | |
1493 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1494 | for .plt.got. | |
1495 | ||
f129e49f L |
1496 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1497 | ||
1498 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
1499 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
1500 | ||
cd6581da NC |
1501 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1502 | ||
1503 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
1504 | there are no functions in the given comp unit, or if the high | |
1505 | address of the last function in the comp unit is less than the | |
1506 | desired address. | |
1507 | ||
98f02962 NC |
1508 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1509 | ||
1510 | PR binutils/21013 | |
1511 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
1512 | message if there are too many symbols to load. | |
1513 | ||
ae4fda66 JC |
1514 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
1515 | ||
1516 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
1517 | if relocs are cached. | |
1518 | ||
de1010f4 RF |
1519 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
1520 | ||
1521 | PR ld/21017 | |
1522 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
1523 | for R_MICROBLAZE_GOTOFF_64. | |
1524 | ||
09fe2662 NC |
1525 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
1526 | ||
1527 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
1528 | warning about using a possibly uninitialised variable. | |
1529 | ||
595e0a47 AM |
1530 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1531 | ||
1532 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
1533 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
1534 | ||
7bd9df3b AM |
1535 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1536 | ||
1537 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
1538 | .PARISC.unwind section. | |
1539 | ||
5b86074c AM |
1540 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1541 | ||
1542 | PR ld/20989 | |
1543 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
1544 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
1545 | indirect to GOT pointer relative code edit. | |
1546 | ||
2571583a AM |
1547 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1548 | ||
1549 | Update year range in copyright notice of all files. | |
1550 | ||
5c1ad6b5 | 1551 | For older changes see ChangeLog-2016 |
3499769a | 1552 | \f |
5c1ad6b5 | 1553 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
1554 | |
1555 | Copying and distribution of this file, with or without modification, | |
1556 | are permitted in any medium without royalty provided the copyright | |
1557 | notice and this notice are preserved. | |
1558 | ||
1559 | Local Variables: | |
1560 | mode: change-log | |
1561 | left-margin: 8 | |
1562 | fill-column: 74 | |
1563 | version-control: never | |
1564 | End: |