Updated Chinese (simplified) translations for bfd, binutils and gold.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
786a118c
NC
12016-04-28 Nick Clifton <nickc@redhat.com>
2
3 * po/zh_CN.po: Updated Chinese (simplified) translation.
4
91f8bf69
L
52016-04-27 H.J. Lu <hongjiu.lu@intel.com>
6
7 PR ld/20006
8 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
9 when estimating distances between output sections.
10
a6a4679f
AM
112016-04-27 Alan Modra <amodra@gmail.com>
12
13 * elflink.c (_bfd_elf_is_start_stop): New function.
14 (_bfd_elf_gc_mark_rsec): Use it.
15 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
16
28cc9170
TS
172016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
18
19 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
20 * mmo.c (mmo_get_section_contents): Likewise.
21 (mmo_set_section_contents): Likewise.
22
d5486c43
L
232016-04-26 H.J. Lu <hongjiu.lu@intel.com>
24
25 * elf-bfd.h (elf_link_hash_table): Update comments for
26 dynsymcount.
27 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
28 the unused NULL entry at the head of dynamic symbol table.
29 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
30 checks.
31
6645479e
L
322016-04-21 H.J. Lu <hongjiu.lu@intel.com>
33
34 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
35 created file from dynobj.
36
6cd255ca
L
372016-04-21 H.J. Lu <hongjiu.lu@intel.com>
38
39 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
40 normal input file if possible.
41
4f3b23b3
NC
422016-04-21 Nick Clifton <nickc@redhat.com>
43
44 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
45 * aout-target.h: Likewise.
46 * aout-tic30.c: Likewise.
47 * binary.c: Likewise.
48 * bout.c: Likewise.
49 * coff-alpha.c: Likewise.
50 * coff-rs6000.c: Likewise.
51 * coff64-rs6000.c: Likewise.
52 * coffcode.h: Likewise.
53 * i386msdos.c: Likewise.
54 * i386os9k.c: Likewise.
55 * ieee.c: Likewise.
56 * ihex.c: Likewise.
57 * libbfd-in.h: Likewise.
58 * libecoff.h: Likewise.
59 * mach-o-target.c: Likewise.
60 * mmo.c: Likewise.
61 * nlm-target.h: Likewise.
62 * oasys.c: Likewise.
63 * pef.c: Likewise.
64 * plugin.c: Likewise.
65 * ppcboot.c: Likewise.
66 * som.c: Likewise.
67 * srec.c: Likewise.
68 * tekhex.c: Likewise.
69 * versados.c: Likewise.
70 * vms-alpha.c: Likewise.
71 * xsym.c: Likewise.
72 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
73 * linker.c (bfd_link_check_relocs): New function.
74 (_bfd_generic_link_check_relocs): New function.
75 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
76 _bfd_link_check_relocs field.
77 (struct bfd_target)L Add _bfd_link_check_relocs field.
78 * bfd-in2.h: Regenerate.
79 * libbfd.h: Regenerate.
80
e66cdd68
L
812016-04-20 H.J. Lu <hongjiu.lu@intel.com>
82
83 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
84 (elf_backend_gc_sweep_hook): Likewise.
85 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
86 (elf_backend_gc_sweep_hook): Likewise.
87
5ce03cea
L
882016-04-20 H.J. Lu <hongjiu.lu@intel.com>
89
90 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
91 in excluded sections
92
338c190a
L
932016-04-20 H.J. Lu <hongjiu.lu@intel.com>
94
95 PR ld/19969
96 * elf64-x86-64.c (check_relocs_failed): New.
97 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
98 Support relocation agaist local symbol. Set check_relocs_failed.
99 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
100 R_X86_64_32 relocation overflow.
101 (elf_x86_64_relocate_section): Skip if check_relocs failed.
102 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
103
466ee2af
L
1042016-04-20 H.J. Lu <hongjiu.lu@intel.com>
105
106 * elf32-i386.c (elf_i386_check_relocs): Call
107 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
108 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
109
d9689752
L
1102016-04-20 H.J. Lu <hongjiu.lu@intel.com>
111
112 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
113 * elflink.c (_bfd_elf_link_check_relocs): New function.
114 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
115 if check_relocs_after_open_input is FALSE.
116
e6c7cdec
TS
1172016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
118
119 * cache.c: Update old style function definitions.
120 * elf32-m68k.c: Likewise.
121 * elf64-mmix.c: Likewise.
122 * stab-syms.c: Likewise.
123
b98e6871
TS
1242016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
125
126 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
127
6fd8e7c2
L
1282016-04-15 H.J. Lu <hongjiu.lu@intel.com>
129
130 * Makefile.in: Regenerated with automake 1.11.6.
131 * aclocal.m4: Likewise.
132 * doc/Makefile.in: Likewise.
133
4b0c052e
AB
1342016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
137 * bfd-in2.h: Regenerate.
138 * libbfd.h: Regenerate.
139 * elf32-arc.c: Add 'opcode/arc.h' include.
140 (struct arc_relocation_data): Add symbol_name.
141 (arc_special_overflow_checks): New function.
142 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
143 required, add an extra comment.
144 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
145
33cbe6c0
AB
1462016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
149 entries.
150 (elf_arc_relocate_section): Update enum uses.
151 (elf_arc_check_relocs): Likewise.
152 (elf_arc_finish_dynamic_symbol): Likewise.
153
7634c4e6
L
1542016-04-14 H.J. Lu <hongjiu.lu@intel.com>
155
156 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
157 "sh_link".
158
84865015
NC
1592016-04-14 Nick Clifton <nickc@redhat.com>
160
161 PR target/19938
162 * elf-bbfd.h (struct elf_backend_data): New field:
163 elf_strtab_flags.
164 New field: elf_backend_set_special_section_info_and_link
165 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
166 defined.
167 (elf_backend_set_special_section_info_and_link): Define if not
168 already defined.
169 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
170 elf_backend_strtab_flags macros to initialise fields in structure.
171 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
172 being set even if SHF_MERGE is not set.
173 (elf_fake_sections): Likewise.
174 (section_match): New function. Matches two ELF sections based
175 upon fixed characteristics.
176 (find_link): New function. Locates a section in a BFD that
177 matches a section in a different BFD.
178 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
179 fields of reserved sections.
180 (bfd_elf_compute_section_file_positions): Set the flags for the
181 .shstrtab section based upon the elf_strtab_flags field in the
182 elf_backend_data structure.
183 (swap_out_syms): Likewise for the .strtab section.
184 * elflink.c (bfd_elf_final_link): Set the flags for the
185 .strtab section based upon the elf_strtab_flags field in the
186 elf_backend_data structure.
187 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
188 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
189 targets.
190 (elf_backend_set_special_section_info_and_link): Define for
191 Solaris targets.
192 * elf32-sparc.c: Likewise.
193 * elf64-x86-64.c: Likewise.
194
2df3368d
L
1952016-04-11 H.J. Lu <hongjiu.lu@intel.com>
196
197 PR ld/19939
198 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
199 to bfd_boolean.
200 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
201 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
202 applies to read-only section.
203 * elf32-i386.c (elf_i386_link_hash_table): Add
204 readonly_dynrelocs_against_ifunc.
205 (elf_i386_allocate_dynrelocs): Updated.
206 (elf_i386_size_dynamic_sections): Issue an error for read-only
207 segment with dynamic IFUNC relocations only if
208 readonly_dynrelocs_against_ifunc is TRUE.
209 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
210 readonly_dynrelocs_against_ifunc.
211 (elf_x86_64_allocate_dynrelocs): Updated.
212 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
213 segment with dynamic IFUNC relocations only if
214 readonly_dynrelocs_against_ifunc is TRUE.
215 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
216 Updated.
217
15dd01b1
TP
2182016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
219
220 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
221 a fall through from error_ret_free_internal. Free local_syms in
222 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
223
1e5885b7
CZ
2242016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
225
226 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
227 (relocate_plt_for_entry): Likewise.
228
b3aee839
CZ
2292016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
230
231 * elf32-arc.c (elf_arc_check_relocs): Changed
232
094fb063
CZ
2332016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
234
235 * elf32-arc.c (name_for_global_symbol): Changed assert.
236 (get_replace_function): Created.:
237 (struct arc_relocation_data): Changed to signed types.
238 (defines S, L, P, PDATA): Casted to signed type.
239 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
240 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
241 (arc_do_relocation): Changed.
242
94e5c971
CZ
2432016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
244
245 * elf32-arc.c (name_for_global_symbol): Added assert to check for
246 symbol index.
247 (elf_arc_relocate_section): Added and changed asserts, validating
248 the synamic symbol index.
249 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
250 relocation if symbol has dynindx set to -1.
251
1f599d0e
MR
2522016-04-05 Maciej W. Rozycki <macro@imgtec.com>
253
254 * elflink.c (elf_link_add_object_symbols): Always turn hidden
255 and internal symbols which have a dynamic index into local
256 ones.
257
67f101ee
NC
2582016-04-04 Nick Clifton <nickc@redhat.com>
259
260 PR 19872
261 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
262 version number if the version is zero.
263
7b15fa7a
AM
2642016-04-01 Alan Modra <amodra@gmail.com>
265
266 PR 19886
267 * elflink.c (on_needed_list): Recursively check needed status.
268 (elf_link_add_object_symbols): Adjust.
269
024ea11b
SKS
2702016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
271
272 * elf32-avr.c (avr_elf32_load_records_from_section): Free
273 internal_relocs only if they aren't cached.
274
ed3056eb
NC
2752016-03-29 Nick Clifton <nickc@redhat.com>
276
277 PR 17334
278 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
279 assertion on the size of the got section to allow it to be bigger
280 than the number of relocs.
281
e2b4fc91
TS
2822016-03-29 Toni Spets <toni.spets@iki.fi>
283
284 PR 19878
285 * coffcode.h (coff_write_object_contents): Revert accidental
286 2014-11-10 change.
287
a97fbc7e
AM
2882016-03-22 Alan Modra <amodra@gmail.com>
289
290 PR 19850
291 * dwarf2.c (read_attribute_value): Skip info_ptr check for
292 DW_FORM_flag_present.
293
9780e045
NC
2942016-03-22 Nick Clifton <nickc@redhat.com>
295
96254e5c
NC
296 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
297 architecture name for backwards compatibility.
298
7769fa97
NC
299 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
300 unbounded stack use.
301
9780e045
NC
302 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
303 sufficiently recent version of GCC.
304 * configure: Regenerate.
305
6f4c0a42
AM
3062016-03-22 Alan Modra <amodra@gmail.com>
307
308 PR 19851
309 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
310
8699fc3e
AB
3112016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * archures.c (bfd_mach_arc_nps400): Define.
314 * bfd-in2.h: Regenerate.
315 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
316 some existing entries to make space.
317 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
318 (arc_elf_final_write_processing): Likewise.
319
a9522a21
AB
3202016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
321
322 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
323 EF_ARC_CPU_GENERIC.
324 (arc_elf_final_write_processing): Don't bother setting cpu field
325 in e_flags, this will have been set elsewhere.
326
c0334580
AB
3272016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
330 EF_ARC_MACH_MSK.
331
e1fa0163
NC
3322016-03-21 Nick Clifton <nickc@redhat.com>
333
334 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
335 * configure: Regenerate.
336 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
337 alloca with call to xmalloc.
338 * elf32-nds32.c: Likewise.
339 * elf64-hppa.c: Likewise.
340 * elfxx-mips.c: Likewise.
341 * pef.c: Likewise.
342 * pei-x86_64.c: Likewise.
343 * som.c: Likewise.
344 * xsym.c: Likewise.
345
4e0c91e4
L
3462016-03-15 H.J. Lu <hongjiu.lu@intel.com>
347
348 PR ld/19827
349 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
350 locally in PIE.
351 (elf_i386_relocate_section): Likewise.
352 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
353 (elf_x86_64_relocate_section): Likewise.
354
4c10bbaa
L
3552016-03-15 H.J. Lu <hongjiu.lu@intel.com>
356
357 PR ld/19807
358 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
359 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
360 relocation overflow check.
361
fbe48798
L
3622016-03-14 H.J. Lu <hongjiu.lu@intel.com>
363
364 * bfd-in2.h: Regenerated.
365
37b01f6a
DG
3662016-03-11 Dan Gissel <dgisselq@ieee.org>
367
368 PR 19713
369 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
370 uses bytes not octets.
371 * elflink.c (resolve_section): Likewise.
372 Add a bfd parameter.
373 (eval_section): Pass the input_bfd to resolve_section.
374 (bfd_elf_perform_complex_relocation): Convert byte offset to
375 octets before read and writing values.
376 (elf_link_input_bfd): Add byte to octet conversions.
377 (elf_reloc_link_order): Likewise.
378 (elf_fixup_link_order): Likewise.
379 (bfd_elf_final_link): Likewise.
380 * reloc.c (_bfd_final_link_relocate): Likewise.
381 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
382
3ed4ff97
NC
3832016-03-10 Nick Clifton <nickc@redhat.com>
384
385 * config.bfd: Mark the i370 target as obsolete.
386
4b05e0a7
PA
3872016-03-09 Pedro Alves <palves@redhat.com>
388
389 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
390 gcc ABI)" to printable name.
391 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
392 of "v850-rh850" as printable name.
393
26c62da0
LW
3942016-03-09 Leon Winter <winter-gcc@bfw-online.de>
395
396 PR ld/19623
397 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
398 relocations against absolute symbols.
399
03ee8583
AM
4002016-03-09 Alan Modra <amodra@gmail.com>
401
402 PR binutils/19775
403 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
404 length elements in the archive.
405
9c1d7a08
L
4062016-03-08 H.J. Lu <hongjiu.lu@intel.com>
407
408 PR ld/19789
409 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
410 for -E/--dynamic-list only when not relocatable.
411
d1ed1c7d
L
4122016-03-08 H.J. Lu <hongjiu.lu@intel.com>
413
414 PR ld/19784
415 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
416 count for locally defined local IFUNC symbols in shared object.
417 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
418
202ac193
L
4192016-03-08 H.J. Lu <hongjiu.lu@intel.com>
420
421 PR ld/19579
422 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
423 together.
424
72f3b6aa
CZ
4252016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
426 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
429 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
430 (arc_elf_howto_init): Added assert to validate relocations.
431 (get_middle_endian_relocation): Delete.
432 (middle_endian_convert): New function.
433 (ME): Redefine, now does nothing.
434 (IS_ME): New define.
435 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
436 definition to call middle_endian_convert. Add a new local
437 variable and make use of this throughout. Added call to
438 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
439
4fc87424
NC
4402016-03-07 Nick Clifton <nickc@redhat.com>
441
442 PR binutils/19775
443 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
444 length elements in the archive.
445
18f822a0
JW
4462016-03-07 Jiong Wang <jiong.wang@arm.com>
447
448 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
449 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
450
07492f66
L
4512016-03-04 H.J. Lu <hongjiu.lu@intel.com>
452
453 PR ld/19579
454 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
455 executable as definition if the new definition comes from a
456 shared library.
457
70a5df4f
AM
4582016-03-02 Alan Modra <amodra@gmail.com>
459
460 * Makefile.in: Regenerate.
461 * po/SRC-POTFILES.in: Regenerate.
462
841fdfcd
CZ
4632016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
464
465 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
466 relocation addend when sections get merged.
467
7e458899
CZ
4682016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
469
470 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
471 the flag change.
472 (elf_arc_relocate_section): Fixes and conditions to support PIE.
473 Assert for code sections dynamic relocs.
474
c5e3a364
RL
4752016-02-26 Renlin Li <renlin.li@arm.com>
476
477 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
478 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
479
bae420ef
L
4802016-02-26 H.J. Lu <hongjiu.lu@intel.com>
481
482 PR ld/19609
483 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
484 load with locally bound symbols if PIC is false or there is no
485 base register. Optimize branch to 0 if PIC is false.
486 (elf_i386_relocate_section): Don't generate dynamic relocations
487 against undefined weak symbols if PIC is false.
488 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
489 if we can't estimate relocation overflow with --no-relax.
490 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
491 symbols if PIC is false. Optimize branch to 0 if PIC is false.
492 (elf_x86_64_relocate_section): Don't generate dynamic relocations
493 against undefined weak symbols if PIC is false.
494
11e5f1ec
L
4952016-02-26 H.J. Lu <hongjiu.lu@intel.com>
496
497 PR ld/19645
498 * bfd.c (bfd): Change flags to 20 bits.
499 (BFD_CONVERT_ELF_COMMON): New.
500 (BFD_USE_ELF_STT_COMMON): Likewise.
501 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
502 BFD_USE_ELF_STT_COMMON.
503 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
504 * configure.ac: Remove --enable-elf-stt-common.
505 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
506 common symbol depending on BFD_CONVERT_ELF_COMMON and
507 BFD_USE_ELF_STT_COMMON.
508 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
509 STT_COMMON.
510 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
511 STT_COMMON.
512 (elf_link_convert_common_type): New function.
513 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
514 common symbol depending on BFD_CONVERT_ELF_COMMON and
515 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
516 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
517 and BFD_USE_ELF_STT_COMMON to object_flags.
518 (TARGET_LITTLE_SYM): Likewise.
519 * syms.c (BSF_KEEP_G): Renamed to ...
520 (BSF_ELF_COMMON): This.
521 * bfd-in2.h: Regenerated.
522 * config.in: Likewise.
523 * configure: Likewise.
524
aec6b87e
L
5252016-02-26 H.J. Lu <hongjiu.lu@intel.com>
526
527 PR ld/19636
528 PR ld/19704
529 PR ld/19719
530 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
531 (elf_i386_link_hash_entry): Add has_got_reloc and
532 has_non_got_reloc.
533 (elf_i386_link_hash_table): Add interp.
534 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
535 has_non_got_reloc.
536 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
537 has_non_got_reloc.
538 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
539 (elf_i386_fixup_symbol): New function.
540 (elf_i386_pie_finish_undefweak_symbol): Likewise.
541 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
542 relocations and discard relocations against resolved undefined
543 weak symbols in executable. Don't make resolved undefined weak
544 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
545 relocation against undefined weak symbols in PIE.
546 (elf_i386_size_dynamic_sections): Set interp to .interp section.
547 (elf_i386_relocate_section): Don't generate dynamic relocations
548 against resolved undefined weak symbols in PIE, except for
549 R_386_PC32.
550 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
551 dynamic PLT/GOT relocations for resolved undefined weak symbols.
552 Don't generate dynamic relocation against resolved undefined weak
553 symbol in executable.
554 (elf_i386_finish_dynamic_sections): Call
555 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
556 (elf_backend_fixup_symbol): New.
557 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
558 (elf_x86_64_link_hash_entry): Add has_got_reloc and
559 has_non_got_reloc.
560 (elf_x86_64_link_hash_table): Add interp.
561 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
562 has_non_got_reloc.
563 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
564 has_non_got_reloc.
565 (elf_x86_64_check_relocs): Set has_got_reloc and
566 has_non_got_reloc.
567 (elf_x86_64_fixup_symbol): New function.
568 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
569 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
570 relocations and discard relocations against resolved undefined
571 weak symbols in executable. Don't make resolved undefined weak
572 symbols in executable dynamic.
573 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
574 (elf_x86_64_relocate_section): Check relocation overflow for
575 dynamic relocations against unresolved weak undefined symbols.
576 Don't generate dynamic relocations against resolved weak
577 undefined symbols in PIE.
578 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
579 dynamic PLT/GOT relocations for resolved undefined weak symbols.
580 Don't generate dynamic relocation against resolved undefined weak
581 symbol in executable.
582 (elf_x86_64_finish_dynamic_sections): Call
583 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
584 (elf_backend_fixup_symbol): New.
585
b32547cd
AM
5862016-02-26 Alan Modra <amodra@gmail.com>
587
588 * elf64-ppc.c (create_linkage_sections): Create sfpr when
589 save_restore_funcs, rest of sections when not relocatable.
590 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
591 (sfpr_define): Define all symbols on emitted code.
592 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
593 when relocatable. Move sfpr_define loop earlier.
594
ef77d6af
L
5952016-02-24 H.J. Lu <hongjiu.lu@intel.com>
596
597 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
598 (elf_x86_64_relocate_section): Use it. Replace
599 x86_64_elf_howto_table[r_type] with howto.
600
0f550b3d
L
6012016-02-24 H.J. Lu <hongjiu.lu@intel.com>
602
603 PR ld/19698
604 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
605 symbol version is unknown.
606
13f42277
L
6072016-02-24 H.J. Lu <hongjiu.lu@intel.com>
608
609 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
610 to (bfd_vma) -1 when setting needs_plt to 0.
611 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
612
6b3b0ab8
L
6132016-02-23 H.J. Lu <hongjiu.lu@intel.com>
614
615 * elflink.c (bfd_elf_record_link_assignment): Check for shared
616 library, instead of PIC, and don't check PDE when making linker
617 assigned symbol dynamic.
618
17733f5b
FS
6192016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
620
621 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
622 ABIVERSION for non-executable stack.
623
47993b4a
RF
6242016-02-23 Rich Felker <bugdal@aerifal.cx>
625
626 PR target/19516
627 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
628 Always produce a RELATIVE reloc for a local symbol.
629
2d8dcb81
HPN
6302016-02-23 Hans-Peter Nilsson <hp@axis.com>
631
632 Fix test-case ld-elf/pr19617b
633 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
634 discard unused non-function symbols when --dynamic-list-data.
635
1a6e6083
L
6362016-02-22 H.J. Lu <hongjiu.lu@intel.com>
637
638 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
639 dynsym section, even if it is empty, with dynamic sections.
640
75c1920b
L
6412016-02-22 H.J. Lu <hongjiu.lu@intel.com>
642
643 * syms.c: Remove BSF_COMMON from comments.
644 * bfd-in2.h: Regenerated.
645
9a228467
JW
6462016-02-22 Jiong Wang <jiong.wang@arm.com>
647
648 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
649 for destination. Remove useless function parameters.
650 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
651
73768414
NC
6522016-02-19 Nick Clifton <nickc@redhat.com>
653
e517df3d
NC
654 PR ld/19629
655 * aoutx.h (aout_link_add_symbols): Check for out of range string
656 table offsets.
657
73768414
NC
658 PR ld/19628
659 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
660 processing if we encounter a reloc without an associated symbol.
661
bf89386a
L
6622016-02-18 H.J. Lu <hongjiu.lu@intel.com>
663
664 PR ld/19617
665 * elflink.c (elf_link_add_object_symbols): Always create dynamic
666 sections for -E/--dynamic-list.
667
8f79b794
L
6682016-02-17 H.J. Lu <hongjiu.lu@intel.com>
669
670 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
671 to bfd_true.
672
64bfc258
JM
6732016-02-16 Joseph Myers <joseph@codesourcery.com>
674
675 * plugin.c (plugin_vec): Set match priority to 255.
676 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
677 matching against the plugin vector, take priority from there not
678 from TEMP.
679
9fb71ee4
NC
6802016-02-15 Nick Clifton <nickc@redhat.com>
681
682 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
683 for length and type fields. Use a signed value for the
684 suffix_length field.
685
32875eb1
L
6862016-02-10 H.J. Lu <hongjiu.lu@intel.com>
687
688 PR ld/19601
689 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
690 significant bit in GOT offset for R_386_GOT32X.
691
83da6e74
NC
6922016-02-10 Nick Clifton <nickc@redhat.com>
693
694 PR 19405
695 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
696 immediate values.
697 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
698 number of messages about FDE encoding preventing .eh_frame_hdr
699 generation.
700
027e9c75
NC
7012016-02-09 Nick Clifton <nickc@redhat.com>
702
609332f1
NC
703 * oasys.c (oasys_archive_p): Fix indentation.
704 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
705 constant for left shifting.
706
027e9c75
NC
707 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
708 helpful warning message to explain why certain AArch64 relocs
709 might overflow.
710
6f57d046
SM
7112016-02-05 Simon Marchi <simon.marchi@ericsson.com>
712
713 * pe-mips.c (coff_mips_reloc): Fix formatting.
714
bdbca4e6
CM
7152016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
716
717 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
718 to bfd_mach_arc_arc600.
719
4f038ee5
AM
7202016-02-04 Alan Modra <amodra@gmail.com>
721
722 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
723 for big-endian.
724
4a539596
L
7252016-02-02 H.J. Lu <hongjiu.lu@intel.com>
726
727 PR ld/19542
728 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
fb06f1c0 729 distances in the compressed_size field of the output section.
4a539596 730
85fabe71
AM
7312016-02-02 Alan Modra <amodra@gmail.com>
732
733 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
734 ELFv2 entry optimization.
735
14f2c699
L
7362016-02-02 H.J. Lu <hongjiu.lu@intel.com>
737
738 PR binutils/19547
739 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
740 no relocations in relocatable files.
741
aef28989
L
7422016-02-01 H.J. Lu <hongjiu.lu@intel.com>
743
744 PR ld/19553
745 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
746 if a symbol from a library loaded via DT_NEEDED doesn't match
747 the symbol referenced by regular object.
748
655ed9ea
NS
7492016-02-01 Nathaniel Smith <njs@pobox.com>
750
751 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
752 CODE and DATA.
753
ec1f73bb
AM
7542016-02-01 Alan Modra <amodra@gmail.com>
755
756 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
757 an out of range reloc_index.
758 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
759
b6471e6e
KR
7602016-02-01 Kamil Rytarowski <n54@gmx.com>
761
762 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
763 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
764 * Makefile.in: Regenerated.
765
0bc7245a
JK
7662016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
767
768 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
769
6d4b2867
JDA
7702016-01-31 John David Anglin <danglin@gcc.gnu.org>
771
772 PR ld/19526
773 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
774 files.
775 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
776
d9e3b590
L
7772016-01-30 H.J. Lu <hongjiu.lu@intel.com>
778
779 PR ld/19539
780 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
781 against STT_GNU_IFUNC symbol only with dynamic symbols.
782 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
783
bf150a0b
L
7842016-01-28 H.J. Lu <hongjiu.lu@intel.com>
785
786 PR binutils/19523
787 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
788 decompress debug sections.
789
840855c5
MR
7902016-01-25 Maciej W. Rozycki <macro@imgtec.com>
791
792 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
793 `dynindx'.
794
cf466c2a
NC
7952016-01-25 Nick Clifton <nickc@redhat.com>
796
797 PR target/19435
798 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
799 dsym filename buffer.
800
eb6b0cf4
MR
8012016-01-24 Maciej W. Rozycki <macro@imgtec.com>
802
803 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
804
e67f83e5
MR
8052016-01-24 Maciej W. Rozycki <macro@imgtec.com>
806
807 * elfxx-mips.c (BZ16_REG): Correct calculation.
808
23a42089
NC
8092016-01-21 Nick Clifton <nickc@redhat.com>
810
811 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
812 changing the type of _loc to be bfd_byte *.
813 (elf_arc_finish_dynamic_symbol): Likewise.
814
aebf9be7
NC
8152016-01-21 Nick Clifton <nickc@redhat.com>
816
817 PR ld/19455
818 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
819 class of the linker stub bfd.
820 (elf32_arm_check_relocs): Skip check for pic format after
821 processing a vxWorks R_ARM_ABS12 reloc.
822 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
823 reporting a class mismatch.
824
2f340668
JW
8252016-01-21 Jiong Wang <jiong.wang@arm.com>
826
827 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
828 veneer for sym_sec != input_sec.
829 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
830 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
831 calculation destination.
832
aeb70569
AM
8332016-01-21 Alan Modra <amodra@gmail.com>
834
835 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
836 (swap_linux_prpsinfo64_out): New function.
837 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
838 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
839 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
840 (elfcore_write_linux_prpsinfo64): Likewise.
841 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
842 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
843 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
844
de64ce13
AM
8452016-01-21 Alan Modra <amodra@gmail.com>
846
847 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
848 * elf.c: Adjust #include.
849 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
850 * Makefile.am (SOURCE_HFILES): Update.
851 * Makefile.in: Regenerate.
852 * po/SRC-PORFILES.in: Regenerate.
853
c603b11b
AM
8542016-01-21 Alan Modra <amodra@gmail.com>
855
856 * configure.ac: Move corefile selection later in file. Move
857 tdefaults code immediately after other target vector code.
858 * configure: Regenerate.
859
91f68a68
MG
8602016-01-20 Mickael Guene <mickael.guene@st.com>
861
862 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
863 section using '.text.noread' pattern.
864
5b2c414d
JB
8652016-01-19 John Baldwin <jhb@FreeBSD.org>
866
867 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
868
34e967a5
MC
8692016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
870 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
871
872 * arc-plt.def: New file.
873 * arc-plt.h: Likewise.
874 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
875 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
876 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
877 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
878 (name_for_global_symbol): Added.
879 (ADD_RELA): Helper to create dynamic relocs.
880 (new_got_entry_to_list): Create a new got entry in linked list.
881 (symbol_has_entry_of_type): Search for specific type of entry in
882 list.
883 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
884 (is_reloc_for_TLS, arc_elf_set_private_flags)
885 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
886 (arc_elf_merge_private_bfd_data): New functions.
887 (debug_arc_reloc): Cleaned debug info printing.
888 (PDATA reloc): Changed not to perform address alignment.
889 (reverse_me): Added. Fix for ARC_32 relocs.
890 (arc_do_relocation): Return bfd_reloc_of when no relocation should
891 occur.
892 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
893 Changed function to access an array of list of GOT entries instead
894 of just an array of offsets.
895 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
896 (elf_arc_check_relocs): Likewise.
897 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
898 (elf_arc_finish_dynamic_sections): Likewise
899 (arc_create_dynamic_sections): Modified conditions to create
900 dynamic sections.
901 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
902 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
903 (relocate_plt_for_entry): Changed to support new way to define PLT
904 related code.
905 (add_symbol_to_plt): Likewise.
906 (arc_elf_link_hash_table_create): New function.
907
9ae678af
NC
9082016-01-18 Nick Clifton <nickc@redhat.com>
909
910 PR ld/19440
911 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
912 section number into internal section number.
913 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
914 * coffswap.h (coff_swap_sym_in): Likewise.
915 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
916 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
917 section number field is big enough to hold the external value.
918
5c14705f
AM
9192016-01-17 Alan Modra <amodra@gmail.com>
920
921 * configure: Regenerate.
922
ac06903d
YU
9232016-01-12 Yury Usishchev <y.usishchev@samsung.com>
924
925 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
926 when address in first unwind entry does not match start of
927 section.
928
109575d7
JW
9292016-01-08 Richard Sandiford <richard.sandiford@arm.com>
930 Jiong Wang <jiong.wang@arm.com>
931
932 PR ld/19368
933 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
934 reloc_class_ifunc.
935
b05a65d0
AB
9362016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
939 place 'R_' before the reloc name returned.
940 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
941 the relocation string.
942
a3dc0a7f
MR
9432016-01-04 Maciej W. Rozycki <macro@imgtec.com>
944
945 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
946 factored out from...
947 (_bfd_mips_elf_merge_private_bfd_data): ... here.
948
d537eeb5
MR
9492016-01-04 Maciej W. Rozycki <macro@imgtec.com>
950
951 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
952 attribute check after ELF file header flag check.
953
43d223b5
MR
9542016-01-04 Maciej W. Rozycki <macro@imgtec.com>
955
956 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
957 return status from `_bfd_elf_merge_object_attributes'.
958
b2e9744f
MR
9592016-01-04 Maciej W. Rozycki <macro@imgtec.com>
960
961 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
962 factored out from...
963 (_bfd_mips_elf_merge_private_bfd_data): ... here.
964
28d45e28
MR
9652016-01-04 Maciej W. Rozycki <macro@imgtec.com>
966
967 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
968 handling of input MIPS ABI flags together.
969
23ba6f18
MR
9702016-01-04 Maciej W. Rozycki <macro@imgtec.com>
971
972 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
973 attribute checks for null input.
974
cf8502c1
MR
9752016-01-04 Maciej W. Rozycki <macro@imgtec.com>
976
977 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
978 pointers to target data.
979
dcb1c796
MR
9802016-01-04 Maciej W. Rozycki <macro@imgtec.com>
981
982 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
983 an FP ABI warning.
984
6f2750fe
AM
9852016-01-01 Alan Modra <amodra@gmail.com>
986
987 Update year range in copyright notice of all files.
988
3499769a
AM
989For older changes see ChangeLog-2015 and doc/ChangeLog-0415
990\f
991Copyright (C) 2016 Free Software Foundation, Inc.
992
993Copying and distribution of this file, with or without modification,
994are permitted in any medium without royalty provided the copyright
995notice and this notice are preserved.
996
997Local Variables:
998mode: change-log
999left-margin: 8
1000fill-column: 74
1001version-control: never
1002End:
This page took 0.081676 seconds and 4 git commands to generate.