Commit | Line | Data |
---|---|---|
e6699019 L |
1 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | PR ld/21389 | |
4 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
5 | before generating the version definition section. | |
6 | ||
c5d37467 AM |
7 | 2017-04-17 Alan Modra <amodra@gmail.com> |
8 | ||
9 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
10 | state when a regular object file defines a symbol with | |
11 | incompatible type to that defined by an earlier shared lib. | |
12 | ||
63a5468a AM |
13 | 2017-04-13 Alan Modra <amodra@gmail.com> |
14 | ||
15 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
16 | * elf.c: Likewise. | |
17 | * elf32-arm.c: Likewise. | |
18 | * elf32-i386.c: Likewise. | |
19 | * elf32-mep.c: Likewise. | |
20 | * elf64-ia64-vms.c: Likewise. | |
21 | * elf64-x86-64.c: Likewise. | |
22 | * elflink.c: Likewise. | |
23 | * elfnn-ia64.c: Likewise. | |
24 | * elfxx-mips.c: Likewise. | |
25 | ||
dae82561 AM |
26 | 2017-04-13 Alan Modra <amodra@gmail.com> |
27 | ||
28 | * aoutx.h: Use %B and %A in error messages throughout file. | |
29 | * aout-cris.c: Likewise. | |
30 | * archive.c: Likewise. | |
31 | * binary.c: Likewise. | |
32 | * coff-rs6000.c: Likewise. | |
33 | * coff-tic4x.c: Likewise. | |
34 | * coffcode.h: Likewise. | |
35 | * coffgen.c: Likewise. | |
36 | * cofflink.c: Likewise. | |
37 | * coffswap.h: Likewise. | |
38 | * cpu-arm.c: Likewise. | |
39 | * elf-eh-frame.c: Likewise. | |
40 | * elf-m10300.c: Likewise. | |
41 | * elf.c: Likewise. | |
42 | * elf32-arc.c: Likewise. | |
43 | * elf32-arm.c: Likewise. | |
44 | * elf32-bfin.c: Likewise. | |
45 | * elf32-frv.c: Likewise. | |
46 | * elf32-iq2000.c: Likewise. | |
47 | * elf32-m32c.c: Likewise. | |
48 | * elf32-microblaze.c: Likewise. | |
49 | * elf32-nds32.c: Likewise. | |
50 | * elf32-rl78.c: Likewise. | |
51 | * elf32-rx.c: Likewise. | |
52 | * elf32-score.c: Likewise. | |
53 | * elf32-score7.c: Likewise. | |
54 | * elf32-sh64.c: Likewise. | |
55 | * elf32-v850.c: Likewise. | |
56 | * elf32-vax.c: Likewise. | |
57 | * elf32-visium.c: Likewise. | |
58 | * elf64-ia64-vms.c: Likewise. | |
59 | * elf64-mmix.c: Likewise. | |
60 | * elf64-sh64.c: Likewise. | |
61 | * elfcode.h: Likewise. | |
62 | * elfnn-aarch64.c: Likewise. | |
63 | * elfnn-ia64.c: Likewise. | |
64 | * elfxx-mips.c: Likewise. | |
65 | * hpux-core.c: Likewise. | |
66 | * ieee.c: Likewise. | |
67 | * ihex.c: Likewise. | |
68 | * linker.c: Likewise. | |
69 | * merge.c: Likewise. | |
70 | * mmo.c: Likewise. | |
71 | * oasys.c: Likewise. | |
72 | * pdp11.c: Likewise. | |
73 | * peXXigen.c: Likewise. | |
74 | * rs6000-core.c: Likewise. | |
75 | * vms-alpha.c: Likewise. | |
76 | * xcofflink.c: Likewise. | |
77 | ||
c08bb8dd AM |
78 | 2017-04-13 Alan Modra <amodra@gmail.com> |
79 | ||
80 | * bfd.c (PRINT_TYPE): Define. | |
81 | (_doprnt): New function. | |
82 | (error_handler_internal): Use _doprnt. | |
83 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
84 | calls in their natural order, throughout file. | |
85 | * coff-mcore.c: Likewise. | |
86 | * coff-ppc.c: Likewise. | |
87 | * coff-tic80.c: Likewise. | |
88 | * cofflink.c: Likewise. | |
89 | * elf-s390-common.c: Likewise. | |
90 | * elf.c: Likewise. | |
91 | * elf32-arm.c: Likewise. | |
92 | * elf32-i386.c: Likewise. | |
93 | * elf32-m32r.c: Likewise. | |
94 | * elf32-msp430.c: Likewise. | |
95 | * elf32-spu.c: Likewise. | |
96 | * elf64-ia64-vms.c: Likewise. | |
97 | * elf64-sparc.c: Likewise. | |
98 | * elf64-x86-64.c: Likewise. | |
99 | * elflink.c: Likewise. | |
100 | * elfnn-aarch64.c: Likewise. | |
101 | * elfnn-ia64.c: Likewise. | |
102 | * elfxx-mips.c: Likewise. | |
103 | ||
10463f39 AM |
104 | 2017-04-13 Alan Modra <amodra@gmail.com> |
105 | ||
106 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
107 | branch veneers" error. Fix double space and format message. | |
108 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
109 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
110 | ||
4af8774e AM |
111 | 2017-04-13 Alan Modra <amodra@gmail.com> |
112 | ||
113 | * bfd-in2.h: Regenerate. | |
114 | ||
e4097f5e L |
115 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
116 | ||
117 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
118 | extra `\n' in warning/error messages. | |
119 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
120 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
121 | ||
537616aa L |
122 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
123 | ||
124 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
125 | processor-specific properties with generic ELF target vector. | |
126 | ||
bb1dd176 QZ |
127 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
128 | ||
129 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
130 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
131 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
132 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
133 | has_non_got_reloc. | |
134 | (link_hash_newfunc): Initialize has_got_reloc and | |
135 | has_non_got_reloc. | |
136 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
137 | section. | |
138 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
139 | has_non_got_reloc. | |
140 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
141 | has_non_got_reloc. | |
142 | (_bfd_sparc_elf_fixup_symbol): New function. | |
143 | (allocate_dynrelocs): Don't allocate space for dynamic | |
144 | relocations and discard relocations against resolved undefined | |
145 | weak symbols in executable. Don't make resolved undefined weak | |
146 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
147 | relocation against undefined weak symbols in PIE. | |
148 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
149 | relocations against resolved undefined weak symbols in PIE | |
150 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
151 | without ynamic PLT/GOT relocations for resolved undefined weak | |
152 | symbols. | |
153 | Don't generate dynamic relocation against resolved undefined | |
154 | weak symbol in executable. | |
155 | (pie_finish_undefweak_symbol): New function. | |
156 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
157 | pie_finish_undefweak_symbol on all symbols in PIE. | |
158 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
159 | (_bfd_sparc_elf_fixup_symbol): New function. | |
160 | ||
d236cfd4 NC |
161 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
162 | ||
163 | * config.bfd: Remove ns32k from obsolete list. | |
164 | ||
6f9dbcd4 AM |
165 | 2017-04-10 Alan Modra <amodra@gmail.com> |
166 | ||
167 | PR 21287 | |
168 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
169 | (special_sections_i): Likewise for .init_array. | |
170 | (special_sections_p): Likewise for .preinit_array. | |
171 | ||
8170f769 L |
172 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
173 | ||
174 | PR ld/19579 | |
175 | PR ld/21306 | |
176 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
177 | ELF_COMMON_DEF_P for common symbols. | |
178 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
179 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
180 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
181 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
182 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
183 | ||
49f4617b PA |
184 | 2017-04-07 Pedro Alves <palves@redhat.com> |
185 | ||
186 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
187 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
188 | parameter to void pointer. Adjust. | |
189 | (bfd_get_debug_link_info): Reimplement on top of | |
190 | bfd_get_debug_link_info_1. | |
191 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
192 | Change type of second parameter to void pointer. Adjust. | |
193 | (get_func_type, check_func_type): Change type of second parameter | |
194 | to void pointer. | |
195 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
196 | the callback functions instead of passing the address of a local. | |
197 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
198 | find_separate_debug_file. | |
199 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
200 | void pointer. Adjust. | |
201 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
202 | find_separate_debug_file. | |
203 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
204 | of second parameter to void pointer. Adjust. | |
205 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
206 | pointer local to find_separate_debug_file. | |
207 | ||
208 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
209 | |
210 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
211 | external symbols with a definition. | |
212 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
213 | ||
86abf93a AM |
214 | 2017-04-07 Alan Modra <amodra@gmail.com> |
215 | ||
216 | * po/SRC-POTFILES.in: Regenerate. | |
217 | ||
8dea77f0 AM |
218 | 2017-04-05 Alan Modra <amodra@gmail.com> |
219 | ||
220 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
221 | reference counting. | |
222 | ||
477bdd39 JT |
223 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
224 | ||
225 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
226 | numbers for DataDirectory entry indicies passed to | |
227 | add_data_entry(). | |
228 | ||
a91e1603 L |
229 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
230 | ||
231 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
232 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
233 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
234 | segment for each GNU_MBIND section. | |
235 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
236 | for GNU_MBIND section. | |
237 | ||
b5292032 PD |
238 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
239 | ||
240 | * elfnn-riscv.c (GP_NAME): Delete. | |
241 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
242 | (_bfd_riscv_relax_lui): Likewise. | |
243 | ||
ad32986f NC |
244 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
245 | ||
246 | PR binutils/21342 | |
247 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
248 | dereference. | |
249 | (bfd_elf_final_link): Only initialize the extended symbol index | |
250 | section if there are extended symbol tables to list. | |
251 | ||
46bed679 L |
252 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
253 | ||
254 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
255 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
256 | * configure.ac (elf): Add elf-properties.lo. | |
257 | * Makefile.in: Regenerated. | |
258 | * configure: Likewise. | |
259 | * elf-bfd.h (elf_property_kind): New. | |
260 | (elf_property): Likewise. | |
261 | (elf_property_list): Likewise. | |
262 | (elf_properties): Likewise. | |
263 | (_bfd_elf_parse_gnu_properties): Likewise. | |
264 | (_bfd_elf_get_property): Likewise. | |
265 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
266 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
267 | and setup_gnu_properties. | |
268 | (elf_obj_tdata): Add properties. | |
269 | * elf-properties.c: New file. | |
270 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
271 | (elf_i386_merge_gnu_properties): Likewise. | |
272 | (elf_backend_parse_gnu_properties): Likewise. | |
273 | (elf_backend_merge_gnu_properties): Likewise. | |
274 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
275 | (elf_x86_64_merge_gnu_properties): Likewise. | |
276 | (elf_backend_parse_gnu_properties): Likewise. | |
277 | (elf_backend_merge_gnu_properties): Likewise. | |
278 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
279 | (elf_backend_parse_gnu_properties): Likewise. | |
280 | (elf_backend_setup_gnu_properties): Likewise. | |
281 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
282 | elf_backend_merge_gnu_properties and | |
283 | elf_backend_setup_gnu_properties. | |
284 | ||
f96bd6c2 PC |
285 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
286 | ||
287 | * elf32-wasm32.c: Add relocation code, two relocs. | |
288 | * reloc.c: Add wasm32 relocations. | |
289 | * libbfd.h: Regenerate. | |
290 | * bfd-in2.h: Regenerate. | |
291 | * bfd/po/bfd.pot: Regenerate. | |
292 | ||
e643cb45 NC |
293 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
294 | ||
295 | PR binutils/18025 | |
296 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
297 | saved_bias and bias. | |
298 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
299 | computed for PE binaries. | |
300 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
301 | missing abbrev. | |
302 | ||
086554e8 HPN |
303 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
304 | ||
305 | PR ld/16044 | |
306 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
307 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
308 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
309 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
310 | isn't forced-or-set local. | |
311 | ||
a6be0538 PC |
312 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
313 | ||
314 | * wasm-module.c: New file to support WebAssembly modules. | |
315 | * wasm-module.h: New file to support WebAssembly modules. | |
316 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
317 | * config.bfd: Add wasm_vec. | |
318 | * targets.c: Likewise. | |
319 | * configure.ac: Likewise. | |
320 | * Makefile.am: Add entries for wasm-module.c. | |
321 | * Makefile.in: Regenerate. | |
322 | * configure: Regenerate. | |
323 | * po/SRC-POTFILES.in: Regenerate. | |
324 | ||
79b1d3cb PC |
325 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
326 | ||
327 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
328 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
329 | * Makefile.am: Add wasm32 architecture. | |
330 | * archures.c: Likewise. | |
331 | * config.bfd: Likewise. | |
332 | * configure.ac: Likewise. | |
333 | * targets.c: Likewise. | |
334 | * Makefile.in: Regenerate. | |
335 | * bfd-in2.h: Regenerate. | |
336 | * configure: Regenerate. | |
337 | * po/SRC-POTFILES.in: Regenerate. | |
338 | ||
aaed6f5b AM |
339 | 2017-03-20 Alan Modra <amodra@gmail.com> |
340 | ||
341 | PR 21266 | |
342 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
343 | ||
82e66161 AM |
344 | 2017-03-18 Alan Modra <amodra@gmail.com> |
345 | ||
346 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
347 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
348 | (ppc_build_one_stub): Set flags on emitting dynamic | |
349 | relocation to ifunc. | |
350 | (ppc64_elf_relocate_section): Likewise. | |
351 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
352 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
353 | local dynamic relocs to ifuncs. | |
354 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
355 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
356 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
357 | relocation to ifuncs. | |
358 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
359 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
360 | dynamic relocs to ifuncs. | |
361 | ||
f955cccf NC |
362 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
363 | ||
364 | PR binutils/21202 | |
365 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
366 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
367 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
368 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
369 | * bfd-in2.h: Regenerate. | |
370 | * libbfd.h: Regenerate. | |
371 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
372 | names. | |
373 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
374 | (elfNN_aarch64_howto_table): Likewise. | |
375 | (aarch64_tls_transition_without_check): Likewise. | |
376 | (aarch64_reloc_got_type): Likewise. | |
377 | (elfNN_aarch64_final_link_relocate): Likewise. | |
378 | (elfNN_aarch64_tls_relax): Likewise. | |
379 | (elfNN_aarch64_relocate_section): Likewise. | |
380 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
381 | (elfNN_aarch64_check_relocs): Likewise. | |
382 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
383 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
384 | ||
4aef7643 AM |
385 | 2017-03-11 Alan Modra <amodra@gmail.com> |
386 | ||
387 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
388 | parameter is in fact used. Whitespace fixes. | |
389 | * elf64-ppc.c: Likewise. | |
390 | ||
f03265d9 ST |
391 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
392 | ||
393 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
394 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
395 | ||
b1b07054 AM |
396 | 2017-03-07 Alan Modra <amodra@gmail.com> |
397 | ||
398 | PR 21224 | |
399 | PR 20519 | |
400 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
401 | dyn_relocs check. | |
402 | ||
2e0ce1c8 AM |
403 | 2017-03-05 Alan Modra <amodra@gmail.com> |
404 | ||
405 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
406 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
407 | (next_cie_fde_offset): New function. | |
408 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
409 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
410 | four bytes. Align CIEs to four or eight bytes depending on | |
411 | per_encoding_aligned8. Align FDEs according to their encoding. | |
412 | Pad last FDE to output section alignment. | |
413 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
414 | assertion. | |
415 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
416 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
417 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
418 | ||
f98450c6 NC |
419 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
420 | ||
421 | PR ld/21212 | |
422 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 423 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 424 | |
673cff9b AM |
425 | 2017-03-02 Alan Modra <amodra@gmail.com> |
426 | ||
427 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
428 | ||
3de43e7b AM |
429 | 2017-02-28 Alan Modra <amodra@gmail.com> |
430 | ||
431 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
432 | (ppc64_elf_relocate_section): Likewise. | |
433 | ||
4ef97a1b AM |
434 | 2017-02-28 Alan Modra <amodra@gmail.com> |
435 | ||
436 | PR 20995 | |
437 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
438 | rather than elf32_nios2_hash_table or elf_hash_table. | |
439 | (create_got_section): Likewise. | |
440 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
441 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
442 | (nios2_elf32_size_dynamic_sections): Likewise. | |
443 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
444 | vars. Use htab equivalents directly instead. Don't create | |
445 | all dynamic sections on needing just the GOT. Use a goto | |
446 | rather than a fall-through with reloc test. Ensure | |
447 | htab->dynobj is set when making dynamic sreloc section. | |
448 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
449 | equivalent directly instead. Don't segfault on looking for | |
450 | .dynamic when dynamic sections have not been created. Don't | |
451 | segfault on .got.plt being discarded. | |
452 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
453 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
454 | fixme and another not so relevant comment. | |
455 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
456 | already set, set hash table dynobj on creating .sbss. | |
457 | ||
7ba71655 AM |
458 | 2017-02-28 Alan Modra <amodra@gmail.com> |
459 | ||
460 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
461 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
462 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
463 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
464 | (ppc64_elf_relocate_section): Likewise. | |
465 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
466 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
467 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
468 | * libbfd.h: Regenerate. | |
469 | * bfd-in2.h: Regenerate. | |
470 | ||
afbf7e8e AM |
471 | 2017-02-28 Alan Modra <amodra@gmail.com> |
472 | ||
473 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
474 | dynamic .data.rel.ro read-only. | |
475 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
476 | rather than section flags when deciding where copy reloc goes. | |
477 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
478 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
479 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
480 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
481 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
482 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
483 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
484 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
485 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
486 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
487 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
488 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
489 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
490 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
491 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
492 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
493 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
494 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
495 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
496 | ||
0e392101 MR |
497 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
498 | ||
499 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
500 | `jalr $0, $25' instruction encoding. | |
501 | ||
bd757ca7 NC |
502 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
503 | ||
504 | PR ld/21180 | |
505 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
506 | generating a seg-fault when encountering a symbol that has been | |
507 | deleted by garbage collection. | |
508 | ||
034fed0b AM |
509 | 2017-02-25 Alan Modra <amodra@gmail.com> |
510 | ||
511 | * elf32-arc.c (struct dynamic_sections): Delete. | |
512 | (enum dyn_section_types): Delete. | |
513 | (dyn_section_names): Delete. | |
514 | (arc_create_dynamic_sections): Delete. | |
515 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
516 | segfault on discarded .rela.plt section. | |
517 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
518 | arc_create_dynamic_sections. Don't allocate memory for sections | |
519 | handled by the generic linker. Correct code finding relocs in | |
520 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
521 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
522 | ||
d0f744f9 AW |
523 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
524 | ||
525 | * elfnn-riscv.c (GP_NAME): New macro. | |
526 | (riscv_global_pointer_value): Use it. | |
527 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
528 | output section, consider only that section's alignment. | |
529 | ||
5d58c733 MR |
530 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
531 | ||
532 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
533 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
534 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
535 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
536 | ||
c1556ecd MR |
537 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
538 | ||
539 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
540 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
541 | or misaligned. | |
542 | ||
5499c7c7 AM |
543 | 2017-02-23 Alan Modra <amodra@gmail.com> |
544 | ||
545 | PR 20744 | |
546 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
547 | 16D relocations. | |
548 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
549 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
550 | relocs. | |
551 | ||
902e9fc7 MR |
552 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
553 | ||
554 | PR ld/20828 | |
555 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
556 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
557 | ||
758d96d8 NC |
558 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
559 | ||
560 | PR binutils/21193 | |
561 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
562 | created section 4-byte alignment. | |
563 | ||
6528b6eb AM |
564 | 2017-02-22 Alan Modra <amodra@gmail.com> |
565 | ||
566 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
567 | on .got or .plt output section being discarded by script. | |
568 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
569 | vxworks splt temp. | |
570 | ||
24f1a751 AM |
571 | 2017-02-21 Alan Modra <amodra@gmail.com> |
572 | ||
573 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
574 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
575 | ||
64487780 AM |
576 | 2017-02-20 Alan Modra <amodra@gmail.com> |
577 | ||
578 | PR 21181 | |
579 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
580 | if DT_RELSZ/DT_RELASZ is zero. | |
581 | ||
6438d1be NC |
582 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
583 | ||
584 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
585 | compressed size by the sizeof the compression header when | |
586 | decompressing the contents. | |
587 | ||
4bc26c69 PA |
588 | 2017-02-17 Pedro Alves <palves@redhat.com> |
589 | ||
590 | * srec.c (Chunk): Rename to ... | |
591 | (_bfd_srec_len): ... this. | |
592 | (S3Forced): Rename to ... | |
593 | (_bfd_srec_forceS3): ... this. | |
594 | * objcopy.c: Adjust all references. | |
595 | ||
7ec22e0f PA |
596 | 2017-02-17 Pedro Alves <palves@redhat.com> |
597 | ||
598 | * archive.c (bsd_write_armap): Rename to ... | |
599 | (_bfd_bsd_write_armap): ... this. | |
600 | (coff_write_armap): Rename to ... | |
601 | (_bfd_coff_write_armap): ... this. | |
602 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
603 | (_bfd_bsd_write_armap): ... this. | |
604 | (coff_write_armap): Rename to ... | |
605 | (_bfd_coff_write_armap): ... this. | |
606 | * aout-target.h, aout-tic30.c: Adjust all users. | |
607 | * libbfd.h: Regenerate. | |
608 | ||
8c8402cc PA |
609 | 2017-02-17 Pedro Alves <palves@redhat.com> |
610 | ||
611 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
612 | (warn_deprecated): Rename to ... | |
613 | (_bfd_warn_deprecated): ... this. | |
614 | * libbfd.c (warn_deprecated): Rename to ... | |
615 | (_bfd_warn_deprecated): ... this. | |
616 | * bfd-in2.h: Regenerate. | |
617 | ||
c7c3d11b PA |
618 | 2017-02-17 Pedro Alves <palves@redhat.com> |
619 | ||
620 | * bfdio.c (real_ftell): Rename to ... | |
621 | (_bfd_real_ftell): ... this. | |
622 | (real_fseek): Rename to ... | |
623 | (_bfd_real_fseek): ... this. | |
624 | (real_fopen): Rename to ... | |
625 | (_bfd_real_fopen): ... this. | |
626 | * libbfd-in.h (real_ftell): Rename to ... | |
627 | (_bfd_real_ftell): ... this. | |
628 | (real_fseek): Rename to ... | |
629 | (_bfd_real_fseek): ... this. | |
630 | (real_fopen): Rename to ... | |
631 | (_bfd_real_fopen): ... this. | |
632 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
633 | * libbfd.h: Regenerate. | |
634 | ||
4265548c PA |
635 | 2017-02-17 Pedro Alves <palves@redhat.com> |
636 | ||
637 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
638 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
639 | (_bfd_read_unsigned_leb128): ... this. | |
640 | (read_signed_leb128): Rename to ... | |
641 | (_bfd_read_signed_leb128): ... this. | |
642 | (safe_read_leb128): Rename to ... | |
643 | (_bfd_safe_read_leb128): ... this. | |
644 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
645 | (_bfd_read_unsigned_leb128): ... this. | |
646 | (read_signed_leb128): Rename to ... | |
647 | (_bfd_read_signed_leb128): ... this. | |
648 | (safe_read_leb128): Rename to ... | |
649 | (_bfd_safe_read_leb128): ... this. | |
650 | * libbfd.h: Renegerate. | |
651 | ||
3239a423 AB |
652 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
653 | ||
654 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
655 | before trying to fine matching file and line information. | |
656 | ||
90ed9b8b AB |
657 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
658 | ||
659 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
660 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
661 | not match current bfd, then reload debug information. Record bfd | |
662 | we're loading debug info for in the stash. If we have debug | |
663 | informatin in the cache then perform section placement before | |
664 | returning. | |
665 | ||
a8c75b76 AM |
666 | 2017-02-16 Alan Modra <amodra@gmail.com> |
667 | ||
668 | PR 21000 | |
669 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
670 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
671 | (elfNN_bed): Init new field. | |
672 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
673 | ensure PT_LOAD segment starts on a new page. | |
674 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
675 | ||
247d6c4c AM |
676 | 2017-02-16 Alan Modra <amodra@gmail.com> |
677 | ||
678 | PR 21132 | |
679 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
680 | if pic. | |
681 | ||
90571206 JW |
682 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
683 | ||
684 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
685 | * bfd-in2.h: Regenerated. | |
686 | ||
2a568401 L |
687 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
688 | ||
689 | PR ld/21168 | |
690 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
691 | "lea foo@GOT, %reg" in PIC. | |
692 | ||
a5def14f L |
693 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
694 | ||
695 | PR ld/20244 | |
696 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
697 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
698 | error against local IFUNC symbol without a base register for | |
699 | PIC. | |
700 | ||
174d0a74 MR |
701 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
702 | ||
703 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
704 | `%P: %H:' with `info->callbacks->einfo'. | |
705 | (ppc_elf_relocate_section): Likewise. | |
706 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
707 | (ppc64_elf_edit_toc): Likewise. | |
708 | (ppc64_elf_relocate_section): Likewise. | |
709 | ||
e278ae05 AM |
710 | 2017-02-14 Alan Modra <amodra@gmail.com> |
711 | ||
712 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
713 | --gc-keep-exported, and test versioned field of sym rather than | |
714 | looking for @ in name. | |
715 | ||
10ddfe62 PD |
716 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
717 | ||
718 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
719 | __global_pointer$. | |
720 | ||
d11135f5 NC |
721 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
722 | ||
723 | PR binutils/21151 | |
724 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
725 | unit length field. | |
726 | ||
cc162427 AW |
727 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
728 | ||
729 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
730 | entry size if PLT header is written. | |
731 | ||
3d044c0c SL |
732 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
733 | ||
734 | Fix sparc64 dynamic relocation processing to use the dynamic | |
735 | symbol count. | |
736 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
737 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
738 | should be used. | |
739 | ||
1b7e3d2f NC |
740 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
741 | ||
742 | PR 21096 | |
743 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
744 | s_name_buf in order to avoid compile time warning about possible | |
745 | integer truncation. | |
746 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
747 | 32-bits of insn value before printing into buffer. | |
748 | ||
e17b0c35 MR |
749 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
750 | ||
751 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
752 | `max_local_dynindx'. | |
753 | (mips_elf_sort_hash_table): Handle it. | |
754 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
755 | symbols bump up `max_local_dynindx' rather than | |
756 | `max_non_got_dynindx'. | |
757 | ||
55f8b9d2 MR |
758 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
759 | ||
760 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
761 | `min_got_dynindx', `max_unref_got_dynindx' and | |
762 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
763 | (mips_elf_sort_hash_table): Adjust accordingly. | |
764 | ||
0f8c4b60 MR |
765 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
766 | ||
767 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
768 | to access the hash table. | |
769 | ||
17a80fa8 MR |
770 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
771 | ||
772 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
773 | non-NULL `htab' to the beginning. | |
774 | ||
8f56d4fd MR |
775 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
776 | ||
777 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
778 | ||
8b10b0b3 MR |
779 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
780 | ||
781 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
782 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
783 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
784 | `ignore_branch_isa' member. | |
785 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
786 | in branch relocation calculation as an error if | |
787 | `ignore_branch_isa' has been set. | |
788 | (_bfd_mips_elf_insn32): Rename to... | |
789 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
790 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
791 | Handle the new parameter. | |
792 | ||
1fbd05e1 HPN |
793 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
794 | ||
22d9a0de HPN |
795 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
796 | local variable dynobj. | |
797 | ||
1fbd05e1 HPN |
798 | PR ld/20995 |
799 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
800 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
801 | executable from read-only sections into sdynrelro. | |
802 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
803 | dynamic relocs in sdynrelro. | |
804 | (elf_backend_want_dynrelro): Define. | |
805 | ||
4a7324e1 SH |
806 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
807 | ||
808 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
809 | ||
c75b4ebd SH |
810 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
811 | ||
812 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
813 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
814 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
815 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
816 | ||
850d84f6 SH |
817 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
818 | ||
819 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
820 | ||
b531344c MR |
821 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
822 | ||
823 | PR ld/20828 | |
824 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
825 | change and don't ever clear `forced_local'. Set `mark' | |
826 | unconditionally. | |
827 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
828 | file. | |
829 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
830 | (bfd_elf_size_dynamic_sections): ... here. | |
831 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
832 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
833 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
834 | ||
f0158f44 AM |
835 | 2017-01-24 Alan Modra <amodra@gmail.com> |
836 | ||
837 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
838 | where dynamic relocs are preferable. Allow ifunc too. | |
839 | (ensure_undefweak_dynamic): New function. | |
840 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
841 | don't make symbols dynamic, simplifying loop. Only make undef | |
842 | weak symbols with GOT entries dynamic. Correct condition | |
843 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
844 | comments. Remove goto. | |
845 | (ppc_elf_relocate_section): Correct test for using dynamic | |
846 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
847 | to suit. Set up explicit tls_index entries and implicit GOT | |
848 | tls_index entries resolvable at link time for | |
849 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
850 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
851 | (ensure_undefweak_dynamic): New function. | |
852 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
853 | with GOT entries dynamic. Remove unnecessary test of | |
854 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
855 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
856 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
857 | to suit. Set up explicit tls_index entries and implicit GOT | |
858 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
859 | Simplify expression to clear mem for prelink. | |
860 | ||
2d0ca824 YN |
861 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
862 | ||
863 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
864 | ||
7f784814 JW |
865 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
866 | ||
867 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
868 | (elf_backend_hash_symbol): Define. | |
869 | ||
81ff47b3 MR |
870 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
871 | ||
872 | PR ld/20828 | |
873 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
874 | `forced_local' marking for DSO symbols that are not being | |
875 | provided. | |
876 | ||
640d6bfd KLC |
877 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
878 | ||
879 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
880 | ||
8361ed4d L |
881 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
882 | ||
883 | PR ld/21038 | |
884 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
885 | plt_bnd_eh_frame. | |
886 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
887 | .plt.bnd section. | |
888 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
889 | .eh_frame section for the .plt.bnd section. | |
890 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
891 | for the .plt.bnd section. | |
892 | ||
2425a30e NC |
893 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
894 | ||
895 | PR binutils/20876 | |
896 | * opncls.c (find_separate_debug_file): Add include_dirs | |
897 | parameter. Only include the directory part of the bfd's filename | |
898 | in search paths if include_dirs is true. Add a couple of extra | |
899 | locations for looking for debug files. | |
900 | ( bfd_follow_gnu_debuglink): Update invocation of | |
901 | find_separate_debug_file. | |
902 | (bfd_follow_gnu_debugaltlink): Likewise. | |
903 | (get_build_id): New function: Finds the build-id of the given bfd. | |
904 | (get_build_id_name): New function: Computes the name of the | |
905 | separate debug info file for a bfd, based upon its build-id. | |
906 | (check_build_id_file): New function: Checks to see if a separate | |
907 | debug info file exists at the given location, and that its | |
908 | build-id matches that of the original bfd. | |
909 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
910 | debug info file for a given bfd by using the build-id method. | |
911 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
912 | method of locating a separate debug info file before using the | |
913 | debuglink method. | |
914 | * bfd-in2.h: Regenerate. | |
915 | ||
9e659176 L |
916 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
917 | ||
918 | PR ld/21038 | |
919 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
920 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
921 | elf_x86_64_eh_frame_plt_got. | |
922 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
923 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
924 | ||
f2e2d2f5 JS |
925 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
926 | ||
927 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
928 | ||
52b232b3 L |
929 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
930 | ||
931 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
932 | to 4 bytes. | |
933 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
934 | .eh_frame section to 4 bytes for x32. | |
935 | (elf_x86_64_check_relocs): Likewise. | |
936 | ||
fff53dae L |
937 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
938 | ||
939 | PR ld/20830 | |
940 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
941 | (PLT_GOT_FDE_LENGTH): Likewise. | |
942 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
943 | eh_frame_plt_got_size. | |
944 | (elf_i386_plt): Updated. | |
945 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
946 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
947 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
948 | .eh_frame section for .plt.got. | |
949 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
950 | .plt.got. | |
951 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
952 | eh_frame_plt_got_size. | |
953 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
954 | (PLT_GOT_FDE_LENGTH): Likewise. | |
955 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
956 | eh_frame_plt_got_size. | |
957 | (elf_x86_64_arch_bed): Updated. | |
958 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
959 | eh_frame_plt_got_size. | |
960 | (elf_x86_64_nacl_arch_bed): Likewise. | |
961 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
962 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
963 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
964 | .eh_frame section for .plt.got. | |
965 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
966 | for .plt.got. | |
967 | ||
f129e49f L |
968 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
969 | ||
970 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
971 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
972 | ||
cd6581da NC |
973 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
974 | ||
975 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
976 | there are no functions in the given comp unit, or if the high | |
977 | address of the last function in the comp unit is less than the | |
978 | desired address. | |
979 | ||
98f02962 NC |
980 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
981 | ||
982 | PR binutils/21013 | |
983 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
984 | message if there are too many symbols to load. | |
985 | ||
ae4fda66 JC |
986 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
987 | ||
988 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
989 | if relocs are cached. | |
990 | ||
de1010f4 RF |
991 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
992 | ||
993 | PR ld/21017 | |
994 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
995 | for R_MICROBLAZE_GOTOFF_64. | |
996 | ||
09fe2662 NC |
997 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
998 | ||
999 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
1000 | warning about using a possibly uninitialised variable. | |
1001 | ||
595e0a47 AM |
1002 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1003 | ||
1004 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
1005 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
1006 | ||
7bd9df3b AM |
1007 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1008 | ||
1009 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
1010 | .PARISC.unwind section. | |
1011 | ||
5b86074c AM |
1012 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1013 | ||
1014 | PR ld/20989 | |
1015 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
1016 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
1017 | indirect to GOT pointer relative code edit. | |
1018 | ||
2571583a AM |
1019 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1020 | ||
1021 | Update year range in copyright notice of all files. | |
1022 | ||
5c1ad6b5 | 1023 | For older changes see ChangeLog-2016 |
3499769a | 1024 | \f |
5c1ad6b5 | 1025 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
1026 | |
1027 | Copying and distribution of this file, with or without modification, | |
1028 | are permitted in any medium without royalty provided the copyright | |
1029 | notice and this notice are preserved. | |
1030 | ||
1031 | Local Variables: | |
1032 | mode: change-log | |
1033 | left-margin: 8 | |
1034 | fill-column: 74 | |
1035 | version-control: never | |
1036 | End: |