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