1 2016-05-13 Alan Modra <amodra@gmail.com>
3 * elflink.c (elf_link_sort_relocs): Wrap overlong lines. Fix
4 octets_per_byte. Put dynamic .rela.plt last in link orders.
5 Assign output_offset for reloc sections rather than writing
6 sorted relocs from block corresponding to output_offset.
8 2016-05-12 Alan Modra <amodra@gmail.com>
10 * elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
12 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
14 * elfxx-mips.c (print_mips_ases): Add DSPR3.
16 2016-05-11 Alan Modra <amodra@gmail.com>
18 * elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
19 (elf32_hppa_check_relocs): Don't set dynobj.
20 (elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
21 (elf32_hppa_build_stubs): Likewise.
22 * elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
24 2016-05-11 Alan Modra <amodra@gmail.com>
27 * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
28 * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
30 2016-05-10 Jiong Wang <jiong.wang@arm.com>
32 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant
33 aarch64_tls_transition check.
35 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
37 * elf32-arm.c (enum elf32_arm_stub_type): New max_stub_type
39 (arm_stub_sym_claimed): New function.
40 (elf32_arm_create_stub): Use veneered symbol name and section if
41 veneer needs to claim its symbol, and keep logic unchanged otherwise.
42 (arm_stub_claim_sym): New function.
43 (arm_map_one_stub): Call arm_stub_claim_sym if veneer needs to claim
44 veneered symbol, otherwise create local symbol as before.
46 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
48 * elf32-arm.c (elf32_arm_size_stubs): Use new macros
49 ARM_GET_SYM_BRANCH_TYPE and ARM_SET_SYM_BRANCH_TYPE to respectively get
50 and set branch type of a symbol.
51 (bfd_elf32_arm_process_before_allocation): Likewise.
52 (elf32_arm_relocate_section): Likewise and fix identation along the
54 (allocate_dynrelocs_for_symbol): Likewise.
55 (elf32_arm_finish_dynamic_symbol): Likewise.
56 (elf32_arm_swap_symbol_in): Likewise.
57 (elf32_arm_swap_symbol_out): Likewise.
59 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
61 * bfd-in.h (elf32_arm_size_stubs): Add an output section parameter.
62 * bfd-in2.h: Regenerated.
63 * elf32-arm.c (struct elf32_arm_link_hash_table): Add an output section
64 parameter to add_stub_section callback.
65 (elf32_arm_create_or_find_stub_sec): Get output section from link_sec
66 and pass it down to add_stub_section.
67 (elf32_arm_add_stub): Set section to stub_sec if NULL before using it
69 (elf32_arm_size_stubs): Add output section parameter to
70 add_stub_section function pointer parameter.
72 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
74 * elf32-arm.c (elf32_arm_create_stub): New function.
75 (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation.
77 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
79 * elf32-arm.c (enum elf32_arm_stub_type): Delete
80 arm_stub_a8_veneer_lwm enumerator.
81 (arm_stub_a8_veneer_lwm): New unsigned constant to replace
82 aforementioned enumerator.
83 (struct elf32_arm_stub_hash_entry): Delete target_addend
84 field and add source_value.
85 (struct a8_erratum_fix): Delete addend field and add target_offset.
86 (stub_hash_newfunc): Initialize source_value field amd remove
87 initialization for target_addend.
88 (arm_build_one_stub): Stop special casing Thumb relocations: promote
89 the else to being always executed, moving the
90 arm_stub_a8_veneer_b_cond specific code in it. Remove
91 stub_entry->target_addend from points_to computation.
92 (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset
93 to target symbol from start of section rather than the offset from the
95 (elf32_arm_size_stubs): Set stub_entry's source_value and target_value
96 fields from struct a8_erratum_fix's offset and target_offset
98 (make_branch_to_a8_stub): Rename target variable to loc. Compute
99 veneered_insn_loc and loc using stub_entry's source_value.
101 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
103 (elf32_arm_merge_eabi_attributes): Add merging logic for
106 2016-05-10 Pip Cet <pipcet@gmail.com>
109 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
110 Define as _bfd_generic_copy_link_hash_symbol_type when using
113 2016-05-09 Nick Clifton <nickc@redhat.com>
116 * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link
117 field before accessing sections array.
119 2016-05-09 Christophe Monat <christophe.monat@st.com>
122 * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
123 (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
125 (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
127 (create_instruction_vldmdb): Likewise.
128 (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
129 uses it to re-encode.
131 2016-05-09 Nick Clifton <nickc@redhat.com>
134 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental
137 2016-05-09 Alan Modra <amodra@gmail.com>
139 * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
141 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
144 * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
145 documenting that indx == -3 if symbol is defined in a discarded
147 * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
148 symbol is defined in a discarded section.
149 (elf_link_output_extsym): Strip a global symbol defined in a
152 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
154 * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
157 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
159 * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
161 (elf_i386_convert_load_reloc): This. New function.
162 * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load
164 (elf_x86_64_convert_load_reloc): This. New function.
166 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
168 * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd.
169 Don't check if contents == NULL.
170 (elf_i386_tls_transition): Add from_relocate_section. Check
171 from_relocate_section instead of contents != NULL. Update
172 elf_i386_check_tls_transition call.
173 (elf_i386_check_relocs): Cache the section contents if
174 keep_memory is FALSE. Pass FALSE as from_relocate_section to
175 elf_i386_tls_transition.
176 (elf_i386_relocate_section): Pass TRUE as from_relocate_section
177 to elf_i386_tls_transition.
178 (elf_backend_caches_rawsize): New.
179 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check
181 (elf_x86_64_tls_transition): Add from_relocate_section. Check
182 from_relocate_section instead of contents != NULL.
183 (elf_x86_64_check_relocs): Cache the section contents if
184 keep_memory is FALSE. Pass FALSE as from_relocate_section to
185 elf_x86_64_tls_transition.
186 (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section
187 to elf_x86_64_tls_transition.
188 (elf_backend_caches_rawsize): New.
190 2016-05-03 Maciej W. Rozycki <macro@imgtec.com>
193 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle
196 2016-05-03 Jiong Wang <jiong.wang@arm.com>
198 * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype.
199 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
200 * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize
201 no_apply_dynamic_relocs.
202 (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though
203 dynamic relocations generated.
205 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
207 * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp
209 (elf_i386_create_dynamic_sections): Here.
210 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move
211 interp setting to ...
212 (elf_x86_64_create_dynamic_sections): Here.
214 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
216 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
217 and replace (EH)->has_got_reloc with GOT_RELOC.
218 (elf_i386_fixup_symbol): Pass has_got_reloc to
219 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
220 (elf_i386_allocate_dynrelocs): Likewise.
221 (elf_i386_relocate_section): Likewise.
222 (elf_i386_finish_dynamic_symbol): Likewise.
223 (elf_i386_convert_load): Pass TRUE to
224 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
225 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
226 GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
227 (elf_x86_64_fixup_symbol): Pass has_got_reloc to
228 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
229 (elf_x86_64_allocate_dynrelocs): Likewise.
230 (elf_x86_64_relocate_section): Likewise.
231 (elf_x86_64_finish_dynamic_symbol): Likewise.
232 (elf_x86_64_convert_load): Pass TRUE to
233 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
235 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
237 * elf32-i386.c (check_relocs_failed): New.
238 (elf_i386_check_relocs): Set check_relocs_failed on error.
239 (elf_i386_relocate_section): Skip if check_relocs failed.
241 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
243 * elf64-x86-64.c (elf_x86_64_check_relocs): Set
244 check_relocs_failed on error.
246 2016-04-29 Nick Clifton <nickc@redhat.com>
249 * elf-bfd.h (struct elf_backend_data): Rename
250 elf_backend_set_special_section_info_and_link to
251 elf_backend_copy_special_section_fields.
252 * elfxx-target.h: Likewise.
253 * elf.c (section_match): Ignore the SHF_INFO_LINK flag when
254 comparing section flags.
255 (copy_special_section_fields): New function.
256 (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field.
257 Perform two scans over special sections. The first one looks for
258 a direct mapping between the output section and an input section.
259 The second scan looks for a possible match based upon section
261 * elf32-arm.c (elf32_arm_copy_special_section_fields): New
262 function. Handle setting the sh_link field of SHT_ARM_EXIDX
264 * elf32-i386.c (elf32_i386_set_special_info_link): Rename to
265 elf32_i386_copy_solaris_special_section_fields.
266 * elf32-sparc.c (elf32_sparc_set_special_section_info_link):
267 Rename to elf32_sparc_copy_solaris_special_section_fields.
268 * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to
269 elf64_x86_64_copy_solaris_special_section_fields.
271 2016-04-28 Nick Clifton <nickc@redhat.com>
273 * po/zh_CN.po: Updated Chinese (simplified) translation.
275 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
278 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
279 when estimating distances between output sections.
281 2016-04-27 Alan Modra <amodra@gmail.com>
283 * elflink.c (_bfd_elf_is_start_stop): New function.
284 (_bfd_elf_gc_mark_rsec): Use it.
285 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
287 2016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
289 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
290 * mmo.c (mmo_get_section_contents): Likewise.
291 (mmo_set_section_contents): Likewise.
293 2016-04-26 H.J. Lu <hongjiu.lu@intel.com>
295 * elf-bfd.h (elf_link_hash_table): Update comments for
297 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
298 the unused NULL entry at the head of dynamic symbol table.
299 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
302 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
304 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
305 created file from dynobj.
307 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
309 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
310 normal input file if possible.
312 2016-04-21 Nick Clifton <nickc@redhat.com>
314 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
315 * aout-target.h: Likewise.
316 * aout-tic30.c: Likewise.
317 * binary.c: Likewise.
319 * coff-alpha.c: Likewise.
320 * coff-rs6000.c: Likewise.
321 * coff64-rs6000.c: Likewise.
322 * coffcode.h: Likewise.
323 * i386msdos.c: Likewise.
324 * i386os9k.c: Likewise.
327 * libbfd-in.h: Likewise.
328 * libecoff.h: Likewise.
329 * mach-o-target.c: Likewise.
331 * nlm-target.h: Likewise.
334 * plugin.c: Likewise.
335 * ppcboot.c: Likewise.
338 * tekhex.c: Likewise.
339 * versados.c: Likewise.
340 * vms-alpha.c: Likewise.
342 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
343 * linker.c (bfd_link_check_relocs): New function.
344 (_bfd_generic_link_check_relocs): New function.
345 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
346 _bfd_link_check_relocs field.
347 (struct bfd_target)L Add _bfd_link_check_relocs field.
348 * bfd-in2.h: Regenerate.
349 * libbfd.h: Regenerate.
351 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
353 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
354 (elf_backend_gc_sweep_hook): Likewise.
355 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
356 (elf_backend_gc_sweep_hook): Likewise.
358 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
360 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
363 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
366 * elf64-x86-64.c (check_relocs_failed): New.
367 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
368 Support relocation agaist local symbol. Set check_relocs_failed.
369 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
370 R_X86_64_32 relocation overflow.
371 (elf_x86_64_relocate_section): Skip if check_relocs failed.
372 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
374 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
376 * elf32-i386.c (elf_i386_check_relocs): Call
377 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
378 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
380 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
382 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
383 * elflink.c (_bfd_elf_link_check_relocs): New function.
384 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
385 if check_relocs_after_open_input is FALSE.
387 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
389 * cache.c: Update old style function definitions.
390 * elf32-m68k.c: Likewise.
391 * elf64-mmix.c: Likewise.
392 * stab-syms.c: Likewise.
394 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
396 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
398 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
400 * Makefile.in: Regenerated with automake 1.11.6.
401 * aclocal.m4: Likewise.
402 * doc/Makefile.in: Likewise.
404 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
406 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
407 * bfd-in2.h: Regenerate.
408 * libbfd.h: Regenerate.
409 * elf32-arc.c: Add 'opcode/arc.h' include.
410 (struct arc_relocation_data): Add symbol_name.
411 (arc_special_overflow_checks): New function.
412 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
413 required, add an extra comment.
414 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
416 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
418 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
420 (elf_arc_relocate_section): Update enum uses.
421 (elf_arc_check_relocs): Likewise.
422 (elf_arc_finish_dynamic_symbol): Likewise.
424 2016-04-14 H.J. Lu <hongjiu.lu@intel.com>
426 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
429 2016-04-14 Nick Clifton <nickc@redhat.com>
432 * elf-bbfd.h (struct elf_backend_data): New field:
434 New field: elf_backend_set_special_section_info_and_link
435 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
437 (elf_backend_set_special_section_info_and_link): Define if not
439 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
440 elf_backend_strtab_flags macros to initialise fields in structure.
441 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
442 being set even if SHF_MERGE is not set.
443 (elf_fake_sections): Likewise.
444 (section_match): New function. Matches two ELF sections based
445 upon fixed characteristics.
446 (find_link): New function. Locates a section in a BFD that
447 matches a section in a different BFD.
448 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
449 fields of reserved sections.
450 (bfd_elf_compute_section_file_positions): Set the flags for the
451 .shstrtab section based upon the elf_strtab_flags field in the
452 elf_backend_data structure.
453 (swap_out_syms): Likewise for the .strtab section.
454 * elflink.c (bfd_elf_final_link): Set the flags for the
455 .strtab section based upon the elf_strtab_flags field in the
456 elf_backend_data structure.
457 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
458 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
460 (elf_backend_set_special_section_info_and_link): Define for
462 * elf32-sparc.c: Likewise.
463 * elf64-x86-64.c: Likewise.
465 2016-04-11 H.J. Lu <hongjiu.lu@intel.com>
468 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
470 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
471 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
472 applies to read-only section.
473 * elf32-i386.c (elf_i386_link_hash_table): Add
474 readonly_dynrelocs_against_ifunc.
475 (elf_i386_allocate_dynrelocs): Updated.
476 (elf_i386_size_dynamic_sections): Issue an error for read-only
477 segment with dynamic IFUNC relocations only if
478 readonly_dynrelocs_against_ifunc is TRUE.
479 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
480 readonly_dynrelocs_against_ifunc.
481 (elf_x86_64_allocate_dynrelocs): Updated.
482 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
483 segment with dynamic IFUNC relocations only if
484 readonly_dynrelocs_against_ifunc is TRUE.
485 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
488 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
490 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
491 a fall through from error_ret_free_internal. Free local_syms in
492 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
494 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
496 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
497 (relocate_plt_for_entry): Likewise.
499 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
501 * elf32-arc.c (elf_arc_check_relocs): Changed
503 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
505 * elf32-arc.c (name_for_global_symbol): Changed assert.
506 (get_replace_function): Created.:
507 (struct arc_relocation_data): Changed to signed types.
508 (defines S, L, P, PDATA): Casted to signed type.
509 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
510 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
511 (arc_do_relocation): Changed.
513 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
515 * elf32-arc.c (name_for_global_symbol): Added assert to check for
517 (elf_arc_relocate_section): Added and changed asserts, validating
518 the synamic symbol index.
519 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
520 relocation if symbol has dynindx set to -1.
522 2016-04-05 Maciej W. Rozycki <macro@imgtec.com>
524 * elflink.c (elf_link_add_object_symbols): Always turn hidden
525 and internal symbols which have a dynamic index into local
528 2016-04-04 Nick Clifton <nickc@redhat.com>
531 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
532 version number if the version is zero.
534 2016-04-01 Alan Modra <amodra@gmail.com>
537 * elflink.c (on_needed_list): Recursively check needed status.
538 (elf_link_add_object_symbols): Adjust.
540 2016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
542 * elf32-avr.c (avr_elf32_load_records_from_section): Free
543 internal_relocs only if they aren't cached.
545 2016-03-29 Nick Clifton <nickc@redhat.com>
548 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
549 assertion on the size of the got section to allow it to be bigger
550 than the number of relocs.
552 2016-03-29 Toni Spets <toni.spets@iki.fi>
555 * coffcode.h (coff_write_object_contents): Revert accidental
558 2016-03-22 Alan Modra <amodra@gmail.com>
561 * dwarf2.c (read_attribute_value): Skip info_ptr check for
562 DW_FORM_flag_present.
564 2016-03-22 Nick Clifton <nickc@redhat.com>
566 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
567 architecture name for backwards compatibility.
569 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
572 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
573 sufficiently recent version of GCC.
574 * configure: Regenerate.
576 2016-03-22 Alan Modra <amodra@gmail.com>
579 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
581 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
583 * archures.c (bfd_mach_arc_nps400): Define.
584 * bfd-in2.h: Regenerate.
585 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
586 some existing entries to make space.
587 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
588 (arc_elf_final_write_processing): Likewise.
590 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
592 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
594 (arc_elf_final_write_processing): Don't bother setting cpu field
595 in e_flags, this will have been set elsewhere.
597 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
599 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
602 2016-03-21 Nick Clifton <nickc@redhat.com>
604 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
605 * configure: Regenerate.
606 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
607 alloca with call to xmalloc.
608 * elf32-nds32.c: Likewise.
609 * elf64-hppa.c: Likewise.
610 * elfxx-mips.c: Likewise.
612 * pei-x86_64.c: Likewise.
616 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
619 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
621 (elf_i386_relocate_section): Likewise.
622 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
623 (elf_x86_64_relocate_section): Likewise.
625 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
628 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
629 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
630 relocation overflow check.
632 2016-03-14 H.J. Lu <hongjiu.lu@intel.com>
634 * bfd-in2.h: Regenerated.
636 2016-03-11 Dan Gissel <dgisselq@ieee.org>
639 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
640 uses bytes not octets.
641 * elflink.c (resolve_section): Likewise.
643 (eval_section): Pass the input_bfd to resolve_section.
644 (bfd_elf_perform_complex_relocation): Convert byte offset to
645 octets before read and writing values.
646 (elf_link_input_bfd): Add byte to octet conversions.
647 (elf_reloc_link_order): Likewise.
648 (elf_fixup_link_order): Likewise.
649 (bfd_elf_final_link): Likewise.
650 * reloc.c (_bfd_final_link_relocate): Likewise.
651 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
653 2016-03-10 Nick Clifton <nickc@redhat.com>
655 * config.bfd: Mark the i370 target as obsolete.
657 2016-03-09 Pedro Alves <palves@redhat.com>
659 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
660 gcc ABI)" to printable name.
661 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
662 of "v850-rh850" as printable name.
664 2016-03-09 Leon Winter <winter-gcc@bfw-online.de>
667 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
668 relocations against absolute symbols.
670 2016-03-09 Alan Modra <amodra@gmail.com>
673 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
674 length elements in the archive.
676 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
679 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
680 for -E/--dynamic-list only when not relocatable.
682 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
685 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
686 count for locally defined local IFUNC symbols in shared object.
687 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
689 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
692 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
695 2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
696 Andrew Burgess <andrew.burgess@embecosm.com>
698 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
699 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
700 (arc_elf_howto_init): Added assert to validate relocations.
701 (get_middle_endian_relocation): Delete.
702 (middle_endian_convert): New function.
703 (ME): Redefine, now does nothing.
705 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
706 definition to call middle_endian_convert. Add a new local
707 variable and make use of this throughout. Added call to
708 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
710 2016-03-07 Nick Clifton <nickc@redhat.com>
713 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
714 length elements in the archive.
716 2016-03-07 Jiong Wang <jiong.wang@arm.com>
718 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
719 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
721 2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
724 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
725 executable as definition if the new definition comes from a
728 2016-03-02 Alan Modra <amodra@gmail.com>
730 * Makefile.in: Regenerate.
731 * po/SRC-POTFILES.in: Regenerate.
733 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
735 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
736 relocation addend when sections get merged.
738 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
740 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
742 (elf_arc_relocate_section): Fixes and conditions to support PIE.
743 Assert for code sections dynamic relocs.
745 2016-02-26 Renlin Li <renlin.li@arm.com>
747 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
748 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
750 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
753 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
754 load with locally bound symbols if PIC is false or there is no
755 base register. Optimize branch to 0 if PIC is false.
756 (elf_i386_relocate_section): Don't generate dynamic relocations
757 against undefined weak symbols if PIC is false.
758 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
759 if we can't estimate relocation overflow with --no-relax.
760 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
761 symbols if PIC is false. Optimize branch to 0 if PIC is false.
762 (elf_x86_64_relocate_section): Don't generate dynamic relocations
763 against undefined weak symbols if PIC is false.
765 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
768 * bfd.c (bfd): Change flags to 20 bits.
769 (BFD_CONVERT_ELF_COMMON): New.
770 (BFD_USE_ELF_STT_COMMON): Likewise.
771 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
772 BFD_USE_ELF_STT_COMMON.
773 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
774 * configure.ac: Remove --enable-elf-stt-common.
775 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
776 common symbol depending on BFD_CONVERT_ELF_COMMON and
777 BFD_USE_ELF_STT_COMMON.
778 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
780 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
782 (elf_link_convert_common_type): New function.
783 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
784 common symbol depending on BFD_CONVERT_ELF_COMMON and
785 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
786 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
787 and BFD_USE_ELF_STT_COMMON to object_flags.
788 (TARGET_LITTLE_SYM): Likewise.
789 * syms.c (BSF_KEEP_G): Renamed to ...
790 (BSF_ELF_COMMON): This.
791 * bfd-in2.h: Regenerated.
792 * config.in: Likewise.
793 * configure: Likewise.
795 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
800 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
801 (elf_i386_link_hash_entry): Add has_got_reloc and
803 (elf_i386_link_hash_table): Add interp.
804 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
806 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
808 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
809 (elf_i386_fixup_symbol): New function.
810 (elf_i386_pie_finish_undefweak_symbol): Likewise.
811 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
812 relocations and discard relocations against resolved undefined
813 weak symbols in executable. Don't make resolved undefined weak
814 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
815 relocation against undefined weak symbols in PIE.
816 (elf_i386_size_dynamic_sections): Set interp to .interp section.
817 (elf_i386_relocate_section): Don't generate dynamic relocations
818 against resolved undefined weak symbols in PIE, except for
820 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
821 dynamic PLT/GOT relocations for resolved undefined weak symbols.
822 Don't generate dynamic relocation against resolved undefined weak
823 symbol in executable.
824 (elf_i386_finish_dynamic_sections): Call
825 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
826 (elf_backend_fixup_symbol): New.
827 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
828 (elf_x86_64_link_hash_entry): Add has_got_reloc and
830 (elf_x86_64_link_hash_table): Add interp.
831 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
833 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
835 (elf_x86_64_check_relocs): Set has_got_reloc and
837 (elf_x86_64_fixup_symbol): New function.
838 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
839 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
840 relocations and discard relocations against resolved undefined
841 weak symbols in executable. Don't make resolved undefined weak
842 symbols in executable dynamic.
843 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
844 (elf_x86_64_relocate_section): Check relocation overflow for
845 dynamic relocations against unresolved weak undefined symbols.
846 Don't generate dynamic relocations against resolved weak
847 undefined symbols in PIE.
848 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
849 dynamic PLT/GOT relocations for resolved undefined weak symbols.
850 Don't generate dynamic relocation against resolved undefined weak
851 symbol in executable.
852 (elf_x86_64_finish_dynamic_sections): Call
853 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
854 (elf_backend_fixup_symbol): New.
856 2016-02-26 Alan Modra <amodra@gmail.com>
858 * elf64-ppc.c (create_linkage_sections): Create sfpr when
859 save_restore_funcs, rest of sections when not relocatable.
860 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
861 (sfpr_define): Define all symbols on emitted code.
862 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
863 when relocatable. Move sfpr_define loop earlier.
865 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
867 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
868 (elf_x86_64_relocate_section): Use it. Replace
869 x86_64_elf_howto_table[r_type] with howto.
871 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
874 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
875 symbol version is unknown.
877 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
879 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
880 to (bfd_vma) -1 when setting needs_plt to 0.
881 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
883 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
885 * elflink.c (bfd_elf_record_link_assignment): Check for shared
886 library, instead of PIC, and don't check PDE when making linker
887 assigned symbol dynamic.
889 2016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
891 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
892 ABIVERSION for non-executable stack.
894 2016-02-23 Rich Felker <bugdal@aerifal.cx>
897 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
898 Always produce a RELATIVE reloc for a local symbol.
900 2016-02-23 Hans-Peter Nilsson <hp@axis.com>
902 Fix test-case ld-elf/pr19617b
903 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
904 discard unused non-function symbols when --dynamic-list-data.
906 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
908 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
909 dynsym section, even if it is empty, with dynamic sections.
911 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
913 * syms.c: Remove BSF_COMMON from comments.
914 * bfd-in2.h: Regenerated.
916 2016-02-22 Jiong Wang <jiong.wang@arm.com>
918 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
919 for destination. Remove useless function parameters.
920 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
922 2016-02-19 Nick Clifton <nickc@redhat.com>
925 * aoutx.h (aout_link_add_symbols): Check for out of range string
929 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
930 processing if we encounter a reloc without an associated symbol.
932 2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
935 * elflink.c (elf_link_add_object_symbols): Always create dynamic
936 sections for -E/--dynamic-list.
938 2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
940 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
943 2016-02-16 Joseph Myers <joseph@codesourcery.com>
945 * plugin.c (plugin_vec): Set match priority to 255.
946 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
947 matching against the plugin vector, take priority from there not
950 2016-02-15 Nick Clifton <nickc@redhat.com>
952 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
953 for length and type fields. Use a signed value for the
956 2016-02-10 H.J. Lu <hongjiu.lu@intel.com>
959 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
960 significant bit in GOT offset for R_386_GOT32X.
962 2016-02-10 Nick Clifton <nickc@redhat.com>
965 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
967 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
968 number of messages about FDE encoding preventing .eh_frame_hdr
971 2016-02-09 Nick Clifton <nickc@redhat.com>
973 * oasys.c (oasys_archive_p): Fix indentation.
974 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
975 constant for left shifting.
977 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
978 helpful warning message to explain why certain AArch64 relocs
981 2016-02-05 Simon Marchi <simon.marchi@ericsson.com>
983 * pe-mips.c (coff_mips_reloc): Fix formatting.
985 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
987 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
988 to bfd_mach_arc_arc600.
990 2016-02-04 Alan Modra <amodra@gmail.com>
992 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
995 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
998 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
999 distances in the compressed_size field of the output section.
1001 2016-02-02 Alan Modra <amodra@gmail.com>
1003 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
1004 ELFv2 entry optimization.
1006 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1009 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
1010 no relocations in relocatable files.
1012 2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
1015 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
1016 if a symbol from a library loaded via DT_NEEDED doesn't match
1017 the symbol referenced by regular object.
1019 2016-02-01 Nathaniel Smith <njs@pobox.com>
1021 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
1024 2016-02-01 Alan Modra <amodra@gmail.com>
1026 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
1027 an out of range reloc_index.
1028 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
1030 2016-02-01 Kamil Rytarowski <n54@gmx.com>
1032 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
1033 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
1034 * Makefile.in: Regenerated.
1036 2016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1038 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
1040 2016-01-31 John David Anglin <danglin@gcc.gnu.org>
1043 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
1045 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
1047 2016-01-30 H.J. Lu <hongjiu.lu@intel.com>
1050 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
1051 against STT_GNU_IFUNC symbol only with dynamic symbols.
1052 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
1054 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1057 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
1058 decompress debug sections.
1060 2016-01-25 Maciej W. Rozycki <macro@imgtec.com>
1062 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
1065 2016-01-25 Nick Clifton <nickc@redhat.com>
1068 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
1069 dsym filename buffer.
1071 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1073 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
1075 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1077 * elfxx-mips.c (BZ16_REG): Correct calculation.
1079 2016-01-21 Nick Clifton <nickc@redhat.com>
1081 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
1082 changing the type of _loc to be bfd_byte *.
1083 (elf_arc_finish_dynamic_symbol): Likewise.
1085 2016-01-21 Nick Clifton <nickc@redhat.com>
1088 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
1089 class of the linker stub bfd.
1090 (elf32_arm_check_relocs): Skip check for pic format after
1091 processing a vxWorks R_ARM_ABS12 reloc.
1092 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
1093 reporting a class mismatch.
1095 2016-01-21 Jiong Wang <jiong.wang@arm.com>
1097 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
1098 veneer for sym_sec != input_sec.
1099 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
1100 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
1101 calculation destination.
1103 2016-01-21 Alan Modra <amodra@gmail.com>
1105 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
1106 (swap_linux_prpsinfo64_out): New function.
1107 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1108 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
1109 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
1110 (elfcore_write_linux_prpsinfo64): Likewise.
1111 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
1112 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1113 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
1115 2016-01-21 Alan Modra <amodra@gmail.com>
1117 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
1118 * elf.c: Adjust #include.
1119 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
1120 * Makefile.am (SOURCE_HFILES): Update.
1121 * Makefile.in: Regenerate.
1122 * po/SRC-PORFILES.in: Regenerate.
1124 2016-01-21 Alan Modra <amodra@gmail.com>
1126 * configure.ac: Move corefile selection later in file. Move
1127 tdefaults code immediately after other target vector code.
1128 * configure: Regenerate.
1130 2016-01-20 Mickael Guene <mickael.guene@st.com>
1132 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
1133 section using '.text.noread' pattern.
1135 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1137 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
1139 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
1140 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
1142 * arc-plt.def: New file.
1143 * arc-plt.h: Likewise.
1144 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
1145 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
1146 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
1147 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
1148 (name_for_global_symbol): Added.
1149 (ADD_RELA): Helper to create dynamic relocs.
1150 (new_got_entry_to_list): Create a new got entry in linked list.
1151 (symbol_has_entry_of_type): Search for specific type of entry in
1153 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
1154 (is_reloc_for_TLS, arc_elf_set_private_flags)
1155 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
1156 (arc_elf_merge_private_bfd_data): New functions.
1157 (debug_arc_reloc): Cleaned debug info printing.
1158 (PDATA reloc): Changed not to perform address alignment.
1159 (reverse_me): Added. Fix for ARC_32 relocs.
1160 (arc_do_relocation): Return bfd_reloc_of when no relocation should
1162 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
1163 Changed function to access an array of list of GOT entries instead
1164 of just an array of offsets.
1165 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
1166 (elf_arc_check_relocs): Likewise.
1167 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
1168 (elf_arc_finish_dynamic_sections): Likewise
1169 (arc_create_dynamic_sections): Modified conditions to create
1171 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
1172 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
1173 (relocate_plt_for_entry): Changed to support new way to define PLT
1175 (add_symbol_to_plt): Likewise.
1176 (arc_elf_link_hash_table_create): New function.
1178 2016-01-18 Nick Clifton <nickc@redhat.com>
1181 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
1182 section number into internal section number.
1183 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
1184 * coffswap.h (coff_swap_sym_in): Likewise.
1185 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
1186 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
1187 section number field is big enough to hold the external value.
1189 2016-01-17 Alan Modra <amodra@gmail.com>
1191 * configure: Regenerate.
1193 2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
1195 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
1196 when address in first unwind entry does not match start of
1199 2016-01-08 Richard Sandiford <richard.sandiford@arm.com>
1200 Jiong Wang <jiong.wang@arm.com>
1203 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
1206 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1208 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
1209 place 'R_' before the reloc name returned.
1210 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
1211 the relocation string.
1213 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1215 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
1216 factored out from...
1217 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1219 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1221 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
1222 attribute check after ELF file header flag check.
1224 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1226 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
1227 return status from `_bfd_elf_merge_object_attributes'.
1229 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1231 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
1232 factored out from...
1233 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1235 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1237 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
1238 handling of input MIPS ABI flags together.
1240 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1242 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
1243 attribute checks for null input.
1245 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1247 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
1248 pointers to target data.
1250 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1252 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
1255 2016-01-01 Alan Modra <amodra@gmail.com>
1257 Update year range in copyright notice of all files.
1259 For older changes see ChangeLog-2015 and doc/ChangeLog-0415
1261 Copyright (C) 2016 Free Software Foundation, Inc.
1263 Copying and distribution of this file, with or without modification,
1264 are permitted in any medium without royalty provided the copyright
1265 notice and this notice are preserved.
1271 version-control: never