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