Factor our stub creation in ARM backend
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b715f643
TP
12016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
2
3 * elf32-arm.c (elf32_arm_create_stub): New function.
4 (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation.
5
8d9d9490
TP
62016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
7
8 * elf32-arm.c (enum elf32_arm_stub_type): Delete
9 arm_stub_a8_veneer_lwm enumerator.
10 (arm_stub_a8_veneer_lwm): New unsigned constant to replace
11 aforementioned enumerator.
12 (struct elf32_arm_stub_hash_entry): Delete target_addend
13 field and add source_value.
14 (struct a8_erratum_fix): Delete addend field and add target_offset.
15 (stub_hash_newfunc): Initialize source_value field amd remove
16 initialization for target_addend.
17 (arm_build_one_stub): Stop special casing Thumb relocations: promote
18 the else to being always executed, moving the
19 arm_stub_a8_veneer_b_cond specific code in it. Remove
20 stub_entry->target_addend from points_to computation.
21 (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset
22 to target symbol from start of section rather than the offset from the
23 stub address.
24 (elf32_arm_size_stubs): Set stub_entry's source_value and target_value
25 fields from struct a8_erratum_fix's offset and target_offset
26 respectively.
27 (make_branch_to_a8_stub): Rename target variable to loc. Compute
28 veneered_insn_loc and loc using stub_entry's source_value.
29
15afaa63
TP
302016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
31
32 (elf32_arm_merge_eabi_attributes): Add merging logic for
33 Tag_DSP_extension.
34
66a36822
PC
352016-05-10 Pip Cet <pipcet@gmail.com>
36
37 PR ld/20059
38 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
39 Define as _bfd_generic_copy_link_hash_symbol_type when using
40 generic hash table.
41
315350be
NC
422016-05-09 Nick Clifton <nickc@redhat.com>
43
44 PR binutils/20063
45 * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link
46 field before accessing sections array.
47
9239bbd3
CM
482016-05-09 Christophe Monat <christophe.monat@st.com>
49
50 PR ld/20030
51 * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
52 (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
53 to nb_words.
54 (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
55 encoding.
56 (create_instruction_vldmdb): Likewise.
57 (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
58 uses it to re-encode.
59
73597c18
NC
602016-05-09 Nick Clifton <nickc@redhat.com>
61
62 PR 19938
63 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental
64 commit.
65
ae1bb197
AM
662016-05-09 Alan Modra <amodra@gmail.com>
67
68 * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
69
97196564
L
702016-05-06 H.J. Lu <hongjiu.lu@intel.com>
71
72 PR ld/17550
73 * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
74 documenting that indx == -3 if symbol is defined in a discarded
75 section.
76 * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
77 symbol is defined in a discarded section.
78 (elf_link_output_extsym): Strip a global symbol defined in a
79 discarded section.
80
030e823c
L
812016-05-06 H.J. Lu <hongjiu.lu@intel.com>
82
83 * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
84 MCU.
85
c175a657
L
862016-05-05 H.J. Lu <hongjiu.lu@intel.com>
87
88 * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
89 conversion to ...
90 (elf_i386_convert_load_reloc): This. New function.
91 * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load
92 conversion to ...
93 (elf_x86_64_convert_load_reloc): This. New function.
94
bedfd056
L
952016-05-05 H.J. Lu <hongjiu.lu@intel.com>
96
97 * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd.
98 Don't check if contents == NULL.
99 (elf_i386_tls_transition): Add from_relocate_section. Check
100 from_relocate_section instead of contents != NULL. Update
101 elf_i386_check_tls_transition call.
102 (elf_i386_check_relocs): Cache the section contents if
103 keep_memory is FALSE. Pass FALSE as from_relocate_section to
104 elf_i386_tls_transition.
105 (elf_i386_relocate_section): Pass TRUE as from_relocate_section
106 to elf_i386_tls_transition.
107 (elf_backend_caches_rawsize): New.
108 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check
109 if contents == NULL.
110 (elf_x86_64_tls_transition): Add from_relocate_section. Check
111 from_relocate_section instead of contents != NULL.
112 (elf_x86_64_check_relocs): Cache the section contents if
113 keep_memory is FALSE. Pass FALSE as from_relocate_section to
114 elf_x86_64_tls_transition.
115 (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section
116 to elf_x86_64_tls_transition.
117 (elf_backend_caches_rawsize): New.
118
6d6a648c
MR
1192016-05-03 Maciej W. Rozycki <macro@imgtec.com>
120
121 PR 10549
122 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle
123 STB_GNU_UNIQUE.
124
1f56df9d
JW
1252016-05-03 Jiong Wang <jiong.wang@arm.com>
126
127 * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype.
128 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
129 * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize
130 no_apply_dynamic_relocs.
131 (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though
132 dynamic relocations generated.
133
493f652c
L
1342016-04-29 H.J. Lu <hongjiu.lu@intel.com>
135
136 * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp
137 setting to ...
138 (elf_i386_create_dynamic_sections): Here.
139 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move
140 interp setting to ...
141 (elf_x86_64_create_dynamic_sections): Here.
142
e62b9723
L
1432016-04-29 H.J. Lu <hongjiu.lu@intel.com>
144
145 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
146 and replace (EH)->has_got_reloc with GOT_RELOC.
147 (elf_i386_fixup_symbol): Pass has_got_reloc to
148 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
149 (elf_i386_allocate_dynrelocs): Likewise.
150 (elf_i386_relocate_section): Likewise.
151 (elf_i386_finish_dynamic_symbol): Likewise.
152 (elf_i386_convert_load): Pass TRUE to
153 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
154 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
155 GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
156 (elf_x86_64_fixup_symbol): Pass has_got_reloc to
157 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
158 (elf_x86_64_allocate_dynrelocs): Likewise.
159 (elf_x86_64_relocate_section): Likewise.
160 (elf_x86_64_finish_dynamic_symbol): Likewise.
161 (elf_x86_64_convert_load): Pass TRUE to
162 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
163
c337a162
L
1642016-04-29 H.J. Lu <hongjiu.lu@intel.com>
165
166 * elf32-i386.c (check_relocs_failed): New.
167 (elf_i386_check_relocs): Set check_relocs_failed on error.
168 (elf_i386_relocate_section): Skip if check_relocs failed.
169
afd9acee
L
1702016-04-29 H.J. Lu <hongjiu.lu@intel.com>
171
172 * elf64-x86-64.c (elf_x86_64_check_relocs): Set
173 check_relocs_failed on error.
174
5522f910
NC
1752016-04-29 Nick Clifton <nickc@redhat.com>
176
177 PR 19938
178 * elf-bfd.h (struct elf_backend_data): Rename
179 elf_backend_set_special_section_info_and_link to
180 elf_backend_copy_special_section_fields.
181 * elfxx-target.h: Likewise.
182 * elf.c (section_match): Ignore the SHF_INFO_LINK flag when
183 comparing section flags.
184 (copy_special_section_fields): New function.
185 (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field.
186 Perform two scans over special sections. The first one looks for
187 a direct mapping between the output section and an input section.
188 The second scan looks for a possible match based upon section
189 characteristics.
190 * elf32-arm.c (elf32_arm_copy_special_section_fields): New
191 function. Handle setting the sh_link field of SHT_ARM_EXIDX
192 sections.
193 * elf32-i386.c (elf32_i386_set_special_info_link): Rename to
194 elf32_i386_copy_solaris_special_section_fields.
195 * elf32-sparc.c (elf32_sparc_set_special_section_info_link):
196 Rename to elf32_sparc_copy_solaris_special_section_fields.
197 * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to
198 elf64_x86_64_copy_solaris_special_section_fields.
199
786a118c
NC
2002016-04-28 Nick Clifton <nickc@redhat.com>
201
202 * po/zh_CN.po: Updated Chinese (simplified) translation.
203
91f8bf69
L
2042016-04-27 H.J. Lu <hongjiu.lu@intel.com>
205
206 PR ld/20006
207 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
208 when estimating distances between output sections.
209
a6a4679f
AM
2102016-04-27 Alan Modra <amodra@gmail.com>
211
212 * elflink.c (_bfd_elf_is_start_stop): New function.
213 (_bfd_elf_gc_mark_rsec): Use it.
214 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
215
28cc9170
TS
2162016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
217
218 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
219 * mmo.c (mmo_get_section_contents): Likewise.
220 (mmo_set_section_contents): Likewise.
221
d5486c43
L
2222016-04-26 H.J. Lu <hongjiu.lu@intel.com>
223
224 * elf-bfd.h (elf_link_hash_table): Update comments for
225 dynsymcount.
226 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
227 the unused NULL entry at the head of dynamic symbol table.
228 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
229 checks.
230
6645479e
L
2312016-04-21 H.J. Lu <hongjiu.lu@intel.com>
232
233 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
234 created file from dynobj.
235
6cd255ca
L
2362016-04-21 H.J. Lu <hongjiu.lu@intel.com>
237
238 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
239 normal input file if possible.
240
4f3b23b3
NC
2412016-04-21 Nick Clifton <nickc@redhat.com>
242
243 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
244 * aout-target.h: Likewise.
245 * aout-tic30.c: Likewise.
246 * binary.c: Likewise.
247 * bout.c: Likewise.
248 * coff-alpha.c: Likewise.
249 * coff-rs6000.c: Likewise.
250 * coff64-rs6000.c: Likewise.
251 * coffcode.h: Likewise.
252 * i386msdos.c: Likewise.
253 * i386os9k.c: Likewise.
254 * ieee.c: Likewise.
255 * ihex.c: Likewise.
256 * libbfd-in.h: Likewise.
257 * libecoff.h: Likewise.
258 * mach-o-target.c: Likewise.
259 * mmo.c: Likewise.
260 * nlm-target.h: Likewise.
261 * oasys.c: Likewise.
262 * pef.c: Likewise.
263 * plugin.c: Likewise.
264 * ppcboot.c: Likewise.
265 * som.c: Likewise.
266 * srec.c: Likewise.
267 * tekhex.c: Likewise.
268 * versados.c: Likewise.
269 * vms-alpha.c: Likewise.
270 * xsym.c: Likewise.
271 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
272 * linker.c (bfd_link_check_relocs): New function.
273 (_bfd_generic_link_check_relocs): New function.
274 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
275 _bfd_link_check_relocs field.
276 (struct bfd_target)L Add _bfd_link_check_relocs field.
277 * bfd-in2.h: Regenerate.
278 * libbfd.h: Regenerate.
279
e66cdd68
L
2802016-04-20 H.J. Lu <hongjiu.lu@intel.com>
281
282 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
283 (elf_backend_gc_sweep_hook): Likewise.
284 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
285 (elf_backend_gc_sweep_hook): Likewise.
286
5ce03cea
L
2872016-04-20 H.J. Lu <hongjiu.lu@intel.com>
288
289 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
290 in excluded sections
291
338c190a
L
2922016-04-20 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR ld/19969
295 * elf64-x86-64.c (check_relocs_failed): New.
296 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
297 Support relocation agaist local symbol. Set check_relocs_failed.
298 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
299 R_X86_64_32 relocation overflow.
300 (elf_x86_64_relocate_section): Skip if check_relocs failed.
301 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
302
466ee2af
L
3032016-04-20 H.J. Lu <hongjiu.lu@intel.com>
304
305 * elf32-i386.c (elf_i386_check_relocs): Call
306 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
307 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
308
d9689752
L
3092016-04-20 H.J. Lu <hongjiu.lu@intel.com>
310
311 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
312 * elflink.c (_bfd_elf_link_check_relocs): New function.
313 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
314 if check_relocs_after_open_input is FALSE.
315
e6c7cdec
TS
3162016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
317
318 * cache.c: Update old style function definitions.
319 * elf32-m68k.c: Likewise.
320 * elf64-mmix.c: Likewise.
321 * stab-syms.c: Likewise.
322
b98e6871
TS
3232016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
324
325 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
326
6fd8e7c2
L
3272016-04-15 H.J. Lu <hongjiu.lu@intel.com>
328
329 * Makefile.in: Regenerated with automake 1.11.6.
330 * aclocal.m4: Likewise.
331 * doc/Makefile.in: Likewise.
332
4b0c052e
AB
3332016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
334
335 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
336 * bfd-in2.h: Regenerate.
337 * libbfd.h: Regenerate.
338 * elf32-arc.c: Add 'opcode/arc.h' include.
339 (struct arc_relocation_data): Add symbol_name.
340 (arc_special_overflow_checks): New function.
341 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
342 required, add an extra comment.
343 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
344
33cbe6c0
AB
3452016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
348 entries.
349 (elf_arc_relocate_section): Update enum uses.
350 (elf_arc_check_relocs): Likewise.
351 (elf_arc_finish_dynamic_symbol): Likewise.
352
7634c4e6
L
3532016-04-14 H.J. Lu <hongjiu.lu@intel.com>
354
355 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
356 "sh_link".
357
84865015
NC
3582016-04-14 Nick Clifton <nickc@redhat.com>
359
360 PR target/19938
361 * elf-bbfd.h (struct elf_backend_data): New field:
362 elf_strtab_flags.
363 New field: elf_backend_set_special_section_info_and_link
364 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
365 defined.
366 (elf_backend_set_special_section_info_and_link): Define if not
367 already defined.
368 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
369 elf_backend_strtab_flags macros to initialise fields in structure.
370 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
371 being set even if SHF_MERGE is not set.
372 (elf_fake_sections): Likewise.
373 (section_match): New function. Matches two ELF sections based
374 upon fixed characteristics.
375 (find_link): New function. Locates a section in a BFD that
376 matches a section in a different BFD.
377 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
378 fields of reserved sections.
379 (bfd_elf_compute_section_file_positions): Set the flags for the
380 .shstrtab section based upon the elf_strtab_flags field in the
381 elf_backend_data structure.
382 (swap_out_syms): Likewise for the .strtab section.
383 * elflink.c (bfd_elf_final_link): Set the flags for the
384 .strtab section based upon the elf_strtab_flags field in the
385 elf_backend_data structure.
386 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
387 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
388 targets.
389 (elf_backend_set_special_section_info_and_link): Define for
390 Solaris targets.
391 * elf32-sparc.c: Likewise.
392 * elf64-x86-64.c: Likewise.
393
2df3368d
L
3942016-04-11 H.J. Lu <hongjiu.lu@intel.com>
395
396 PR ld/19939
397 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
398 to bfd_boolean.
399 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
400 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
401 applies to read-only section.
402 * elf32-i386.c (elf_i386_link_hash_table): Add
403 readonly_dynrelocs_against_ifunc.
404 (elf_i386_allocate_dynrelocs): Updated.
405 (elf_i386_size_dynamic_sections): Issue an error for read-only
406 segment with dynamic IFUNC relocations only if
407 readonly_dynrelocs_against_ifunc is TRUE.
408 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
409 readonly_dynrelocs_against_ifunc.
410 (elf_x86_64_allocate_dynrelocs): Updated.
411 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
412 segment with dynamic IFUNC relocations only if
413 readonly_dynrelocs_against_ifunc is TRUE.
414 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
415 Updated.
416
15dd01b1
TP
4172016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
418
419 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
420 a fall through from error_ret_free_internal. Free local_syms in
421 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
422
1e5885b7
CZ
4232016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
424
425 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
426 (relocate_plt_for_entry): Likewise.
427
b3aee839
CZ
4282016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
429
430 * elf32-arc.c (elf_arc_check_relocs): Changed
431
094fb063
CZ
4322016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
433
434 * elf32-arc.c (name_for_global_symbol): Changed assert.
435 (get_replace_function): Created.:
436 (struct arc_relocation_data): Changed to signed types.
437 (defines S, L, P, PDATA): Casted to signed type.
438 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
439 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
440 (arc_do_relocation): Changed.
441
94e5c971
CZ
4422016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
443
444 * elf32-arc.c (name_for_global_symbol): Added assert to check for
445 symbol index.
446 (elf_arc_relocate_section): Added and changed asserts, validating
447 the synamic symbol index.
448 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
449 relocation if symbol has dynindx set to -1.
450
1f599d0e
MR
4512016-04-05 Maciej W. Rozycki <macro@imgtec.com>
452
453 * elflink.c (elf_link_add_object_symbols): Always turn hidden
454 and internal symbols which have a dynamic index into local
455 ones.
456
67f101ee
NC
4572016-04-04 Nick Clifton <nickc@redhat.com>
458
459 PR 19872
460 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
461 version number if the version is zero.
462
7b15fa7a
AM
4632016-04-01 Alan Modra <amodra@gmail.com>
464
465 PR 19886
466 * elflink.c (on_needed_list): Recursively check needed status.
467 (elf_link_add_object_symbols): Adjust.
468
024ea11b
SKS
4692016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
470
471 * elf32-avr.c (avr_elf32_load_records_from_section): Free
472 internal_relocs only if they aren't cached.
473
ed3056eb
NC
4742016-03-29 Nick Clifton <nickc@redhat.com>
475
476 PR 17334
477 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
478 assertion on the size of the got section to allow it to be bigger
479 than the number of relocs.
480
e2b4fc91
TS
4812016-03-29 Toni Spets <toni.spets@iki.fi>
482
483 PR 19878
484 * coffcode.h (coff_write_object_contents): Revert accidental
485 2014-11-10 change.
486
a97fbc7e
AM
4872016-03-22 Alan Modra <amodra@gmail.com>
488
489 PR 19850
490 * dwarf2.c (read_attribute_value): Skip info_ptr check for
491 DW_FORM_flag_present.
492
9780e045
NC
4932016-03-22 Nick Clifton <nickc@redhat.com>
494
96254e5c
NC
495 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
496 architecture name for backwards compatibility.
497
7769fa97
NC
498 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
499 unbounded stack use.
500
9780e045
NC
501 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
502 sufficiently recent version of GCC.
503 * configure: Regenerate.
504
6f4c0a42
AM
5052016-03-22 Alan Modra <amodra@gmail.com>
506
507 PR 19851
508 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
509
8699fc3e
AB
5102016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * archures.c (bfd_mach_arc_nps400): Define.
513 * bfd-in2.h: Regenerate.
514 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
515 some existing entries to make space.
516 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
517 (arc_elf_final_write_processing): Likewise.
518
a9522a21
AB
5192016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
520
521 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
522 EF_ARC_CPU_GENERIC.
523 (arc_elf_final_write_processing): Don't bother setting cpu field
524 in e_flags, this will have been set elsewhere.
525
c0334580
AB
5262016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
529 EF_ARC_MACH_MSK.
530
e1fa0163
NC
5312016-03-21 Nick Clifton <nickc@redhat.com>
532
533 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
534 * configure: Regenerate.
535 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
536 alloca with call to xmalloc.
537 * elf32-nds32.c: Likewise.
538 * elf64-hppa.c: Likewise.
539 * elfxx-mips.c: Likewise.
540 * pef.c: Likewise.
541 * pei-x86_64.c: Likewise.
542 * som.c: Likewise.
543 * xsym.c: Likewise.
544
4e0c91e4
L
5452016-03-15 H.J. Lu <hongjiu.lu@intel.com>
546
547 PR ld/19827
548 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
549 locally in PIE.
550 (elf_i386_relocate_section): Likewise.
551 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
552 (elf_x86_64_relocate_section): Likewise.
553
4c10bbaa
L
5542016-03-15 H.J. Lu <hongjiu.lu@intel.com>
555
556 PR ld/19807
557 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
558 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
559 relocation overflow check.
560
fbe48798
L
5612016-03-14 H.J. Lu <hongjiu.lu@intel.com>
562
563 * bfd-in2.h: Regenerated.
564
37b01f6a
DG
5652016-03-11 Dan Gissel <dgisselq@ieee.org>
566
567 PR 19713
568 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
569 uses bytes not octets.
570 * elflink.c (resolve_section): Likewise.
571 Add a bfd parameter.
572 (eval_section): Pass the input_bfd to resolve_section.
573 (bfd_elf_perform_complex_relocation): Convert byte offset to
574 octets before read and writing values.
575 (elf_link_input_bfd): Add byte to octet conversions.
576 (elf_reloc_link_order): Likewise.
577 (elf_fixup_link_order): Likewise.
578 (bfd_elf_final_link): Likewise.
579 * reloc.c (_bfd_final_link_relocate): Likewise.
580 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
581
3ed4ff97
NC
5822016-03-10 Nick Clifton <nickc@redhat.com>
583
584 * config.bfd: Mark the i370 target as obsolete.
585
4b05e0a7
PA
5862016-03-09 Pedro Alves <palves@redhat.com>
587
588 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
589 gcc ABI)" to printable name.
590 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
591 of "v850-rh850" as printable name.
592
26c62da0
LW
5932016-03-09 Leon Winter <winter-gcc@bfw-online.de>
594
595 PR ld/19623
596 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
597 relocations against absolute symbols.
598
03ee8583
AM
5992016-03-09 Alan Modra <amodra@gmail.com>
600
601 PR binutils/19775
602 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
603 length elements in the archive.
604
9c1d7a08
L
6052016-03-08 H.J. Lu <hongjiu.lu@intel.com>
606
607 PR ld/19789
608 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
609 for -E/--dynamic-list only when not relocatable.
610
d1ed1c7d
L
6112016-03-08 H.J. Lu <hongjiu.lu@intel.com>
612
613 PR ld/19784
614 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
615 count for locally defined local IFUNC symbols in shared object.
616 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
617
202ac193
L
6182016-03-08 H.J. Lu <hongjiu.lu@intel.com>
619
620 PR ld/19579
621 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
622 together.
623
72f3b6aa
CZ
6242016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
625 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
628 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
629 (arc_elf_howto_init): Added assert to validate relocations.
630 (get_middle_endian_relocation): Delete.
631 (middle_endian_convert): New function.
632 (ME): Redefine, now does nothing.
633 (IS_ME): New define.
634 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
635 definition to call middle_endian_convert. Add a new local
636 variable and make use of this throughout. Added call to
637 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
638
4fc87424
NC
6392016-03-07 Nick Clifton <nickc@redhat.com>
640
641 PR binutils/19775
642 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
643 length elements in the archive.
644
18f822a0
JW
6452016-03-07 Jiong Wang <jiong.wang@arm.com>
646
647 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
648 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
649
07492f66
L
6502016-03-04 H.J. Lu <hongjiu.lu@intel.com>
651
652 PR ld/19579
653 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
654 executable as definition if the new definition comes from a
655 shared library.
656
70a5df4f
AM
6572016-03-02 Alan Modra <amodra@gmail.com>
658
659 * Makefile.in: Regenerate.
660 * po/SRC-POTFILES.in: Regenerate.
661
841fdfcd
CZ
6622016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
663
664 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
665 relocation addend when sections get merged.
666
7e458899
CZ
6672016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
668
669 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
670 the flag change.
671 (elf_arc_relocate_section): Fixes and conditions to support PIE.
672 Assert for code sections dynamic relocs.
673
c5e3a364
RL
6742016-02-26 Renlin Li <renlin.li@arm.com>
675
676 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
677 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
678
bae420ef
L
6792016-02-26 H.J. Lu <hongjiu.lu@intel.com>
680
681 PR ld/19609
682 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
683 load with locally bound symbols if PIC is false or there is no
684 base register. Optimize branch to 0 if PIC is false.
685 (elf_i386_relocate_section): Don't generate dynamic relocations
686 against undefined weak symbols if PIC is false.
687 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
688 if we can't estimate relocation overflow with --no-relax.
689 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
690 symbols if PIC is false. Optimize branch to 0 if PIC is false.
691 (elf_x86_64_relocate_section): Don't generate dynamic relocations
692 against undefined weak symbols if PIC is false.
693
11e5f1ec
L
6942016-02-26 H.J. Lu <hongjiu.lu@intel.com>
695
696 PR ld/19645
697 * bfd.c (bfd): Change flags to 20 bits.
698 (BFD_CONVERT_ELF_COMMON): New.
699 (BFD_USE_ELF_STT_COMMON): Likewise.
700 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
701 BFD_USE_ELF_STT_COMMON.
702 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
703 * configure.ac: Remove --enable-elf-stt-common.
704 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
705 common symbol depending on BFD_CONVERT_ELF_COMMON and
706 BFD_USE_ELF_STT_COMMON.
707 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
708 STT_COMMON.
709 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
710 STT_COMMON.
711 (elf_link_convert_common_type): New function.
712 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
713 common symbol depending on BFD_CONVERT_ELF_COMMON and
714 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
715 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
716 and BFD_USE_ELF_STT_COMMON to object_flags.
717 (TARGET_LITTLE_SYM): Likewise.
718 * syms.c (BSF_KEEP_G): Renamed to ...
719 (BSF_ELF_COMMON): This.
720 * bfd-in2.h: Regenerated.
721 * config.in: Likewise.
722 * configure: Likewise.
723
aec6b87e
L
7242016-02-26 H.J. Lu <hongjiu.lu@intel.com>
725
726 PR ld/19636
727 PR ld/19704
728 PR ld/19719
729 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
730 (elf_i386_link_hash_entry): Add has_got_reloc and
731 has_non_got_reloc.
732 (elf_i386_link_hash_table): Add interp.
733 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
734 has_non_got_reloc.
735 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
736 has_non_got_reloc.
737 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
738 (elf_i386_fixup_symbol): New function.
739 (elf_i386_pie_finish_undefweak_symbol): Likewise.
740 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
741 relocations and discard relocations against resolved undefined
742 weak symbols in executable. Don't make resolved undefined weak
743 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
744 relocation against undefined weak symbols in PIE.
745 (elf_i386_size_dynamic_sections): Set interp to .interp section.
746 (elf_i386_relocate_section): Don't generate dynamic relocations
747 against resolved undefined weak symbols in PIE, except for
748 R_386_PC32.
749 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
750 dynamic PLT/GOT relocations for resolved undefined weak symbols.
751 Don't generate dynamic relocation against resolved undefined weak
752 symbol in executable.
753 (elf_i386_finish_dynamic_sections): Call
754 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
755 (elf_backend_fixup_symbol): New.
756 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
757 (elf_x86_64_link_hash_entry): Add has_got_reloc and
758 has_non_got_reloc.
759 (elf_x86_64_link_hash_table): Add interp.
760 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
761 has_non_got_reloc.
762 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
763 has_non_got_reloc.
764 (elf_x86_64_check_relocs): Set has_got_reloc and
765 has_non_got_reloc.
766 (elf_x86_64_fixup_symbol): New function.
767 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
768 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
769 relocations and discard relocations against resolved undefined
770 weak symbols in executable. Don't make resolved undefined weak
771 symbols in executable dynamic.
772 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
773 (elf_x86_64_relocate_section): Check relocation overflow for
774 dynamic relocations against unresolved weak undefined symbols.
775 Don't generate dynamic relocations against resolved weak
776 undefined symbols in PIE.
777 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
778 dynamic PLT/GOT relocations for resolved undefined weak symbols.
779 Don't generate dynamic relocation against resolved undefined weak
780 symbol in executable.
781 (elf_x86_64_finish_dynamic_sections): Call
782 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
783 (elf_backend_fixup_symbol): New.
784
b32547cd
AM
7852016-02-26 Alan Modra <amodra@gmail.com>
786
787 * elf64-ppc.c (create_linkage_sections): Create sfpr when
788 save_restore_funcs, rest of sections when not relocatable.
789 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
790 (sfpr_define): Define all symbols on emitted code.
791 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
792 when relocatable. Move sfpr_define loop earlier.
793
ef77d6af
L
7942016-02-24 H.J. Lu <hongjiu.lu@intel.com>
795
796 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
797 (elf_x86_64_relocate_section): Use it. Replace
798 x86_64_elf_howto_table[r_type] with howto.
799
0f550b3d
L
8002016-02-24 H.J. Lu <hongjiu.lu@intel.com>
801
802 PR ld/19698
803 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
804 symbol version is unknown.
805
13f42277
L
8062016-02-24 H.J. Lu <hongjiu.lu@intel.com>
807
808 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
809 to (bfd_vma) -1 when setting needs_plt to 0.
810 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
811
6b3b0ab8
L
8122016-02-23 H.J. Lu <hongjiu.lu@intel.com>
813
814 * elflink.c (bfd_elf_record_link_assignment): Check for shared
815 library, instead of PIC, and don't check PDE when making linker
816 assigned symbol dynamic.
817
17733f5b
FS
8182016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
819
820 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
821 ABIVERSION for non-executable stack.
822
47993b4a
RF
8232016-02-23 Rich Felker <bugdal@aerifal.cx>
824
825 PR target/19516
826 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
827 Always produce a RELATIVE reloc for a local symbol.
828
2d8dcb81
HPN
8292016-02-23 Hans-Peter Nilsson <hp@axis.com>
830
831 Fix test-case ld-elf/pr19617b
832 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
833 discard unused non-function symbols when --dynamic-list-data.
834
1a6e6083
L
8352016-02-22 H.J. Lu <hongjiu.lu@intel.com>
836
837 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
838 dynsym section, even if it is empty, with dynamic sections.
839
75c1920b
L
8402016-02-22 H.J. Lu <hongjiu.lu@intel.com>
841
842 * syms.c: Remove BSF_COMMON from comments.
843 * bfd-in2.h: Regenerated.
844
9a228467
JW
8452016-02-22 Jiong Wang <jiong.wang@arm.com>
846
847 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
848 for destination. Remove useless function parameters.
849 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
850
73768414
NC
8512016-02-19 Nick Clifton <nickc@redhat.com>
852
e517df3d
NC
853 PR ld/19629
854 * aoutx.h (aout_link_add_symbols): Check for out of range string
855 table offsets.
856
73768414
NC
857 PR ld/19628
858 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
859 processing if we encounter a reloc without an associated symbol.
860
bf89386a
L
8612016-02-18 H.J. Lu <hongjiu.lu@intel.com>
862
863 PR ld/19617
864 * elflink.c (elf_link_add_object_symbols): Always create dynamic
865 sections for -E/--dynamic-list.
866
8f79b794
L
8672016-02-17 H.J. Lu <hongjiu.lu@intel.com>
868
869 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
870 to bfd_true.
871
64bfc258
JM
8722016-02-16 Joseph Myers <joseph@codesourcery.com>
873
874 * plugin.c (plugin_vec): Set match priority to 255.
875 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
876 matching against the plugin vector, take priority from there not
877 from TEMP.
878
9fb71ee4
NC
8792016-02-15 Nick Clifton <nickc@redhat.com>
880
881 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
882 for length and type fields. Use a signed value for the
883 suffix_length field.
884
32875eb1
L
8852016-02-10 H.J. Lu <hongjiu.lu@intel.com>
886
887 PR ld/19601
888 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
889 significant bit in GOT offset for R_386_GOT32X.
890
83da6e74
NC
8912016-02-10 Nick Clifton <nickc@redhat.com>
892
893 PR 19405
894 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
895 immediate values.
896 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
897 number of messages about FDE encoding preventing .eh_frame_hdr
898 generation.
899
027e9c75
NC
9002016-02-09 Nick Clifton <nickc@redhat.com>
901
609332f1
NC
902 * oasys.c (oasys_archive_p): Fix indentation.
903 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
904 constant for left shifting.
905
027e9c75
NC
906 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
907 helpful warning message to explain why certain AArch64 relocs
908 might overflow.
909
6f57d046
SM
9102016-02-05 Simon Marchi <simon.marchi@ericsson.com>
911
912 * pe-mips.c (coff_mips_reloc): Fix formatting.
913
bdbca4e6
CM
9142016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
915
916 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
917 to bfd_mach_arc_arc600.
918
4f038ee5
AM
9192016-02-04 Alan Modra <amodra@gmail.com>
920
921 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
922 for big-endian.
923
4a539596
L
9242016-02-02 H.J. Lu <hongjiu.lu@intel.com>
925
926 PR ld/19542
927 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
fb06f1c0 928 distances in the compressed_size field of the output section.
4a539596 929
85fabe71
AM
9302016-02-02 Alan Modra <amodra@gmail.com>
931
932 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
933 ELFv2 entry optimization.
934
14f2c699
L
9352016-02-02 H.J. Lu <hongjiu.lu@intel.com>
936
937 PR binutils/19547
938 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
939 no relocations in relocatable files.
940
aef28989
L
9412016-02-01 H.J. Lu <hongjiu.lu@intel.com>
942
943 PR ld/19553
944 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
945 if a symbol from a library loaded via DT_NEEDED doesn't match
946 the symbol referenced by regular object.
947
655ed9ea
NS
9482016-02-01 Nathaniel Smith <njs@pobox.com>
949
950 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
951 CODE and DATA.
952
ec1f73bb
AM
9532016-02-01 Alan Modra <amodra@gmail.com>
954
955 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
956 an out of range reloc_index.
957 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
958
b6471e6e
KR
9592016-02-01 Kamil Rytarowski <n54@gmx.com>
960
961 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
962 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
963 * Makefile.in: Regenerated.
964
0bc7245a
JK
9652016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
968
6d4b2867
JDA
9692016-01-31 John David Anglin <danglin@gcc.gnu.org>
970
971 PR ld/19526
972 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
973 files.
974 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
975
d9e3b590
L
9762016-01-30 H.J. Lu <hongjiu.lu@intel.com>
977
978 PR ld/19539
979 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
980 against STT_GNU_IFUNC symbol only with dynamic symbols.
981 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
982
bf150a0b
L
9832016-01-28 H.J. Lu <hongjiu.lu@intel.com>
984
985 PR binutils/19523
986 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
987 decompress debug sections.
988
840855c5
MR
9892016-01-25 Maciej W. Rozycki <macro@imgtec.com>
990
991 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
992 `dynindx'.
993
cf466c2a
NC
9942016-01-25 Nick Clifton <nickc@redhat.com>
995
996 PR target/19435
997 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
998 dsym filename buffer.
999
eb6b0cf4
MR
10002016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1001
1002 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
1003
e67f83e5
MR
10042016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1005
1006 * elfxx-mips.c (BZ16_REG): Correct calculation.
1007
23a42089
NC
10082016-01-21 Nick Clifton <nickc@redhat.com>
1009
1010 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
1011 changing the type of _loc to be bfd_byte *.
1012 (elf_arc_finish_dynamic_symbol): Likewise.
1013
aebf9be7
NC
10142016-01-21 Nick Clifton <nickc@redhat.com>
1015
1016 PR ld/19455
1017 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
1018 class of the linker stub bfd.
1019 (elf32_arm_check_relocs): Skip check for pic format after
1020 processing a vxWorks R_ARM_ABS12 reloc.
1021 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
1022 reporting a class mismatch.
1023
2f340668
JW
10242016-01-21 Jiong Wang <jiong.wang@arm.com>
1025
1026 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
1027 veneer for sym_sec != input_sec.
1028 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
1029 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
1030 calculation destination.
1031
aeb70569
AM
10322016-01-21 Alan Modra <amodra@gmail.com>
1033
1034 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
1035 (swap_linux_prpsinfo64_out): New function.
1036 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1037 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
1038 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
1039 (elfcore_write_linux_prpsinfo64): Likewise.
1040 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
1041 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1042 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
1043
de64ce13
AM
10442016-01-21 Alan Modra <amodra@gmail.com>
1045
1046 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
1047 * elf.c: Adjust #include.
1048 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
1049 * Makefile.am (SOURCE_HFILES): Update.
1050 * Makefile.in: Regenerate.
1051 * po/SRC-PORFILES.in: Regenerate.
1052
c603b11b
AM
10532016-01-21 Alan Modra <amodra@gmail.com>
1054
1055 * configure.ac: Move corefile selection later in file. Move
1056 tdefaults code immediately after other target vector code.
1057 * configure: Regenerate.
1058
91f68a68
MG
10592016-01-20 Mickael Guene <mickael.guene@st.com>
1060
1061 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
1062 section using '.text.noread' pattern.
1063
5b2c414d
JB
10642016-01-19 John Baldwin <jhb@FreeBSD.org>
1065
1066 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
1067
34e967a5
MC
10682016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
1069 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
1070
1071 * arc-plt.def: New file.
1072 * arc-plt.h: Likewise.
1073 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
1074 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
1075 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
1076 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
1077 (name_for_global_symbol): Added.
1078 (ADD_RELA): Helper to create dynamic relocs.
1079 (new_got_entry_to_list): Create a new got entry in linked list.
1080 (symbol_has_entry_of_type): Search for specific type of entry in
1081 list.
1082 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
1083 (is_reloc_for_TLS, arc_elf_set_private_flags)
1084 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
1085 (arc_elf_merge_private_bfd_data): New functions.
1086 (debug_arc_reloc): Cleaned debug info printing.
1087 (PDATA reloc): Changed not to perform address alignment.
1088 (reverse_me): Added. Fix for ARC_32 relocs.
1089 (arc_do_relocation): Return bfd_reloc_of when no relocation should
1090 occur.
1091 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
1092 Changed function to access an array of list of GOT entries instead
1093 of just an array of offsets.
1094 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
1095 (elf_arc_check_relocs): Likewise.
1096 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
1097 (elf_arc_finish_dynamic_sections): Likewise
1098 (arc_create_dynamic_sections): Modified conditions to create
1099 dynamic sections.
1100 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
1101 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
1102 (relocate_plt_for_entry): Changed to support new way to define PLT
1103 related code.
1104 (add_symbol_to_plt): Likewise.
1105 (arc_elf_link_hash_table_create): New function.
1106
9ae678af
NC
11072016-01-18 Nick Clifton <nickc@redhat.com>
1108
1109 PR ld/19440
1110 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
1111 section number into internal section number.
1112 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
1113 * coffswap.h (coff_swap_sym_in): Likewise.
1114 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
1115 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
1116 section number field is big enough to hold the external value.
1117
5c14705f
AM
11182016-01-17 Alan Modra <amodra@gmail.com>
1119
1120 * configure: Regenerate.
1121
ac06903d
YU
11222016-01-12 Yury Usishchev <y.usishchev@samsung.com>
1123
1124 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
1125 when address in first unwind entry does not match start of
1126 section.
1127
109575d7
JW
11282016-01-08 Richard Sandiford <richard.sandiford@arm.com>
1129 Jiong Wang <jiong.wang@arm.com>
1130
1131 PR ld/19368
1132 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
1133 reloc_class_ifunc.
1134
b05a65d0
AB
11352016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
1138 place 'R_' before the reloc name returned.
1139 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
1140 the relocation string.
1141
a3dc0a7f
MR
11422016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1143
1144 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
1145 factored out from...
1146 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1147
d537eeb5
MR
11482016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1149
1150 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
1151 attribute check after ELF file header flag check.
1152
43d223b5
MR
11532016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1154
1155 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
1156 return status from `_bfd_elf_merge_object_attributes'.
1157
b2e9744f
MR
11582016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1159
1160 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
1161 factored out from...
1162 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1163
28d45e28
MR
11642016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1165
1166 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
1167 handling of input MIPS ABI flags together.
1168
23ba6f18
MR
11692016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1170
1171 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
1172 attribute checks for null input.
1173
cf8502c1
MR
11742016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1175
1176 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
1177 pointers to target data.
1178
dcb1c796
MR
11792016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1180
1181 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
1182 an FP ABI warning.
1183
6f2750fe
AM
11842016-01-01 Alan Modra <amodra@gmail.com>
1185
1186 Update year range in copyright notice of all files.
1187
3499769a
AM
1188For older changes see ChangeLog-2015 and doc/ChangeLog-0415
1189\f
1190Copyright (C) 2016 Free Software Foundation, Inc.
1191
1192Copying and distribution of this file, with or without modification,
1193are permitted in any medium without royalty provided the copyright
1194notice and this notice are preserved.
1195
1196Local Variables:
1197mode: change-log
1198left-margin: 8
1199fill-column: 74
1200version-control: never
1201End:
This page took 0.133292 seconds and 4 git commands to generate.