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