1 2016-04-28 Nick Clifton <nickc@redhat.com>
3 * po/zh_CN.po: Updated Chinese (simplified) translation.
5 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
8 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
9 when estimating distances between output sections.
11 2016-04-27 Alan Modra <amodra@gmail.com>
13 * elflink.c (_bfd_elf_is_start_stop): New function.
14 (_bfd_elf_gc_mark_rsec): Use it.
15 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
17 2016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
19 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
20 * mmo.c (mmo_get_section_contents): Likewise.
21 (mmo_set_section_contents): Likewise.
23 2016-04-26 H.J. Lu <hongjiu.lu@intel.com>
25 * elf-bfd.h (elf_link_hash_table): Update comments for
27 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
28 the unused NULL entry at the head of dynamic symbol table.
29 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
32 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
34 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
35 created file from dynobj.
37 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
39 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
40 normal input file if possible.
42 2016-04-21 Nick Clifton <nickc@redhat.com>
44 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
45 * aout-target.h: Likewise.
46 * aout-tic30.c: Likewise.
49 * coff-alpha.c: Likewise.
50 * coff-rs6000.c: Likewise.
51 * coff64-rs6000.c: Likewise.
52 * coffcode.h: Likewise.
53 * i386msdos.c: Likewise.
54 * i386os9k.c: Likewise.
57 * libbfd-in.h: Likewise.
58 * libecoff.h: Likewise.
59 * mach-o-target.c: Likewise.
61 * nlm-target.h: Likewise.
65 * ppcboot.c: Likewise.
69 * versados.c: Likewise.
70 * vms-alpha.c: Likewise.
72 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
73 * linker.c (bfd_link_check_relocs): New function.
74 (_bfd_generic_link_check_relocs): New function.
75 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
76 _bfd_link_check_relocs field.
77 (struct bfd_target)L Add _bfd_link_check_relocs field.
78 * bfd-in2.h: Regenerate.
79 * libbfd.h: Regenerate.
81 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
83 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
84 (elf_backend_gc_sweep_hook): Likewise.
85 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
86 (elf_backend_gc_sweep_hook): Likewise.
88 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
90 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
93 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
96 * elf64-x86-64.c (check_relocs_failed): New.
97 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
98 Support relocation agaist local symbol. Set check_relocs_failed.
99 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
100 R_X86_64_32 relocation overflow.
101 (elf_x86_64_relocate_section): Skip if check_relocs failed.
102 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
104 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
106 * elf32-i386.c (elf_i386_check_relocs): Call
107 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
108 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
110 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
112 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
113 * elflink.c (_bfd_elf_link_check_relocs): New function.
114 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
115 if check_relocs_after_open_input is FALSE.
117 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
119 * cache.c: Update old style function definitions.
120 * elf32-m68k.c: Likewise.
121 * elf64-mmix.c: Likewise.
122 * stab-syms.c: Likewise.
124 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
126 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
128 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
130 * Makefile.in: Regenerated with automake 1.11.6.
131 * aclocal.m4: Likewise.
132 * doc/Makefile.in: Likewise.
134 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
136 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
137 * bfd-in2.h: Regenerate.
138 * libbfd.h: Regenerate.
139 * elf32-arc.c: Add 'opcode/arc.h' include.
140 (struct arc_relocation_data): Add symbol_name.
141 (arc_special_overflow_checks): New function.
142 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
143 required, add an extra comment.
144 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
146 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
148 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
150 (elf_arc_relocate_section): Update enum uses.
151 (elf_arc_check_relocs): Likewise.
152 (elf_arc_finish_dynamic_symbol): Likewise.
154 2016-04-14 H.J. Lu <hongjiu.lu@intel.com>
156 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
159 2016-04-14 Nick Clifton <nickc@redhat.com>
162 * elf-bbfd.h (struct elf_backend_data): New field:
164 New field: elf_backend_set_special_section_info_and_link
165 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
167 (elf_backend_set_special_section_info_and_link): Define if not
169 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
170 elf_backend_strtab_flags macros to initialise fields in structure.
171 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
172 being set even if SHF_MERGE is not set.
173 (elf_fake_sections): Likewise.
174 (section_match): New function. Matches two ELF sections based
175 upon fixed characteristics.
176 (find_link): New function. Locates a section in a BFD that
177 matches a section in a different BFD.
178 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
179 fields of reserved sections.
180 (bfd_elf_compute_section_file_positions): Set the flags for the
181 .shstrtab section based upon the elf_strtab_flags field in the
182 elf_backend_data structure.
183 (swap_out_syms): Likewise for the .strtab section.
184 * elflink.c (bfd_elf_final_link): Set the flags for the
185 .strtab section based upon the elf_strtab_flags field in the
186 elf_backend_data structure.
187 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
188 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
190 (elf_backend_set_special_section_info_and_link): Define for
192 * elf32-sparc.c: Likewise.
193 * elf64-x86-64.c: Likewise.
195 2016-04-11 H.J. Lu <hongjiu.lu@intel.com>
198 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
200 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
201 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
202 applies to read-only section.
203 * elf32-i386.c (elf_i386_link_hash_table): Add
204 readonly_dynrelocs_against_ifunc.
205 (elf_i386_allocate_dynrelocs): Updated.
206 (elf_i386_size_dynamic_sections): Issue an error for read-only
207 segment with dynamic IFUNC relocations only if
208 readonly_dynrelocs_against_ifunc is TRUE.
209 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
210 readonly_dynrelocs_against_ifunc.
211 (elf_x86_64_allocate_dynrelocs): Updated.
212 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
213 segment with dynamic IFUNC relocations only if
214 readonly_dynrelocs_against_ifunc is TRUE.
215 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
218 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
220 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
221 a fall through from error_ret_free_internal. Free local_syms in
222 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
224 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
226 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
227 (relocate_plt_for_entry): Likewise.
229 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
231 * elf32-arc.c (elf_arc_check_relocs): Changed
233 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
235 * elf32-arc.c (name_for_global_symbol): Changed assert.
236 (get_replace_function): Created.:
237 (struct arc_relocation_data): Changed to signed types.
238 (defines S, L, P, PDATA): Casted to signed type.
239 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
240 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
241 (arc_do_relocation): Changed.
243 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
245 * elf32-arc.c (name_for_global_symbol): Added assert to check for
247 (elf_arc_relocate_section): Added and changed asserts, validating
248 the synamic symbol index.
249 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
250 relocation if symbol has dynindx set to -1.
252 2016-04-05 Maciej W. Rozycki <macro@imgtec.com>
254 * elflink.c (elf_link_add_object_symbols): Always turn hidden
255 and internal symbols which have a dynamic index into local
258 2016-04-04 Nick Clifton <nickc@redhat.com>
261 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
262 version number if the version is zero.
264 2016-04-01 Alan Modra <amodra@gmail.com>
267 * elflink.c (on_needed_list): Recursively check needed status.
268 (elf_link_add_object_symbols): Adjust.
270 2016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
272 * elf32-avr.c (avr_elf32_load_records_from_section): Free
273 internal_relocs only if they aren't cached.
275 2016-03-29 Nick Clifton <nickc@redhat.com>
278 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
279 assertion on the size of the got section to allow it to be bigger
280 than the number of relocs.
282 2016-03-29 Toni Spets <toni.spets@iki.fi>
285 * coffcode.h (coff_write_object_contents): Revert accidental
288 2016-03-22 Alan Modra <amodra@gmail.com>
291 * dwarf2.c (read_attribute_value): Skip info_ptr check for
292 DW_FORM_flag_present.
294 2016-03-22 Nick Clifton <nickc@redhat.com>
296 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
297 architecture name for backwards compatibility.
299 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
302 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
303 sufficiently recent version of GCC.
304 * configure: Regenerate.
306 2016-03-22 Alan Modra <amodra@gmail.com>
309 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
311 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
313 * archures.c (bfd_mach_arc_nps400): Define.
314 * bfd-in2.h: Regenerate.
315 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
316 some existing entries to make space.
317 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
318 (arc_elf_final_write_processing): Likewise.
320 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
322 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
324 (arc_elf_final_write_processing): Don't bother setting cpu field
325 in e_flags, this will have been set elsewhere.
327 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
329 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
332 2016-03-21 Nick Clifton <nickc@redhat.com>
334 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
335 * configure: Regenerate.
336 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
337 alloca with call to xmalloc.
338 * elf32-nds32.c: Likewise.
339 * elf64-hppa.c: Likewise.
340 * elfxx-mips.c: Likewise.
342 * pei-x86_64.c: Likewise.
346 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
349 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
351 (elf_i386_relocate_section): Likewise.
352 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
353 (elf_x86_64_relocate_section): Likewise.
355 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
358 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
359 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
360 relocation overflow check.
362 2016-03-14 H.J. Lu <hongjiu.lu@intel.com>
364 * bfd-in2.h: Regenerated.
366 2016-03-11 Dan Gissel <dgisselq@ieee.org>
369 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
370 uses bytes not octets.
371 * elflink.c (resolve_section): Likewise.
373 (eval_section): Pass the input_bfd to resolve_section.
374 (bfd_elf_perform_complex_relocation): Convert byte offset to
375 octets before read and writing values.
376 (elf_link_input_bfd): Add byte to octet conversions.
377 (elf_reloc_link_order): Likewise.
378 (elf_fixup_link_order): Likewise.
379 (bfd_elf_final_link): Likewise.
380 * reloc.c (_bfd_final_link_relocate): Likewise.
381 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
383 2016-03-10 Nick Clifton <nickc@redhat.com>
385 * config.bfd: Mark the i370 target as obsolete.
387 2016-03-09 Pedro Alves <palves@redhat.com>
389 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
390 gcc ABI)" to printable name.
391 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
392 of "v850-rh850" as printable name.
394 2016-03-09 Leon Winter <winter-gcc@bfw-online.de>
397 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
398 relocations against absolute symbols.
400 2016-03-09 Alan Modra <amodra@gmail.com>
403 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
404 length elements in the archive.
406 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
409 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
410 for -E/--dynamic-list only when not relocatable.
412 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
415 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
416 count for locally defined local IFUNC symbols in shared object.
417 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
419 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
422 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
425 2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
426 Andrew Burgess <andrew.burgess@embecosm.com>
428 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
429 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
430 (arc_elf_howto_init): Added assert to validate relocations.
431 (get_middle_endian_relocation): Delete.
432 (middle_endian_convert): New function.
433 (ME): Redefine, now does nothing.
435 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
436 definition to call middle_endian_convert. Add a new local
437 variable and make use of this throughout. Added call to
438 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
440 2016-03-07 Nick Clifton <nickc@redhat.com>
443 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
444 length elements in the archive.
446 2016-03-07 Jiong Wang <jiong.wang@arm.com>
448 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
449 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
451 2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
454 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
455 executable as definition if the new definition comes from a
458 2016-03-02 Alan Modra <amodra@gmail.com>
460 * Makefile.in: Regenerate.
461 * po/SRC-POTFILES.in: Regenerate.
463 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
465 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
466 relocation addend when sections get merged.
468 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
470 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
472 (elf_arc_relocate_section): Fixes and conditions to support PIE.
473 Assert for code sections dynamic relocs.
475 2016-02-26 Renlin Li <renlin.li@arm.com>
477 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
478 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
480 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
483 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
484 load with locally bound symbols if PIC is false or there is no
485 base register. Optimize branch to 0 if PIC is false.
486 (elf_i386_relocate_section): Don't generate dynamic relocations
487 against undefined weak symbols if PIC is false.
488 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
489 if we can't estimate relocation overflow with --no-relax.
490 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
491 symbols if PIC is false. Optimize branch to 0 if PIC is false.
492 (elf_x86_64_relocate_section): Don't generate dynamic relocations
493 against undefined weak symbols if PIC is false.
495 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
498 * bfd.c (bfd): Change flags to 20 bits.
499 (BFD_CONVERT_ELF_COMMON): New.
500 (BFD_USE_ELF_STT_COMMON): Likewise.
501 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
502 BFD_USE_ELF_STT_COMMON.
503 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
504 * configure.ac: Remove --enable-elf-stt-common.
505 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
506 common symbol depending on BFD_CONVERT_ELF_COMMON and
507 BFD_USE_ELF_STT_COMMON.
508 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
510 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
512 (elf_link_convert_common_type): New function.
513 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
514 common symbol depending on BFD_CONVERT_ELF_COMMON and
515 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
516 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
517 and BFD_USE_ELF_STT_COMMON to object_flags.
518 (TARGET_LITTLE_SYM): Likewise.
519 * syms.c (BSF_KEEP_G): Renamed to ...
520 (BSF_ELF_COMMON): This.
521 * bfd-in2.h: Regenerated.
522 * config.in: Likewise.
523 * configure: Likewise.
525 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
530 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
531 (elf_i386_link_hash_entry): Add has_got_reloc and
533 (elf_i386_link_hash_table): Add interp.
534 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
536 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
538 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
539 (elf_i386_fixup_symbol): New function.
540 (elf_i386_pie_finish_undefweak_symbol): Likewise.
541 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
542 relocations and discard relocations against resolved undefined
543 weak symbols in executable. Don't make resolved undefined weak
544 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
545 relocation against undefined weak symbols in PIE.
546 (elf_i386_size_dynamic_sections): Set interp to .interp section.
547 (elf_i386_relocate_section): Don't generate dynamic relocations
548 against resolved undefined weak symbols in PIE, except for
550 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
551 dynamic PLT/GOT relocations for resolved undefined weak symbols.
552 Don't generate dynamic relocation against resolved undefined weak
553 symbol in executable.
554 (elf_i386_finish_dynamic_sections): Call
555 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
556 (elf_backend_fixup_symbol): New.
557 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
558 (elf_x86_64_link_hash_entry): Add has_got_reloc and
560 (elf_x86_64_link_hash_table): Add interp.
561 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
563 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
565 (elf_x86_64_check_relocs): Set has_got_reloc and
567 (elf_x86_64_fixup_symbol): New function.
568 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
569 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
570 relocations and discard relocations against resolved undefined
571 weak symbols in executable. Don't make resolved undefined weak
572 symbols in executable dynamic.
573 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
574 (elf_x86_64_relocate_section): Check relocation overflow for
575 dynamic relocations against unresolved weak undefined symbols.
576 Don't generate dynamic relocations against resolved weak
577 undefined symbols in PIE.
578 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
579 dynamic PLT/GOT relocations for resolved undefined weak symbols.
580 Don't generate dynamic relocation against resolved undefined weak
581 symbol in executable.
582 (elf_x86_64_finish_dynamic_sections): Call
583 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
584 (elf_backend_fixup_symbol): New.
586 2016-02-26 Alan Modra <amodra@gmail.com>
588 * elf64-ppc.c (create_linkage_sections): Create sfpr when
589 save_restore_funcs, rest of sections when not relocatable.
590 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
591 (sfpr_define): Define all symbols on emitted code.
592 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
593 when relocatable. Move sfpr_define loop earlier.
595 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
597 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
598 (elf_x86_64_relocate_section): Use it. Replace
599 x86_64_elf_howto_table[r_type] with howto.
601 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
604 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
605 symbol version is unknown.
607 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
609 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
610 to (bfd_vma) -1 when setting needs_plt to 0.
611 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
613 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
615 * elflink.c (bfd_elf_record_link_assignment): Check for shared
616 library, instead of PIC, and don't check PDE when making linker
617 assigned symbol dynamic.
619 2016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
621 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
622 ABIVERSION for non-executable stack.
624 2016-02-23 Rich Felker <bugdal@aerifal.cx>
627 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
628 Always produce a RELATIVE reloc for a local symbol.
630 2016-02-23 Hans-Peter Nilsson <hp@axis.com>
632 Fix test-case ld-elf/pr19617b
633 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
634 discard unused non-function symbols when --dynamic-list-data.
636 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
638 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
639 dynsym section, even if it is empty, with dynamic sections.
641 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
643 * syms.c: Remove BSF_COMMON from comments.
644 * bfd-in2.h: Regenerated.
646 2016-02-22 Jiong Wang <jiong.wang@arm.com>
648 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
649 for destination. Remove useless function parameters.
650 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
652 2016-02-19 Nick Clifton <nickc@redhat.com>
655 * aoutx.h (aout_link_add_symbols): Check for out of range string
659 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
660 processing if we encounter a reloc without an associated symbol.
662 2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
665 * elflink.c (elf_link_add_object_symbols): Always create dynamic
666 sections for -E/--dynamic-list.
668 2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
670 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
673 2016-02-16 Joseph Myers <joseph@codesourcery.com>
675 * plugin.c (plugin_vec): Set match priority to 255.
676 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
677 matching against the plugin vector, take priority from there not
680 2016-02-15 Nick Clifton <nickc@redhat.com>
682 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
683 for length and type fields. Use a signed value for the
686 2016-02-10 H.J. Lu <hongjiu.lu@intel.com>
689 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
690 significant bit in GOT offset for R_386_GOT32X.
692 2016-02-10 Nick Clifton <nickc@redhat.com>
695 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
697 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
698 number of messages about FDE encoding preventing .eh_frame_hdr
701 2016-02-09 Nick Clifton <nickc@redhat.com>
703 * oasys.c (oasys_archive_p): Fix indentation.
704 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
705 constant for left shifting.
707 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
708 helpful warning message to explain why certain AArch64 relocs
711 2016-02-05 Simon Marchi <simon.marchi@ericsson.com>
713 * pe-mips.c (coff_mips_reloc): Fix formatting.
715 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
717 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
718 to bfd_mach_arc_arc600.
720 2016-02-04 Alan Modra <amodra@gmail.com>
722 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
725 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
728 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
729 distances in the compressed_size field of the output section.
731 2016-02-02 Alan Modra <amodra@gmail.com>
733 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
734 ELFv2 entry optimization.
736 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
739 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
740 no relocations in relocatable files.
742 2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
745 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
746 if a symbol from a library loaded via DT_NEEDED doesn't match
747 the symbol referenced by regular object.
749 2016-02-01 Nathaniel Smith <njs@pobox.com>
751 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
754 2016-02-01 Alan Modra <amodra@gmail.com>
756 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
757 an out of range reloc_index.
758 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
760 2016-02-01 Kamil Rytarowski <n54@gmx.com>
762 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
763 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
764 * Makefile.in: Regenerated.
766 2016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
768 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
770 2016-01-31 John David Anglin <danglin@gcc.gnu.org>
773 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
775 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
777 2016-01-30 H.J. Lu <hongjiu.lu@intel.com>
780 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
781 against STT_GNU_IFUNC symbol only with dynamic symbols.
782 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
784 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
787 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
788 decompress debug sections.
790 2016-01-25 Maciej W. Rozycki <macro@imgtec.com>
792 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
795 2016-01-25 Nick Clifton <nickc@redhat.com>
798 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
799 dsym filename buffer.
801 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
803 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
805 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
807 * elfxx-mips.c (BZ16_REG): Correct calculation.
809 2016-01-21 Nick Clifton <nickc@redhat.com>
811 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
812 changing the type of _loc to be bfd_byte *.
813 (elf_arc_finish_dynamic_symbol): Likewise.
815 2016-01-21 Nick Clifton <nickc@redhat.com>
818 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
819 class of the linker stub bfd.
820 (elf32_arm_check_relocs): Skip check for pic format after
821 processing a vxWorks R_ARM_ABS12 reloc.
822 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
823 reporting a class mismatch.
825 2016-01-21 Jiong Wang <jiong.wang@arm.com>
827 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
828 veneer for sym_sec != input_sec.
829 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
830 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
831 calculation destination.
833 2016-01-21 Alan Modra <amodra@gmail.com>
835 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
836 (swap_linux_prpsinfo64_out): New function.
837 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
838 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
839 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
840 (elfcore_write_linux_prpsinfo64): Likewise.
841 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
842 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
843 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
845 2016-01-21 Alan Modra <amodra@gmail.com>
847 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
848 * elf.c: Adjust #include.
849 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
850 * Makefile.am (SOURCE_HFILES): Update.
851 * Makefile.in: Regenerate.
852 * po/SRC-PORFILES.in: Regenerate.
854 2016-01-21 Alan Modra <amodra@gmail.com>
856 * configure.ac: Move corefile selection later in file. Move
857 tdefaults code immediately after other target vector code.
858 * configure: Regenerate.
860 2016-01-20 Mickael Guene <mickael.guene@st.com>
862 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
863 section using '.text.noread' pattern.
865 2016-01-19 John Baldwin <jhb@FreeBSD.org>
867 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
869 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
870 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
872 * arc-plt.def: New file.
873 * arc-plt.h: Likewise.
874 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
875 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
876 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
877 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
878 (name_for_global_symbol): Added.
879 (ADD_RELA): Helper to create dynamic relocs.
880 (new_got_entry_to_list): Create a new got entry in linked list.
881 (symbol_has_entry_of_type): Search for specific type of entry in
883 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
884 (is_reloc_for_TLS, arc_elf_set_private_flags)
885 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
886 (arc_elf_merge_private_bfd_data): New functions.
887 (debug_arc_reloc): Cleaned debug info printing.
888 (PDATA reloc): Changed not to perform address alignment.
889 (reverse_me): Added. Fix for ARC_32 relocs.
890 (arc_do_relocation): Return bfd_reloc_of when no relocation should
892 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
893 Changed function to access an array of list of GOT entries instead
894 of just an array of offsets.
895 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
896 (elf_arc_check_relocs): Likewise.
897 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
898 (elf_arc_finish_dynamic_sections): Likewise
899 (arc_create_dynamic_sections): Modified conditions to create
901 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
902 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
903 (relocate_plt_for_entry): Changed to support new way to define PLT
905 (add_symbol_to_plt): Likewise.
906 (arc_elf_link_hash_table_create): New function.
908 2016-01-18 Nick Clifton <nickc@redhat.com>
911 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
912 section number into internal section number.
913 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
914 * coffswap.h (coff_swap_sym_in): Likewise.
915 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
916 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
917 section number field is big enough to hold the external value.
919 2016-01-17 Alan Modra <amodra@gmail.com>
921 * configure: Regenerate.
923 2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
925 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
926 when address in first unwind entry does not match start of
929 2016-01-08 Richard Sandiford <richard.sandiford@arm.com>
930 Jiong Wang <jiong.wang@arm.com>
933 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
936 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
938 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
939 place 'R_' before the reloc name returned.
940 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
941 the relocation string.
943 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
945 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
947 (_bfd_mips_elf_merge_private_bfd_data): ... here.
949 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
951 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
952 attribute check after ELF file header flag check.
954 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
956 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
957 return status from `_bfd_elf_merge_object_attributes'.
959 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
961 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
963 (_bfd_mips_elf_merge_private_bfd_data): ... here.
965 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
967 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
968 handling of input MIPS ABI flags together.
970 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
972 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
973 attribute checks for null input.
975 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
977 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
978 pointers to target data.
980 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
982 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
985 2016-01-01 Alan Modra <amodra@gmail.com>
987 Update year range in copyright notice of all files.
989 For older changes see ChangeLog-2015 and doc/ChangeLog-0415
991 Copyright (C) 2016 Free Software Foundation, Inc.
993 Copying and distribution of this file, with or without modification,
994 are permitted in any medium without royalty provided the copyright
995 notice and this notice are preserved.
1001 version-control: never