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