1 2016-05-19 Maciej W. Rozycki <macro@imgtec.com>
3 * config.bfd: Remove `am34-*-linux*' support.
5 2016-05-19 Alan Modra <amodra@gmail.com>
7 * elf64-ppc.c (allocate_dynrelocs): Allocate got and other dynamic
8 relocs before plt relocs.
10 2016-05-19 Alan Modra <amodra@gmail.com>
12 * elf64-ppc.c (ppc64_elf_branch_reloc): Check for NULL owner
15 2016-05-18 Nick Clifton <nickc@redhat.com>
17 * po/sv.po: Updated Swedish translation.
19 2016-05-18 Alan Modra <amodra@gmail.com>
21 * elf32-arm.c (elf32_arm_size_stubs): Free or cache local syms
22 for each BFD. Don't goto error_ret_free_local from outside loop.
24 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
26 * elf-s390-common.c (elf_s390_add_symbol_hook): Remove
27 STB_GNU_UNIQUE handling.
28 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
29 * elf32-arm.c (elf32_arm_add_symbol_hook): Likewise.
30 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
31 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
32 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
33 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
34 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
35 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
36 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
37 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise.
38 * elf32-i386.c (elf_i386_add_symbol_hook): Remove function.
39 (elf_backend_add_symbol_hook): Remove macro.
40 * elflink.c (elf_link_add_object_symbols): Set `has_gnu_symbols'
41 for STB_GNU_UNIQUE symbols.
43 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
45 * elf32-v850.c (v850_elf_copy_notes): New function, factored out
47 (v850_elf_copy_private_bfd_data): ... here. Call the new
48 function and `_bfd_elf_copy_private_bfd_data'.
50 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
53 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
54 GOTPCREL relocation against large section.
56 2016-05-13 Alan Modra <amodra@gmail.com>
58 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_sections): Use
59 linker dynamic sections in calculating size and address of
60 dynamic tags rather than using output sections. Remove asserts.
61 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Likewise.
62 * elf32-cr16.c (_bfd_cr16_elf_finish_dynamic_sections): Likewise.
63 * elf32-cris.c (elf_cris_finish_dynamic_sections): Likewise.
64 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
65 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise.
66 * elf32-m32r.c (m32r_elf_finish_dynamic_sections): Likewise.
67 * elf32-m68k.c (elf_m68k_finish_dynamic_sections): Likewise.
68 * elf32-metag.c (elf_metag_finish_dynamic_sections): Likewise.
69 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Likewise.
70 * elf32-nds32.c (nds32_elf_finish_dynamic_sections): Likewise.
71 * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Likewise.
72 * elf32-or1k.c (or1k_elf_finish_dynamic_sections): Likewise.
73 * elf32-s390.c (elf_s390_finish_dynamic_sections): Likewise.
74 * elf32-score.c (s3_bfd_score_elf_finish_dynamic_sections): Likewise.
75 * elf32-score7.c (s7_bfd_score_elf_finish_dynamic_sections): Likewise.
76 * elf32-vax.c (elf_vax_finish_dynamic_sections): Likewise.
77 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Likewise.
78 * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Likewise.
79 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
80 * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
81 * elflink.c (bfd_elf_final_link): Likewise.
82 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
83 * elfxx-sparc.c (sparc_finish_dyn): Likewise. Adjust error message.
84 * elf32-arc.c (GET_SYMBOL_OR_SECTION): Remove ASSERT arg and
85 don't set doit. Look up dynobj section.
86 (elf_arc_finish_dynamic_sections): Adjust GET_SYMBOL_OR_SECTION
87 invocation and dynamic tag vma calculation. Don't test
89 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): Fix
92 2016-05-13 Alan Modra <amodra@gmail.com>
94 * elflink.c (elf_link_sort_relocs): Wrap overlong lines. Fix
95 octets_per_byte. Put dynamic .rela.plt last in link orders.
96 Assign output_offset for reloc sections rather than writing
97 sorted relocs from block corresponding to output_offset.
99 2016-05-12 Alan Modra <amodra@gmail.com>
101 * elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
103 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
105 * elfxx-mips.c (print_mips_ases): Add DSPR3.
107 2016-05-11 Alan Modra <amodra@gmail.com>
109 * elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
110 (elf32_hppa_check_relocs): Don't set dynobj.
111 (elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
112 (elf32_hppa_build_stubs): Likewise.
113 * elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
115 2016-05-11 Alan Modra <amodra@gmail.com>
118 * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
119 * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
121 2016-05-10 Jiong Wang <jiong.wang@arm.com>
123 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant
124 aarch64_tls_transition check.
126 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
128 * elf32-arm.c (enum elf32_arm_stub_type): New max_stub_type
130 (arm_stub_sym_claimed): New function.
131 (elf32_arm_create_stub): Use veneered symbol name and section if
132 veneer needs to claim its symbol, and keep logic unchanged otherwise.
133 (arm_stub_claim_sym): New function.
134 (arm_map_one_stub): Call arm_stub_claim_sym if veneer needs to claim
135 veneered symbol, otherwise create local symbol as before.
137 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
139 * elf32-arm.c (elf32_arm_size_stubs): Use new macros
140 ARM_GET_SYM_BRANCH_TYPE and ARM_SET_SYM_BRANCH_TYPE to respectively get
141 and set branch type of a symbol.
142 (bfd_elf32_arm_process_before_allocation): Likewise.
143 (elf32_arm_relocate_section): Likewise and fix identation along the
145 (allocate_dynrelocs_for_symbol): Likewise.
146 (elf32_arm_finish_dynamic_symbol): Likewise.
147 (elf32_arm_swap_symbol_in): Likewise.
148 (elf32_arm_swap_symbol_out): Likewise.
150 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
152 * bfd-in.h (elf32_arm_size_stubs): Add an output section parameter.
153 * bfd-in2.h: Regenerated.
154 * elf32-arm.c (struct elf32_arm_link_hash_table): Add an output section
155 parameter to add_stub_section callback.
156 (elf32_arm_create_or_find_stub_sec): Get output section from link_sec
157 and pass it down to add_stub_section.
158 (elf32_arm_add_stub): Set section to stub_sec if NULL before using it
160 (elf32_arm_size_stubs): Add output section parameter to
161 add_stub_section function pointer parameter.
163 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
165 * elf32-arm.c (elf32_arm_create_stub): New function.
166 (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation.
168 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
170 * elf32-arm.c (enum elf32_arm_stub_type): Delete
171 arm_stub_a8_veneer_lwm enumerator.
172 (arm_stub_a8_veneer_lwm): New unsigned constant to replace
173 aforementioned enumerator.
174 (struct elf32_arm_stub_hash_entry): Delete target_addend
175 field and add source_value.
176 (struct a8_erratum_fix): Delete addend field and add target_offset.
177 (stub_hash_newfunc): Initialize source_value field amd remove
178 initialization for target_addend.
179 (arm_build_one_stub): Stop special casing Thumb relocations: promote
180 the else to being always executed, moving the
181 arm_stub_a8_veneer_b_cond specific code in it. Remove
182 stub_entry->target_addend from points_to computation.
183 (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset
184 to target symbol from start of section rather than the offset from the
186 (elf32_arm_size_stubs): Set stub_entry's source_value and target_value
187 fields from struct a8_erratum_fix's offset and target_offset
189 (make_branch_to_a8_stub): Rename target variable to loc. Compute
190 veneered_insn_loc and loc using stub_entry's source_value.
192 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
194 (elf32_arm_merge_eabi_attributes): Add merging logic for
197 2016-05-10 Pip Cet <pipcet@gmail.com>
200 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
201 Define as _bfd_generic_copy_link_hash_symbol_type when using
204 2016-05-09 Nick Clifton <nickc@redhat.com>
207 * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link
208 field before accessing sections array.
210 2016-05-09 Christophe Monat <christophe.monat@st.com>
213 * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
214 (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
216 (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
218 (create_instruction_vldmdb): Likewise.
219 (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
220 uses it to re-encode.
222 2016-05-09 Nick Clifton <nickc@redhat.com>
225 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental
228 2016-05-09 Alan Modra <amodra@gmail.com>
230 * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
232 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
235 * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
236 documenting that indx == -3 if symbol is defined in a discarded
238 * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
239 symbol is defined in a discarded section.
240 (elf_link_output_extsym): Strip a global symbol defined in a
243 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
245 * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
248 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
250 * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
252 (elf_i386_convert_load_reloc): This. New function.
253 * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load
255 (elf_x86_64_convert_load_reloc): This. New function.
257 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
259 * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd.
260 Don't check if contents == NULL.
261 (elf_i386_tls_transition): Add from_relocate_section. Check
262 from_relocate_section instead of contents != NULL. Update
263 elf_i386_check_tls_transition call.
264 (elf_i386_check_relocs): Cache the section contents if
265 keep_memory is FALSE. Pass FALSE as from_relocate_section to
266 elf_i386_tls_transition.
267 (elf_i386_relocate_section): Pass TRUE as from_relocate_section
268 to elf_i386_tls_transition.
269 (elf_backend_caches_rawsize): New.
270 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check
272 (elf_x86_64_tls_transition): Add from_relocate_section. Check
273 from_relocate_section instead of contents != NULL.
274 (elf_x86_64_check_relocs): Cache the section contents if
275 keep_memory is FALSE. Pass FALSE as from_relocate_section to
276 elf_x86_64_tls_transition.
277 (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section
278 to elf_x86_64_tls_transition.
279 (elf_backend_caches_rawsize): New.
281 2016-05-03 Maciej W. Rozycki <macro@imgtec.com>
284 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle
287 2016-05-03 Jiong Wang <jiong.wang@arm.com>
289 * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype.
290 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
291 * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize
292 no_apply_dynamic_relocs.
293 (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though
294 dynamic relocations generated.
296 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
298 * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp
300 (elf_i386_create_dynamic_sections): Here.
301 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move
302 interp setting to ...
303 (elf_x86_64_create_dynamic_sections): Here.
305 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
307 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
308 and replace (EH)->has_got_reloc with GOT_RELOC.
309 (elf_i386_fixup_symbol): Pass has_got_reloc to
310 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
311 (elf_i386_allocate_dynrelocs): Likewise.
312 (elf_i386_relocate_section): Likewise.
313 (elf_i386_finish_dynamic_symbol): Likewise.
314 (elf_i386_convert_load): Pass TRUE to
315 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
316 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
317 GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
318 (elf_x86_64_fixup_symbol): Pass has_got_reloc to
319 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
320 (elf_x86_64_allocate_dynrelocs): Likewise.
321 (elf_x86_64_relocate_section): Likewise.
322 (elf_x86_64_finish_dynamic_symbol): Likewise.
323 (elf_x86_64_convert_load): Pass TRUE to
324 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
326 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
328 * elf32-i386.c (check_relocs_failed): New.
329 (elf_i386_check_relocs): Set check_relocs_failed on error.
330 (elf_i386_relocate_section): Skip if check_relocs failed.
332 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
334 * elf64-x86-64.c (elf_x86_64_check_relocs): Set
335 check_relocs_failed on error.
337 2016-04-29 Nick Clifton <nickc@redhat.com>
340 * elf-bfd.h (struct elf_backend_data): Rename
341 elf_backend_set_special_section_info_and_link to
342 elf_backend_copy_special_section_fields.
343 * elfxx-target.h: Likewise.
344 * elf.c (section_match): Ignore the SHF_INFO_LINK flag when
345 comparing section flags.
346 (copy_special_section_fields): New function.
347 (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field.
348 Perform two scans over special sections. The first one looks for
349 a direct mapping between the output section and an input section.
350 The second scan looks for a possible match based upon section
352 * elf32-arm.c (elf32_arm_copy_special_section_fields): New
353 function. Handle setting the sh_link field of SHT_ARM_EXIDX
355 * elf32-i386.c (elf32_i386_set_special_info_link): Rename to
356 elf32_i386_copy_solaris_special_section_fields.
357 * elf32-sparc.c (elf32_sparc_set_special_section_info_link):
358 Rename to elf32_sparc_copy_solaris_special_section_fields.
359 * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to
360 elf64_x86_64_copy_solaris_special_section_fields.
362 2016-04-28 Nick Clifton <nickc@redhat.com>
364 * po/zh_CN.po: Updated Chinese (simplified) translation.
366 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
369 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
370 when estimating distances between output sections.
372 2016-04-27 Alan Modra <amodra@gmail.com>
374 * elflink.c (_bfd_elf_is_start_stop): New function.
375 (_bfd_elf_gc_mark_rsec): Use it.
376 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
378 2016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
380 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
381 * mmo.c (mmo_get_section_contents): Likewise.
382 (mmo_set_section_contents): Likewise.
384 2016-04-26 H.J. Lu <hongjiu.lu@intel.com>
386 * elf-bfd.h (elf_link_hash_table): Update comments for
388 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
389 the unused NULL entry at the head of dynamic symbol table.
390 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
393 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
395 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
396 created file from dynobj.
398 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
400 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
401 normal input file if possible.
403 2016-04-21 Nick Clifton <nickc@redhat.com>
405 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
406 * aout-target.h: Likewise.
407 * aout-tic30.c: Likewise.
408 * binary.c: Likewise.
410 * coff-alpha.c: Likewise.
411 * coff-rs6000.c: Likewise.
412 * coff64-rs6000.c: Likewise.
413 * coffcode.h: Likewise.
414 * i386msdos.c: Likewise.
415 * i386os9k.c: Likewise.
418 * libbfd-in.h: Likewise.
419 * libecoff.h: Likewise.
420 * mach-o-target.c: Likewise.
422 * nlm-target.h: Likewise.
425 * plugin.c: Likewise.
426 * ppcboot.c: Likewise.
429 * tekhex.c: Likewise.
430 * versados.c: Likewise.
431 * vms-alpha.c: Likewise.
433 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
434 * linker.c (bfd_link_check_relocs): New function.
435 (_bfd_generic_link_check_relocs): New function.
436 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
437 _bfd_link_check_relocs field.
438 (struct bfd_target)L Add _bfd_link_check_relocs field.
439 * bfd-in2.h: Regenerate.
440 * libbfd.h: Regenerate.
442 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
444 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
445 (elf_backend_gc_sweep_hook): Likewise.
446 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
447 (elf_backend_gc_sweep_hook): Likewise.
449 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
451 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
454 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
457 * elf64-x86-64.c (check_relocs_failed): New.
458 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
459 Support relocation agaist local symbol. Set check_relocs_failed.
460 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
461 R_X86_64_32 relocation overflow.
462 (elf_x86_64_relocate_section): Skip if check_relocs failed.
463 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
465 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
467 * elf32-i386.c (elf_i386_check_relocs): Call
468 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
469 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
471 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
473 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
474 * elflink.c (_bfd_elf_link_check_relocs): New function.
475 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
476 if check_relocs_after_open_input is FALSE.
478 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
480 * cache.c: Update old style function definitions.
481 * elf32-m68k.c: Likewise.
482 * elf64-mmix.c: Likewise.
483 * stab-syms.c: Likewise.
485 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
487 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
489 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
491 * Makefile.in: Regenerated with automake 1.11.6.
492 * aclocal.m4: Likewise.
493 * doc/Makefile.in: Likewise.
495 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
497 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
498 * bfd-in2.h: Regenerate.
499 * libbfd.h: Regenerate.
500 * elf32-arc.c: Add 'opcode/arc.h' include.
501 (struct arc_relocation_data): Add symbol_name.
502 (arc_special_overflow_checks): New function.
503 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
504 required, add an extra comment.
505 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
507 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
509 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
511 (elf_arc_relocate_section): Update enum uses.
512 (elf_arc_check_relocs): Likewise.
513 (elf_arc_finish_dynamic_symbol): Likewise.
515 2016-04-14 H.J. Lu <hongjiu.lu@intel.com>
517 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
520 2016-04-14 Nick Clifton <nickc@redhat.com>
523 * elf-bbfd.h (struct elf_backend_data): New field:
525 New field: elf_backend_set_special_section_info_and_link
526 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
528 (elf_backend_set_special_section_info_and_link): Define if not
530 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
531 elf_backend_strtab_flags macros to initialise fields in structure.
532 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
533 being set even if SHF_MERGE is not set.
534 (elf_fake_sections): Likewise.
535 (section_match): New function. Matches two ELF sections based
536 upon fixed characteristics.
537 (find_link): New function. Locates a section in a BFD that
538 matches a section in a different BFD.
539 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
540 fields of reserved sections.
541 (bfd_elf_compute_section_file_positions): Set the flags for the
542 .shstrtab section based upon the elf_strtab_flags field in the
543 elf_backend_data structure.
544 (swap_out_syms): Likewise for the .strtab section.
545 * elflink.c (bfd_elf_final_link): Set the flags for the
546 .strtab section based upon the elf_strtab_flags field in the
547 elf_backend_data structure.
548 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
549 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
551 (elf_backend_set_special_section_info_and_link): Define for
553 * elf32-sparc.c: Likewise.
554 * elf64-x86-64.c: Likewise.
556 2016-04-11 H.J. Lu <hongjiu.lu@intel.com>
559 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
561 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
562 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
563 applies to read-only section.
564 * elf32-i386.c (elf_i386_link_hash_table): Add
565 readonly_dynrelocs_against_ifunc.
566 (elf_i386_allocate_dynrelocs): Updated.
567 (elf_i386_size_dynamic_sections): Issue an error for read-only
568 segment with dynamic IFUNC relocations only if
569 readonly_dynrelocs_against_ifunc is TRUE.
570 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
571 readonly_dynrelocs_against_ifunc.
572 (elf_x86_64_allocate_dynrelocs): Updated.
573 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
574 segment with dynamic IFUNC relocations only if
575 readonly_dynrelocs_against_ifunc is TRUE.
576 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
579 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
581 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
582 a fall through from error_ret_free_internal. Free local_syms in
583 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
585 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
587 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
588 (relocate_plt_for_entry): Likewise.
590 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
592 * elf32-arc.c (elf_arc_check_relocs): Changed
594 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
596 * elf32-arc.c (name_for_global_symbol): Changed assert.
597 (get_replace_function): Created.:
598 (struct arc_relocation_data): Changed to signed types.
599 (defines S, L, P, PDATA): Casted to signed type.
600 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
601 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
602 (arc_do_relocation): Changed.
604 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
606 * elf32-arc.c (name_for_global_symbol): Added assert to check for
608 (elf_arc_relocate_section): Added and changed asserts, validating
609 the synamic symbol index.
610 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
611 relocation if symbol has dynindx set to -1.
613 2016-04-05 Maciej W. Rozycki <macro@imgtec.com>
615 * elflink.c (elf_link_add_object_symbols): Always turn hidden
616 and internal symbols which have a dynamic index into local
619 2016-04-04 Nick Clifton <nickc@redhat.com>
622 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
623 version number if the version is zero.
625 2016-04-01 Alan Modra <amodra@gmail.com>
628 * elflink.c (on_needed_list): Recursively check needed status.
629 (elf_link_add_object_symbols): Adjust.
631 2016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
633 * elf32-avr.c (avr_elf32_load_records_from_section): Free
634 internal_relocs only if they aren't cached.
636 2016-03-29 Nick Clifton <nickc@redhat.com>
639 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
640 assertion on the size of the got section to allow it to be bigger
641 than the number of relocs.
643 2016-03-29 Toni Spets <toni.spets@iki.fi>
646 * coffcode.h (coff_write_object_contents): Revert accidental
649 2016-03-22 Alan Modra <amodra@gmail.com>
652 * dwarf2.c (read_attribute_value): Skip info_ptr check for
653 DW_FORM_flag_present.
655 2016-03-22 Nick Clifton <nickc@redhat.com>
657 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
658 architecture name for backwards compatibility.
660 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
663 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
664 sufficiently recent version of GCC.
665 * configure: Regenerate.
667 2016-03-22 Alan Modra <amodra@gmail.com>
670 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
672 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
674 * archures.c (bfd_mach_arc_nps400): Define.
675 * bfd-in2.h: Regenerate.
676 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
677 some existing entries to make space.
678 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
679 (arc_elf_final_write_processing): Likewise.
681 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
683 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
685 (arc_elf_final_write_processing): Don't bother setting cpu field
686 in e_flags, this will have been set elsewhere.
688 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
690 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
693 2016-03-21 Nick Clifton <nickc@redhat.com>
695 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
696 * configure: Regenerate.
697 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
698 alloca with call to xmalloc.
699 * elf32-nds32.c: Likewise.
700 * elf64-hppa.c: Likewise.
701 * elfxx-mips.c: Likewise.
703 * pei-x86_64.c: Likewise.
707 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
710 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
712 (elf_i386_relocate_section): Likewise.
713 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
714 (elf_x86_64_relocate_section): Likewise.
716 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
719 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
720 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
721 relocation overflow check.
723 2016-03-14 H.J. Lu <hongjiu.lu@intel.com>
725 * bfd-in2.h: Regenerated.
727 2016-03-11 Dan Gissel <dgisselq@ieee.org>
730 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
731 uses bytes not octets.
732 * elflink.c (resolve_section): Likewise.
734 (eval_section): Pass the input_bfd to resolve_section.
735 (bfd_elf_perform_complex_relocation): Convert byte offset to
736 octets before read and writing values.
737 (elf_link_input_bfd): Add byte to octet conversions.
738 (elf_reloc_link_order): Likewise.
739 (elf_fixup_link_order): Likewise.
740 (bfd_elf_final_link): Likewise.
741 * reloc.c (_bfd_final_link_relocate): Likewise.
742 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
744 2016-03-10 Nick Clifton <nickc@redhat.com>
746 * config.bfd: Mark the i370 target as obsolete.
748 2016-03-09 Pedro Alves <palves@redhat.com>
750 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
751 gcc ABI)" to printable name.
752 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
753 of "v850-rh850" as printable name.
755 2016-03-09 Leon Winter <winter-gcc@bfw-online.de>
758 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
759 relocations against absolute symbols.
761 2016-03-09 Alan Modra <amodra@gmail.com>
764 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
765 length elements in the archive.
767 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
770 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
771 for -E/--dynamic-list only when not relocatable.
773 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
776 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
777 count for locally defined local IFUNC symbols in shared object.
778 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
780 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
783 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
786 2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
787 Andrew Burgess <andrew.burgess@embecosm.com>
789 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
790 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
791 (arc_elf_howto_init): Added assert to validate relocations.
792 (get_middle_endian_relocation): Delete.
793 (middle_endian_convert): New function.
794 (ME): Redefine, now does nothing.
796 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
797 definition to call middle_endian_convert. Add a new local
798 variable and make use of this throughout. Added call to
799 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
801 2016-03-07 Nick Clifton <nickc@redhat.com>
804 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
805 length elements in the archive.
807 2016-03-07 Jiong Wang <jiong.wang@arm.com>
809 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
810 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
812 2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
815 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
816 executable as definition if the new definition comes from a
819 2016-03-02 Alan Modra <amodra@gmail.com>
821 * Makefile.in: Regenerate.
822 * po/SRC-POTFILES.in: Regenerate.
824 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
826 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
827 relocation addend when sections get merged.
829 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
831 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
833 (elf_arc_relocate_section): Fixes and conditions to support PIE.
834 Assert for code sections dynamic relocs.
836 2016-02-26 Renlin Li <renlin.li@arm.com>
838 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
839 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
841 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
844 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
845 load with locally bound symbols if PIC is false or there is no
846 base register. Optimize branch to 0 if PIC is false.
847 (elf_i386_relocate_section): Don't generate dynamic relocations
848 against undefined weak symbols if PIC is false.
849 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
850 if we can't estimate relocation overflow with --no-relax.
851 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
852 symbols if PIC is false. Optimize branch to 0 if PIC is false.
853 (elf_x86_64_relocate_section): Don't generate dynamic relocations
854 against undefined weak symbols if PIC is false.
856 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
859 * bfd.c (bfd): Change flags to 20 bits.
860 (BFD_CONVERT_ELF_COMMON): New.
861 (BFD_USE_ELF_STT_COMMON): Likewise.
862 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
863 BFD_USE_ELF_STT_COMMON.
864 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
865 * configure.ac: Remove --enable-elf-stt-common.
866 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
867 common symbol depending on BFD_CONVERT_ELF_COMMON and
868 BFD_USE_ELF_STT_COMMON.
869 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
871 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
873 (elf_link_convert_common_type): New function.
874 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
875 common symbol depending on BFD_CONVERT_ELF_COMMON and
876 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
877 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
878 and BFD_USE_ELF_STT_COMMON to object_flags.
879 (TARGET_LITTLE_SYM): Likewise.
880 * syms.c (BSF_KEEP_G): Renamed to ...
881 (BSF_ELF_COMMON): This.
882 * bfd-in2.h: Regenerated.
883 * config.in: Likewise.
884 * configure: Likewise.
886 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
891 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
892 (elf_i386_link_hash_entry): Add has_got_reloc and
894 (elf_i386_link_hash_table): Add interp.
895 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
897 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
899 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
900 (elf_i386_fixup_symbol): New function.
901 (elf_i386_pie_finish_undefweak_symbol): Likewise.
902 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
903 relocations and discard relocations against resolved undefined
904 weak symbols in executable. Don't make resolved undefined weak
905 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
906 relocation against undefined weak symbols in PIE.
907 (elf_i386_size_dynamic_sections): Set interp to .interp section.
908 (elf_i386_relocate_section): Don't generate dynamic relocations
909 against resolved undefined weak symbols in PIE, except for
911 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
912 dynamic PLT/GOT relocations for resolved undefined weak symbols.
913 Don't generate dynamic relocation against resolved undefined weak
914 symbol in executable.
915 (elf_i386_finish_dynamic_sections): Call
916 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
917 (elf_backend_fixup_symbol): New.
918 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
919 (elf_x86_64_link_hash_entry): Add has_got_reloc and
921 (elf_x86_64_link_hash_table): Add interp.
922 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
924 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
926 (elf_x86_64_check_relocs): Set has_got_reloc and
928 (elf_x86_64_fixup_symbol): New function.
929 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
930 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
931 relocations and discard relocations against resolved undefined
932 weak symbols in executable. Don't make resolved undefined weak
933 symbols in executable dynamic.
934 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
935 (elf_x86_64_relocate_section): Check relocation overflow for
936 dynamic relocations against unresolved weak undefined symbols.
937 Don't generate dynamic relocations against resolved weak
938 undefined symbols in PIE.
939 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
940 dynamic PLT/GOT relocations for resolved undefined weak symbols.
941 Don't generate dynamic relocation against resolved undefined weak
942 symbol in executable.
943 (elf_x86_64_finish_dynamic_sections): Call
944 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
945 (elf_backend_fixup_symbol): New.
947 2016-02-26 Alan Modra <amodra@gmail.com>
949 * elf64-ppc.c (create_linkage_sections): Create sfpr when
950 save_restore_funcs, rest of sections when not relocatable.
951 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
952 (sfpr_define): Define all symbols on emitted code.
953 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
954 when relocatable. Move sfpr_define loop earlier.
956 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
958 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
959 (elf_x86_64_relocate_section): Use it. Replace
960 x86_64_elf_howto_table[r_type] with howto.
962 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
965 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
966 symbol version is unknown.
968 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
970 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
971 to (bfd_vma) -1 when setting needs_plt to 0.
972 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
974 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
976 * elflink.c (bfd_elf_record_link_assignment): Check for shared
977 library, instead of PIC, and don't check PDE when making linker
978 assigned symbol dynamic.
980 2016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
982 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
983 ABIVERSION for non-executable stack.
985 2016-02-23 Rich Felker <bugdal@aerifal.cx>
988 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
989 Always produce a RELATIVE reloc for a local symbol.
991 2016-02-23 Hans-Peter Nilsson <hp@axis.com>
993 Fix test-case ld-elf/pr19617b
994 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
995 discard unused non-function symbols when --dynamic-list-data.
997 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
999 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
1000 dynsym section, even if it is empty, with dynamic sections.
1002 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
1004 * syms.c: Remove BSF_COMMON from comments.
1005 * bfd-in2.h: Regenerated.
1007 2016-02-22 Jiong Wang <jiong.wang@arm.com>
1009 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
1010 for destination. Remove useless function parameters.
1011 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
1013 2016-02-19 Nick Clifton <nickc@redhat.com>
1016 * aoutx.h (aout_link_add_symbols): Check for out of range string
1020 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
1021 processing if we encounter a reloc without an associated symbol.
1023 2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
1026 * elflink.c (elf_link_add_object_symbols): Always create dynamic
1027 sections for -E/--dynamic-list.
1029 2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
1031 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
1034 2016-02-16 Joseph Myers <joseph@codesourcery.com>
1036 * plugin.c (plugin_vec): Set match priority to 255.
1037 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
1038 matching against the plugin vector, take priority from there not
1041 2016-02-15 Nick Clifton <nickc@redhat.com>
1043 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
1044 for length and type fields. Use a signed value for the
1045 suffix_length field.
1047 2016-02-10 H.J. Lu <hongjiu.lu@intel.com>
1050 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
1051 significant bit in GOT offset for R_386_GOT32X.
1053 2016-02-10 Nick Clifton <nickc@redhat.com>
1056 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
1058 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
1059 number of messages about FDE encoding preventing .eh_frame_hdr
1062 2016-02-09 Nick Clifton <nickc@redhat.com>
1064 * oasys.c (oasys_archive_p): Fix indentation.
1065 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
1066 constant for left shifting.
1068 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
1069 helpful warning message to explain why certain AArch64 relocs
1072 2016-02-05 Simon Marchi <simon.marchi@ericsson.com>
1074 * pe-mips.c (coff_mips_reloc): Fix formatting.
1076 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
1078 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
1079 to bfd_mach_arc_arc600.
1081 2016-02-04 Alan Modra <amodra@gmail.com>
1083 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
1086 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1089 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
1090 distances in the compressed_size field of the output section.
1092 2016-02-02 Alan Modra <amodra@gmail.com>
1094 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
1095 ELFv2 entry optimization.
1097 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1100 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
1101 no relocations in relocatable files.
1103 2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
1106 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
1107 if a symbol from a library loaded via DT_NEEDED doesn't match
1108 the symbol referenced by regular object.
1110 2016-02-01 Nathaniel Smith <njs@pobox.com>
1112 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
1115 2016-02-01 Alan Modra <amodra@gmail.com>
1117 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
1118 an out of range reloc_index.
1119 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
1121 2016-02-01 Kamil Rytarowski <n54@gmx.com>
1123 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
1124 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
1125 * Makefile.in: Regenerated.
1127 2016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1129 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
1131 2016-01-31 John David Anglin <danglin@gcc.gnu.org>
1134 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
1136 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
1138 2016-01-30 H.J. Lu <hongjiu.lu@intel.com>
1141 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
1142 against STT_GNU_IFUNC symbol only with dynamic symbols.
1143 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
1145 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1148 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
1149 decompress debug sections.
1151 2016-01-25 Maciej W. Rozycki <macro@imgtec.com>
1153 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
1156 2016-01-25 Nick Clifton <nickc@redhat.com>
1159 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
1160 dsym filename buffer.
1162 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1164 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
1166 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1168 * elfxx-mips.c (BZ16_REG): Correct calculation.
1170 2016-01-21 Nick Clifton <nickc@redhat.com>
1172 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
1173 changing the type of _loc to be bfd_byte *.
1174 (elf_arc_finish_dynamic_symbol): Likewise.
1176 2016-01-21 Nick Clifton <nickc@redhat.com>
1179 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
1180 class of the linker stub bfd.
1181 (elf32_arm_check_relocs): Skip check for pic format after
1182 processing a vxWorks R_ARM_ABS12 reloc.
1183 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
1184 reporting a class mismatch.
1186 2016-01-21 Jiong Wang <jiong.wang@arm.com>
1188 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
1189 veneer for sym_sec != input_sec.
1190 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
1191 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
1192 calculation destination.
1194 2016-01-21 Alan Modra <amodra@gmail.com>
1196 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
1197 (swap_linux_prpsinfo64_out): New function.
1198 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1199 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
1200 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
1201 (elfcore_write_linux_prpsinfo64): Likewise.
1202 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
1203 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1204 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
1206 2016-01-21 Alan Modra <amodra@gmail.com>
1208 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
1209 * elf.c: Adjust #include.
1210 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
1211 * Makefile.am (SOURCE_HFILES): Update.
1212 * Makefile.in: Regenerate.
1213 * po/SRC-PORFILES.in: Regenerate.
1215 2016-01-21 Alan Modra <amodra@gmail.com>
1217 * configure.ac: Move corefile selection later in file. Move
1218 tdefaults code immediately after other target vector code.
1219 * configure: Regenerate.
1221 2016-01-20 Mickael Guene <mickael.guene@st.com>
1223 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
1224 section using '.text.noread' pattern.
1226 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1228 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
1230 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
1231 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
1233 * arc-plt.def: New file.
1234 * arc-plt.h: Likewise.
1235 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
1236 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
1237 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
1238 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
1239 (name_for_global_symbol): Added.
1240 (ADD_RELA): Helper to create dynamic relocs.
1241 (new_got_entry_to_list): Create a new got entry in linked list.
1242 (symbol_has_entry_of_type): Search for specific type of entry in
1244 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
1245 (is_reloc_for_TLS, arc_elf_set_private_flags)
1246 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
1247 (arc_elf_merge_private_bfd_data): New functions.
1248 (debug_arc_reloc): Cleaned debug info printing.
1249 (PDATA reloc): Changed not to perform address alignment.
1250 (reverse_me): Added. Fix for ARC_32 relocs.
1251 (arc_do_relocation): Return bfd_reloc_of when no relocation should
1253 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
1254 Changed function to access an array of list of GOT entries instead
1255 of just an array of offsets.
1256 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
1257 (elf_arc_check_relocs): Likewise.
1258 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
1259 (elf_arc_finish_dynamic_sections): Likewise
1260 (arc_create_dynamic_sections): Modified conditions to create
1262 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
1263 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
1264 (relocate_plt_for_entry): Changed to support new way to define PLT
1266 (add_symbol_to_plt): Likewise.
1267 (arc_elf_link_hash_table_create): New function.
1269 2016-01-18 Nick Clifton <nickc@redhat.com>
1272 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
1273 section number into internal section number.
1274 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
1275 * coffswap.h (coff_swap_sym_in): Likewise.
1276 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
1277 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
1278 section number field is big enough to hold the external value.
1280 2016-01-17 Alan Modra <amodra@gmail.com>
1282 * configure: Regenerate.
1284 2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
1286 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
1287 when address in first unwind entry does not match start of
1290 2016-01-08 Richard Sandiford <richard.sandiford@arm.com>
1291 Jiong Wang <jiong.wang@arm.com>
1294 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
1297 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1299 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
1300 place 'R_' before the reloc name returned.
1301 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
1302 the relocation string.
1304 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1306 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
1307 factored out from...
1308 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1310 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1312 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
1313 attribute check after ELF file header flag check.
1315 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1317 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
1318 return status from `_bfd_elf_merge_object_attributes'.
1320 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1322 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
1323 factored out from...
1324 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1326 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1328 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
1329 handling of input MIPS ABI flags together.
1331 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1333 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
1334 attribute checks for null input.
1336 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1338 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
1339 pointers to target data.
1341 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1343 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
1346 2016-01-01 Alan Modra <amodra@gmail.com>
1348 Update year range in copyright notice of all files.
1350 For older changes see ChangeLog-2015 and doc/ChangeLog-0415
1352 Copyright (C) 2016 Free Software Foundation, Inc.
1354 Copying and distribution of this file, with or without modification,
1355 are permitted in any medium without royalty provided the copyright
1356 notice and this notice are preserved.
1362 version-control: never