symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
466ee2af
L
12016-04-20 H.J. Lu <hongjiu.lu@intel.com>
2
3 * elf32-i386.c (elf_i386_check_relocs): Call
4 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
5 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
6
d9689752
L
72016-04-20 H.J. Lu <hongjiu.lu@intel.com>
8
9 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
10 * elflink.c (_bfd_elf_link_check_relocs): New function.
11 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
12 if check_relocs_after_open_input is FALSE.
13
e6c7cdec
TS
142016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
15
16 * cache.c: Update old style function definitions.
17 * elf32-m68k.c: Likewise.
18 * elf64-mmix.c: Likewise.
19 * stab-syms.c: Likewise.
20
b98e6871
TS
212016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
22
23 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
24
6fd8e7c2
L
252016-04-15 H.J. Lu <hongjiu.lu@intel.com>
26
27 * Makefile.in: Regenerated with automake 1.11.6.
28 * aclocal.m4: Likewise.
29 * doc/Makefile.in: Likewise.
30
4b0c052e
AB
312016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
32
33 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
34 * bfd-in2.h: Regenerate.
35 * libbfd.h: Regenerate.
36 * elf32-arc.c: Add 'opcode/arc.h' include.
37 (struct arc_relocation_data): Add symbol_name.
38 (arc_special_overflow_checks): New function.
39 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
40 required, add an extra comment.
41 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
42
33cbe6c0
AB
432016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
46 entries.
47 (elf_arc_relocate_section): Update enum uses.
48 (elf_arc_check_relocs): Likewise.
49 (elf_arc_finish_dynamic_symbol): Likewise.
50
7634c4e6
L
512016-04-14 H.J. Lu <hongjiu.lu@intel.com>
52
53 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
54 "sh_link".
55
84865015
NC
562016-04-14 Nick Clifton <nickc@redhat.com>
57
58 PR target/19938
59 * elf-bbfd.h (struct elf_backend_data): New field:
60 elf_strtab_flags.
61 New field: elf_backend_set_special_section_info_and_link
62 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
63 defined.
64 (elf_backend_set_special_section_info_and_link): Define if not
65 already defined.
66 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
67 elf_backend_strtab_flags macros to initialise fields in structure.
68 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
69 being set even if SHF_MERGE is not set.
70 (elf_fake_sections): Likewise.
71 (section_match): New function. Matches two ELF sections based
72 upon fixed characteristics.
73 (find_link): New function. Locates a section in a BFD that
74 matches a section in a different BFD.
75 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
76 fields of reserved sections.
77 (bfd_elf_compute_section_file_positions): Set the flags for the
78 .shstrtab section based upon the elf_strtab_flags field in the
79 elf_backend_data structure.
80 (swap_out_syms): Likewise for the .strtab section.
81 * elflink.c (bfd_elf_final_link): Set the flags for the
82 .strtab section based upon the elf_strtab_flags field in the
83 elf_backend_data structure.
84 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
85 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
86 targets.
87 (elf_backend_set_special_section_info_and_link): Define for
88 Solaris targets.
89 * elf32-sparc.c: Likewise.
90 * elf64-x86-64.c: Likewise.
91
2df3368d
L
922016-04-11 H.J. Lu <hongjiu.lu@intel.com>
93
94 PR ld/19939
95 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
96 to bfd_boolean.
97 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
98 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
99 applies to read-only section.
100 * elf32-i386.c (elf_i386_link_hash_table): Add
101 readonly_dynrelocs_against_ifunc.
102 (elf_i386_allocate_dynrelocs): Updated.
103 (elf_i386_size_dynamic_sections): Issue an error for read-only
104 segment with dynamic IFUNC relocations only if
105 readonly_dynrelocs_against_ifunc is TRUE.
106 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
107 readonly_dynrelocs_against_ifunc.
108 (elf_x86_64_allocate_dynrelocs): Updated.
109 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
110 segment with dynamic IFUNC relocations only if
111 readonly_dynrelocs_against_ifunc is TRUE.
112 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
113 Updated.
114
15dd01b1
TP
1152016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
116
117 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
118 a fall through from error_ret_free_internal. Free local_syms in
119 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
120
1e5885b7
CZ
1212016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
122
123 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
124 (relocate_plt_for_entry): Likewise.
125
b3aee839
CZ
1262016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
127
128 * elf32-arc.c (elf_arc_check_relocs): Changed
129
094fb063
CZ
1302016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
131
132 * elf32-arc.c (name_for_global_symbol): Changed assert.
133 (get_replace_function): Created.:
134 (struct arc_relocation_data): Changed to signed types.
135 (defines S, L, P, PDATA): Casted to signed type.
136 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
137 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
138 (arc_do_relocation): Changed.
139
94e5c971
CZ
1402016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
141
142 * elf32-arc.c (name_for_global_symbol): Added assert to check for
143 symbol index.
144 (elf_arc_relocate_section): Added and changed asserts, validating
145 the synamic symbol index.
146 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
147 relocation if symbol has dynindx set to -1.
148
1f599d0e
MR
1492016-04-05 Maciej W. Rozycki <macro@imgtec.com>
150
151 * elflink.c (elf_link_add_object_symbols): Always turn hidden
152 and internal symbols which have a dynamic index into local
153 ones.
154
67f101ee
NC
1552016-04-04 Nick Clifton <nickc@redhat.com>
156
157 PR 19872
158 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
159 version number if the version is zero.
160
7b15fa7a
AM
1612016-04-01 Alan Modra <amodra@gmail.com>
162
163 PR 19886
164 * elflink.c (on_needed_list): Recursively check needed status.
165 (elf_link_add_object_symbols): Adjust.
166
024ea11b
SKS
1672016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
168
169 * elf32-avr.c (avr_elf32_load_records_from_section): Free
170 internal_relocs only if they aren't cached.
171
ed3056eb
NC
1722016-03-29 Nick Clifton <nickc@redhat.com>
173
174 PR 17334
175 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
176 assertion on the size of the got section to allow it to be bigger
177 than the number of relocs.
178
e2b4fc91
TS
1792016-03-29 Toni Spets <toni.spets@iki.fi>
180
181 PR 19878
182 * coffcode.h (coff_write_object_contents): Revert accidental
183 2014-11-10 change.
184
a97fbc7e
AM
1852016-03-22 Alan Modra <amodra@gmail.com>
186
187 PR 19850
188 * dwarf2.c (read_attribute_value): Skip info_ptr check for
189 DW_FORM_flag_present.
190
9780e045
NC
1912016-03-22 Nick Clifton <nickc@redhat.com>
192
96254e5c
NC
193 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
194 architecture name for backwards compatibility.
195
7769fa97
NC
196 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
197 unbounded stack use.
198
9780e045
NC
199 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
200 sufficiently recent version of GCC.
201 * configure: Regenerate.
202
6f4c0a42
AM
2032016-03-22 Alan Modra <amodra@gmail.com>
204
205 PR 19851
206 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
207
8699fc3e
AB
2082016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
209
210 * archures.c (bfd_mach_arc_nps400): Define.
211 * bfd-in2.h: Regenerate.
212 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
213 some existing entries to make space.
214 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
215 (arc_elf_final_write_processing): Likewise.
216
a9522a21
AB
2172016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
220 EF_ARC_CPU_GENERIC.
221 (arc_elf_final_write_processing): Don't bother setting cpu field
222 in e_flags, this will have been set elsewhere.
223
c0334580
AB
2242016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
225
226 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
227 EF_ARC_MACH_MSK.
228
e1fa0163
NC
2292016-03-21 Nick Clifton <nickc@redhat.com>
230
231 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
232 * configure: Regenerate.
233 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
234 alloca with call to xmalloc.
235 * elf32-nds32.c: Likewise.
236 * elf64-hppa.c: Likewise.
237 * elfxx-mips.c: Likewise.
238 * pef.c: Likewise.
239 * pei-x86_64.c: Likewise.
240 * som.c: Likewise.
241 * xsym.c: Likewise.
242
4e0c91e4
L
2432016-03-15 H.J. Lu <hongjiu.lu@intel.com>
244
245 PR ld/19827
246 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
247 locally in PIE.
248 (elf_i386_relocate_section): Likewise.
249 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
250 (elf_x86_64_relocate_section): Likewise.
251
4c10bbaa
L
2522016-03-15 H.J. Lu <hongjiu.lu@intel.com>
253
254 PR ld/19807
255 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
256 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
257 relocation overflow check.
258
fbe48798
L
2592016-03-14 H.J. Lu <hongjiu.lu@intel.com>
260
261 * bfd-in2.h: Regenerated.
262
37b01f6a
DG
2632016-03-11 Dan Gissel <dgisselq@ieee.org>
264
265 PR 19713
266 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
267 uses bytes not octets.
268 * elflink.c (resolve_section): Likewise.
269 Add a bfd parameter.
270 (eval_section): Pass the input_bfd to resolve_section.
271 (bfd_elf_perform_complex_relocation): Convert byte offset to
272 octets before read and writing values.
273 (elf_link_input_bfd): Add byte to octet conversions.
274 (elf_reloc_link_order): Likewise.
275 (elf_fixup_link_order): Likewise.
276 (bfd_elf_final_link): Likewise.
277 * reloc.c (_bfd_final_link_relocate): Likewise.
278 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
279
3ed4ff97
NC
2802016-03-10 Nick Clifton <nickc@redhat.com>
281
282 * config.bfd: Mark the i370 target as obsolete.
283
4b05e0a7
PA
2842016-03-09 Pedro Alves <palves@redhat.com>
285
286 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
287 gcc ABI)" to printable name.
288 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
289 of "v850-rh850" as printable name.
290
26c62da0
LW
2912016-03-09 Leon Winter <winter-gcc@bfw-online.de>
292
293 PR ld/19623
294 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
295 relocations against absolute symbols.
296
03ee8583
AM
2972016-03-09 Alan Modra <amodra@gmail.com>
298
299 PR binutils/19775
300 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
301 length elements in the archive.
302
9c1d7a08
L
3032016-03-08 H.J. Lu <hongjiu.lu@intel.com>
304
305 PR ld/19789
306 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
307 for -E/--dynamic-list only when not relocatable.
308
d1ed1c7d
L
3092016-03-08 H.J. Lu <hongjiu.lu@intel.com>
310
311 PR ld/19784
312 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
313 count for locally defined local IFUNC symbols in shared object.
314 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
315
202ac193
L
3162016-03-08 H.J. Lu <hongjiu.lu@intel.com>
317
318 PR ld/19579
319 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
320 together.
321
72f3b6aa
CZ
3222016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
323 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
326 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
327 (arc_elf_howto_init): Added assert to validate relocations.
328 (get_middle_endian_relocation): Delete.
329 (middle_endian_convert): New function.
330 (ME): Redefine, now does nothing.
331 (IS_ME): New define.
332 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
333 definition to call middle_endian_convert. Add a new local
334 variable and make use of this throughout. Added call to
335 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
336
4fc87424
NC
3372016-03-07 Nick Clifton <nickc@redhat.com>
338
339 PR binutils/19775
340 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
341 length elements in the archive.
342
18f822a0
JW
3432016-03-07 Jiong Wang <jiong.wang@arm.com>
344
345 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
346 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
347
07492f66
L
3482016-03-04 H.J. Lu <hongjiu.lu@intel.com>
349
350 PR ld/19579
351 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
352 executable as definition if the new definition comes from a
353 shared library.
354
70a5df4f
AM
3552016-03-02 Alan Modra <amodra@gmail.com>
356
357 * Makefile.in: Regenerate.
358 * po/SRC-POTFILES.in: Regenerate.
359
841fdfcd
CZ
3602016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
361
362 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
363 relocation addend when sections get merged.
364
7e458899
CZ
3652016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
366
367 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
368 the flag change.
369 (elf_arc_relocate_section): Fixes and conditions to support PIE.
370 Assert for code sections dynamic relocs.
371
c5e3a364
RL
3722016-02-26 Renlin Li <renlin.li@arm.com>
373
374 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
375 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
376
bae420ef
L
3772016-02-26 H.J. Lu <hongjiu.lu@intel.com>
378
379 PR ld/19609
380 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
381 load with locally bound symbols if PIC is false or there is no
382 base register. Optimize branch to 0 if PIC is false.
383 (elf_i386_relocate_section): Don't generate dynamic relocations
384 against undefined weak symbols if PIC is false.
385 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
386 if we can't estimate relocation overflow with --no-relax.
387 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
388 symbols if PIC is false. Optimize branch to 0 if PIC is false.
389 (elf_x86_64_relocate_section): Don't generate dynamic relocations
390 against undefined weak symbols if PIC is false.
391
11e5f1ec
L
3922016-02-26 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR ld/19645
395 * bfd.c (bfd): Change flags to 20 bits.
396 (BFD_CONVERT_ELF_COMMON): New.
397 (BFD_USE_ELF_STT_COMMON): Likewise.
398 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
399 BFD_USE_ELF_STT_COMMON.
400 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
401 * configure.ac: Remove --enable-elf-stt-common.
402 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
403 common symbol depending on BFD_CONVERT_ELF_COMMON and
404 BFD_USE_ELF_STT_COMMON.
405 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
406 STT_COMMON.
407 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
408 STT_COMMON.
409 (elf_link_convert_common_type): New function.
410 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
411 common symbol depending on BFD_CONVERT_ELF_COMMON and
412 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
413 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
414 and BFD_USE_ELF_STT_COMMON to object_flags.
415 (TARGET_LITTLE_SYM): Likewise.
416 * syms.c (BSF_KEEP_G): Renamed to ...
417 (BSF_ELF_COMMON): This.
418 * bfd-in2.h: Regenerated.
419 * config.in: Likewise.
420 * configure: Likewise.
421
aec6b87e
L
4222016-02-26 H.J. Lu <hongjiu.lu@intel.com>
423
424 PR ld/19636
425 PR ld/19704
426 PR ld/19719
427 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
428 (elf_i386_link_hash_entry): Add has_got_reloc and
429 has_non_got_reloc.
430 (elf_i386_link_hash_table): Add interp.
431 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
432 has_non_got_reloc.
433 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
434 has_non_got_reloc.
435 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
436 (elf_i386_fixup_symbol): New function.
437 (elf_i386_pie_finish_undefweak_symbol): Likewise.
438 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
439 relocations and discard relocations against resolved undefined
440 weak symbols in executable. Don't make resolved undefined weak
441 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
442 relocation against undefined weak symbols in PIE.
443 (elf_i386_size_dynamic_sections): Set interp to .interp section.
444 (elf_i386_relocate_section): Don't generate dynamic relocations
445 against resolved undefined weak symbols in PIE, except for
446 R_386_PC32.
447 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
448 dynamic PLT/GOT relocations for resolved undefined weak symbols.
449 Don't generate dynamic relocation against resolved undefined weak
450 symbol in executable.
451 (elf_i386_finish_dynamic_sections): Call
452 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
453 (elf_backend_fixup_symbol): New.
454 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
455 (elf_x86_64_link_hash_entry): Add has_got_reloc and
456 has_non_got_reloc.
457 (elf_x86_64_link_hash_table): Add interp.
458 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
459 has_non_got_reloc.
460 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
461 has_non_got_reloc.
462 (elf_x86_64_check_relocs): Set has_got_reloc and
463 has_non_got_reloc.
464 (elf_x86_64_fixup_symbol): New function.
465 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
466 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
467 relocations and discard relocations against resolved undefined
468 weak symbols in executable. Don't make resolved undefined weak
469 symbols in executable dynamic.
470 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
471 (elf_x86_64_relocate_section): Check relocation overflow for
472 dynamic relocations against unresolved weak undefined symbols.
473 Don't generate dynamic relocations against resolved weak
474 undefined symbols in PIE.
475 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
476 dynamic PLT/GOT relocations for resolved undefined weak symbols.
477 Don't generate dynamic relocation against resolved undefined weak
478 symbol in executable.
479 (elf_x86_64_finish_dynamic_sections): Call
480 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
481 (elf_backend_fixup_symbol): New.
482
b32547cd
AM
4832016-02-26 Alan Modra <amodra@gmail.com>
484
485 * elf64-ppc.c (create_linkage_sections): Create sfpr when
486 save_restore_funcs, rest of sections when not relocatable.
487 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
488 (sfpr_define): Define all symbols on emitted code.
489 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
490 when relocatable. Move sfpr_define loop earlier.
491
ef77d6af
L
4922016-02-24 H.J. Lu <hongjiu.lu@intel.com>
493
494 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
495 (elf_x86_64_relocate_section): Use it. Replace
496 x86_64_elf_howto_table[r_type] with howto.
497
0f550b3d
L
4982016-02-24 H.J. Lu <hongjiu.lu@intel.com>
499
500 PR ld/19698
501 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
502 symbol version is unknown.
503
13f42277
L
5042016-02-24 H.J. Lu <hongjiu.lu@intel.com>
505
506 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
507 to (bfd_vma) -1 when setting needs_plt to 0.
508 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
509
6b3b0ab8
L
5102016-02-23 H.J. Lu <hongjiu.lu@intel.com>
511
512 * elflink.c (bfd_elf_record_link_assignment): Check for shared
513 library, instead of PIC, and don't check PDE when making linker
514 assigned symbol dynamic.
515
17733f5b
FS
5162016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
517
518 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
519 ABIVERSION for non-executable stack.
520
47993b4a
RF
5212016-02-23 Rich Felker <bugdal@aerifal.cx>
522
523 PR target/19516
524 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
525 Always produce a RELATIVE reloc for a local symbol.
526
2d8dcb81
HPN
5272016-02-23 Hans-Peter Nilsson <hp@axis.com>
528
529 Fix test-case ld-elf/pr19617b
530 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
531 discard unused non-function symbols when --dynamic-list-data.
532
1a6e6083
L
5332016-02-22 H.J. Lu <hongjiu.lu@intel.com>
534
535 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
536 dynsym section, even if it is empty, with dynamic sections.
537
75c1920b
L
5382016-02-22 H.J. Lu <hongjiu.lu@intel.com>
539
540 * syms.c: Remove BSF_COMMON from comments.
541 * bfd-in2.h: Regenerated.
542
9a228467
JW
5432016-02-22 Jiong Wang <jiong.wang@arm.com>
544
545 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
546 for destination. Remove useless function parameters.
547 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
548
73768414
NC
5492016-02-19 Nick Clifton <nickc@redhat.com>
550
e517df3d
NC
551 PR ld/19629
552 * aoutx.h (aout_link_add_symbols): Check for out of range string
553 table offsets.
554
73768414
NC
555 PR ld/19628
556 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
557 processing if we encounter a reloc without an associated symbol.
558
bf89386a
L
5592016-02-18 H.J. Lu <hongjiu.lu@intel.com>
560
561 PR ld/19617
562 * elflink.c (elf_link_add_object_symbols): Always create dynamic
563 sections for -E/--dynamic-list.
564
8f79b794
L
5652016-02-17 H.J. Lu <hongjiu.lu@intel.com>
566
567 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
568 to bfd_true.
569
64bfc258
JM
5702016-02-16 Joseph Myers <joseph@codesourcery.com>
571
572 * plugin.c (plugin_vec): Set match priority to 255.
573 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
574 matching against the plugin vector, take priority from there not
575 from TEMP.
576
9fb71ee4
NC
5772016-02-15 Nick Clifton <nickc@redhat.com>
578
579 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
580 for length and type fields. Use a signed value for the
581 suffix_length field.
582
32875eb1
L
5832016-02-10 H.J. Lu <hongjiu.lu@intel.com>
584
585 PR ld/19601
586 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
587 significant bit in GOT offset for R_386_GOT32X.
588
83da6e74
NC
5892016-02-10 Nick Clifton <nickc@redhat.com>
590
591 PR 19405
592 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
593 immediate values.
594 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
595 number of messages about FDE encoding preventing .eh_frame_hdr
596 generation.
597
027e9c75
NC
5982016-02-09 Nick Clifton <nickc@redhat.com>
599
609332f1
NC
600 * oasys.c (oasys_archive_p): Fix indentation.
601 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
602 constant for left shifting.
603
027e9c75
NC
604 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
605 helpful warning message to explain why certain AArch64 relocs
606 might overflow.
607
6f57d046
SM
6082016-02-05 Simon Marchi <simon.marchi@ericsson.com>
609
610 * pe-mips.c (coff_mips_reloc): Fix formatting.
611
bdbca4e6
CM
6122016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
613
614 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
615 to bfd_mach_arc_arc600.
616
4f038ee5
AM
6172016-02-04 Alan Modra <amodra@gmail.com>
618
619 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
620 for big-endian.
621
4a539596
L
6222016-02-02 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR ld/19542
625 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
fb06f1c0 626 distances in the compressed_size field of the output section.
4a539596 627
85fabe71
AM
6282016-02-02 Alan Modra <amodra@gmail.com>
629
630 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
631 ELFv2 entry optimization.
632
14f2c699
L
6332016-02-02 H.J. Lu <hongjiu.lu@intel.com>
634
635 PR binutils/19547
636 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
637 no relocations in relocatable files.
638
aef28989
L
6392016-02-01 H.J. Lu <hongjiu.lu@intel.com>
640
641 PR ld/19553
642 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
643 if a symbol from a library loaded via DT_NEEDED doesn't match
644 the symbol referenced by regular object.
645
655ed9ea
NS
6462016-02-01 Nathaniel Smith <njs@pobox.com>
647
648 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
649 CODE and DATA.
650
ec1f73bb
AM
6512016-02-01 Alan Modra <amodra@gmail.com>
652
653 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
654 an out of range reloc_index.
655 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
656
b6471e6e
KR
6572016-02-01 Kamil Rytarowski <n54@gmx.com>
658
659 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
660 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
661 * Makefile.in: Regenerated.
662
0bc7245a
JK
6632016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
666
6d4b2867
JDA
6672016-01-31 John David Anglin <danglin@gcc.gnu.org>
668
669 PR ld/19526
670 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
671 files.
672 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
673
d9e3b590
L
6742016-01-30 H.J. Lu <hongjiu.lu@intel.com>
675
676 PR ld/19539
677 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
678 against STT_GNU_IFUNC symbol only with dynamic symbols.
679 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
680
bf150a0b
L
6812016-01-28 H.J. Lu <hongjiu.lu@intel.com>
682
683 PR binutils/19523
684 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
685 decompress debug sections.
686
840855c5
MR
6872016-01-25 Maciej W. Rozycki <macro@imgtec.com>
688
689 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
690 `dynindx'.
691
cf466c2a
NC
6922016-01-25 Nick Clifton <nickc@redhat.com>
693
694 PR target/19435
695 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
696 dsym filename buffer.
697
eb6b0cf4
MR
6982016-01-24 Maciej W. Rozycki <macro@imgtec.com>
699
700 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
701
e67f83e5
MR
7022016-01-24 Maciej W. Rozycki <macro@imgtec.com>
703
704 * elfxx-mips.c (BZ16_REG): Correct calculation.
705
23a42089
NC
7062016-01-21 Nick Clifton <nickc@redhat.com>
707
708 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
709 changing the type of _loc to be bfd_byte *.
710 (elf_arc_finish_dynamic_symbol): Likewise.
711
aebf9be7
NC
7122016-01-21 Nick Clifton <nickc@redhat.com>
713
714 PR ld/19455
715 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
716 class of the linker stub bfd.
717 (elf32_arm_check_relocs): Skip check for pic format after
718 processing a vxWorks R_ARM_ABS12 reloc.
719 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
720 reporting a class mismatch.
721
2f340668
JW
7222016-01-21 Jiong Wang <jiong.wang@arm.com>
723
724 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
725 veneer for sym_sec != input_sec.
726 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
727 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
728 calculation destination.
729
aeb70569
AM
7302016-01-21 Alan Modra <amodra@gmail.com>
731
732 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
733 (swap_linux_prpsinfo64_out): New function.
734 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
735 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
736 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
737 (elfcore_write_linux_prpsinfo64): Likewise.
738 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
739 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
740 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
741
de64ce13
AM
7422016-01-21 Alan Modra <amodra@gmail.com>
743
744 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
745 * elf.c: Adjust #include.
746 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
747 * Makefile.am (SOURCE_HFILES): Update.
748 * Makefile.in: Regenerate.
749 * po/SRC-PORFILES.in: Regenerate.
750
c603b11b
AM
7512016-01-21 Alan Modra <amodra@gmail.com>
752
753 * configure.ac: Move corefile selection later in file. Move
754 tdefaults code immediately after other target vector code.
755 * configure: Regenerate.
756
91f68a68
MG
7572016-01-20 Mickael Guene <mickael.guene@st.com>
758
759 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
760 section using '.text.noread' pattern.
761
5b2c414d
JB
7622016-01-19 John Baldwin <jhb@FreeBSD.org>
763
764 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
765
34e967a5
MC
7662016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
767 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
768
769 * arc-plt.def: New file.
770 * arc-plt.h: Likewise.
771 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
772 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
773 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
774 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
775 (name_for_global_symbol): Added.
776 (ADD_RELA): Helper to create dynamic relocs.
777 (new_got_entry_to_list): Create a new got entry in linked list.
778 (symbol_has_entry_of_type): Search for specific type of entry in
779 list.
780 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
781 (is_reloc_for_TLS, arc_elf_set_private_flags)
782 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
783 (arc_elf_merge_private_bfd_data): New functions.
784 (debug_arc_reloc): Cleaned debug info printing.
785 (PDATA reloc): Changed not to perform address alignment.
786 (reverse_me): Added. Fix for ARC_32 relocs.
787 (arc_do_relocation): Return bfd_reloc_of when no relocation should
788 occur.
789 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
790 Changed function to access an array of list of GOT entries instead
791 of just an array of offsets.
792 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
793 (elf_arc_check_relocs): Likewise.
794 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
795 (elf_arc_finish_dynamic_sections): Likewise
796 (arc_create_dynamic_sections): Modified conditions to create
797 dynamic sections.
798 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
799 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
800 (relocate_plt_for_entry): Changed to support new way to define PLT
801 related code.
802 (add_symbol_to_plt): Likewise.
803 (arc_elf_link_hash_table_create): New function.
804
9ae678af
NC
8052016-01-18 Nick Clifton <nickc@redhat.com>
806
807 PR ld/19440
808 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
809 section number into internal section number.
810 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
811 * coffswap.h (coff_swap_sym_in): Likewise.
812 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
813 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
814 section number field is big enough to hold the external value.
815
5c14705f
AM
8162016-01-17 Alan Modra <amodra@gmail.com>
817
818 * configure: Regenerate.
819
ac06903d
YU
8202016-01-12 Yury Usishchev <y.usishchev@samsung.com>
821
822 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
823 when address in first unwind entry does not match start of
824 section.
825
109575d7
JW
8262016-01-08 Richard Sandiford <richard.sandiford@arm.com>
827 Jiong Wang <jiong.wang@arm.com>
828
829 PR ld/19368
830 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
831 reloc_class_ifunc.
832
b05a65d0
AB
8332016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
834
835 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
836 place 'R_' before the reloc name returned.
837 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
838 the relocation string.
839
a3dc0a7f
MR
8402016-01-04 Maciej W. Rozycki <macro@imgtec.com>
841
842 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
843 factored out from...
844 (_bfd_mips_elf_merge_private_bfd_data): ... here.
845
d537eeb5
MR
8462016-01-04 Maciej W. Rozycki <macro@imgtec.com>
847
848 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
849 attribute check after ELF file header flag check.
850
43d223b5
MR
8512016-01-04 Maciej W. Rozycki <macro@imgtec.com>
852
853 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
854 return status from `_bfd_elf_merge_object_attributes'.
855
b2e9744f
MR
8562016-01-04 Maciej W. Rozycki <macro@imgtec.com>
857
858 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
859 factored out from...
860 (_bfd_mips_elf_merge_private_bfd_data): ... here.
861
28d45e28
MR
8622016-01-04 Maciej W. Rozycki <macro@imgtec.com>
863
864 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
865 handling of input MIPS ABI flags together.
866
23ba6f18
MR
8672016-01-04 Maciej W. Rozycki <macro@imgtec.com>
868
869 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
870 attribute checks for null input.
871
cf8502c1
MR
8722016-01-04 Maciej W. Rozycki <macro@imgtec.com>
873
874 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
875 pointers to target data.
876
dcb1c796
MR
8772016-01-04 Maciej W. Rozycki <macro@imgtec.com>
878
879 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
880 an FP ABI warning.
881
6f2750fe
AM
8822016-01-01 Alan Modra <amodra@gmail.com>
883
884 Update year range in copyright notice of all files.
885
3499769a
AM
886For older changes see ChangeLog-2015 and doc/ChangeLog-0415
887\f
888Copyright (C) 2016 Free Software Foundation, Inc.
889
890Copying and distribution of this file, with or without modification,
891are permitted in any medium without royalty provided the copyright
892notice and this notice are preserved.
893
894Local Variables:
895mode: change-log
896left-margin: 8
897fill-column: 74
898version-control: never
899End:
This page took 0.079909 seconds and 4 git commands to generate.