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