Remove the extra space
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
9aff4b7a
NC
12013-08-23 Yuri Chornoivan <yurchor@ukr.net>
2
3 PR binutils/15834
4 * bfdio.c: Fix typos.
5 * elf32-spu.c: Likewise.
6 * elfnn-aarch64.c: Likewise.
7
2eea2440
TG
82013-08-21 Tristan Gingold <gingold@adacore.com>
9
10 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Also count
11 .ovrflo sections.
12 * coffcode.h (coff_compute_section_file_positions): Force
13 match between file offset and vma offset.
14
934bce08
AM
152013-08-21 Alan Modra <amodra@gmail.com>
16
17 * elflink.c (_bfd_elf_merge_symbol): Set *poldbfd, *poldweak,
18 and *poldalignment before exiting when !relocs_compatible.
19
00b7642b
AM
202013-08-21 Alan Modra <amodra@gmail.com>
21
22 * elflink.c (_bfd_elf_define_linkage_sym): Don't set STV_INTERNAL
23 symbols to STV_HIDDEN.
24
62c34db3
NC
252013-08-14 John Tytgat <john@bass-software.com>
26
27 PR ld/15787
28 * elf32-arm.c (elf32_arm_final_link_relocate): Use origin of output
29 segment containing the relocating symbol instead of assuming 0 for
30 sb group relocations.
31
4046d87a
NC
322013-08-09 Nick Clifton <nickc@redhat.com>
33
34 * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if G10
35 flag bits do not match.
36 (rl78_elf_print_private_bfd_data): Describe G10 flag.
37
13896403
RS
382013-08-05 John Tytgat <john@bass-software.com>
39
40 * po/BLD-POTFILES.in: Regenerate.
41 * po/SRC-POTFILES.in: Likewise.
42
31a91d61
NC
432013-07-31 John Tytgat <john@bass-software.com>
44
45 PR ld/15787
46 * elf32-arm.c (elf32_arm_final_link_relocate): Base SB on the
47 output section VMA.
48
a505d7ac
MR
492013-07-28 Maciej W. Rozycki <macro@linux-mips.org>
50
51 * elf64-hppa.c (elf64_hppa_finish_dynamic_sections)
52 <DT_HP_LOAD_MAP>: Return unsuccessfully if there's no `.data'
53 section.
54
0608afa7
AP
552013-07-27 Andrew Pinski <apinski@cavium.com>
56
57 * elfnn-aarch64.c (elfNN_aarch64_check_relocs):
58 Use the correct alignment for
59 _bfd_elf_make_dynamic_reloc_section for ILP32.
60
54757ed1
AP
612013-07-27 Andrew Pinski <apinski@cavium.com>
62
63 * elfnn-aarch64.c (elfNN_aarch64_howto_from_bfd_reloc): Handle
64 BFD_RELOC_AARCH64_NONE explicitly.
65
f6518c48
MR
662013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
67
68 * elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's
69 entry size if there is no ELF section data.
70
125b5bac
MR
712013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
72
73 * elf32-vax.c (elf_vax_check_relocs) <R_VAX_GOT32, R_VAX_PLT32>:
74 Don't check symbol visibility here. Remove a check already
75 asserted for.
76 (elf_vax_instantiate_got_entries): Use SYMBOL_REFERENCES_LOCAL
77 instead of individual checks.
78 (elf_vax_relocate_section) <R_VAX_GOT32, R_VAX_PLT32>: Only
79 check the offset to decide if produce a GOT or PLT entry.
80 Remove redundant assertions. Remove code to produce GOT entries
81 for local symbols. Remove a duplicate comment and add a comment
82 on GOT relocations.
83 (elf_vax_finish_dynamic_symbol): Remove code to produce RELATIVE
84 dynamic relocs.
85
49d01bf6
MR
862013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
87
88 * elf32-vax.c (elf_vax_always_size_sections): Correct a comment
89 typo.
90
fac3d241
MR
912013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
92
93 * elf32-vax.c (elf_vax_discard_got_entries): New function.
94 (elf_vax_always_size_sections): Likewise.
95 (elf_vax_size_dynamic_sections): Remove code moved to
96 elf_vax_always_size_sections. Make comment on
97 elf_vax_instantiate_got_entries match reality.
98 (elf_vax_instantiate_got_entries): Assert that rather than check
99 if dynobj is null. Don't check for dynamic_sections_created.
100 Make function description match reality.
101 (elf_backend_always_size_sections): New macro.
102
729eabd5
AM
1032013-07-25 Alan Modra <amodra@gmail.com>
104
105 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Replace opd_relocs
106 with a union.
107 (opd_entry_value): Cache .opd section contents.
108 (ppc64_elf_relocate_section): Adjust.
109
db6a5d5f
AM
1102013-07-25 Alan Modra <amodra@gmail.com>
111
112 PR ld/15762
113 PR ld/12761
114 * elflink.c (elf_link_add_object_symbols): Correct test in
115 last patch. Remove unnecessary code.
116
7fa9fcb6
TG
1172013-07-24 Tristan Gingold <gingold@adacore.com>
118
119 * coff-rs6000.c (xcoff_howto_table): Fix masks and pc_relative for
120 R_RBR. Add numbers in comments.
121 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_PPC_B16.
122 * coff64-rs6000.c: Likewise.
123
436e1eba
AM
1242013-07-20 Alan Modra <amodra@gmail.com>
125
126 PR ld/15762
127 PR ld/12761
128 * elflink.c (elf_link_add_object_symbols): Don't clobber
129 .gnu.warning.symbol sections when shared.
130
ee181c72
NC
1312013-07-19 Nick Clifton <nickc@redhat.com>
132
133 * elf32-rx.c (rx_elf_relocate_section): Fix typo: move
134 saw_subtract from R_RX_OPdiv to R_RX_OPneg.
135
df301bfc
NC
1362013-07-18 Travis Snoozy <quandary@remstate.com>
137
138 PR ld/15721
139 * elf32-msp430.c (R_MSP430_10_PCREL): Use 10-bit source and
140 destination masks.
141 * R_MSP430_2X_PCREL: Likewise.
142 * R_MSP430X_10_PCREL: Likewise.
143 * R_MSP430X_2X_PCREL: Likewise.
144
39f21624
NC
1452013-07-18 Terry Guo <terry.guo@arm.com>
146
00b7642b 147 * elf32-arm.c (arm_type_of_stub): Don't use ST_BRANCH_TO_ARM for
39f21624 148 thumb only targets.
00b7642b 149 (elf32_arm_final_link_relocate): Likewise.
39f21624 150
671a6cbe
NC
1512013-07-18 Bill Neubauer <wcn@google.com>
152
153 * mach-o.c (mach_o_section_name_xlat dw): Add entry for
154 .debug_gdb_scripts
155
7a89b94e
NC
1562013-07-18 Roland McGrath <mcgrathr@google.com>
157
158 * elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable.
159 (elf32_arm_stub_long_branch_arm_nacl_pic): New variable.
160 (arm_build_one_stub): Increase MAXRELOCS to 3.
161 (arm_type_of_stub): Use them if GLOBALS->nacl_p.
162 (struct elf32_arm_link_hash_table): Give add_stub_section member's
163 pointee type a third argument.
164 (elf32_arm_create_or_find_stub_sec): Update caller.
165 (elf32_arm_size_stubs): Update argument type.
166 * bfd-in.h (elf32_arm_size_stubs): Update decl.
167 * bfd-in2.h: Regenerate.
168 * libbfd.h: Regenerate.
169
d929bc19
MR
1702013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
171
172 * elfxx-mips.c (mips_elf_merge_obj_attributes): Replace hardcoded
173 magic numbers with enum values.
174
7e11d300
RM
1752013-07-12 Roland McGrath <mcgrathr@google.com>
176
177 * reloc.c: Add BFD_RELOC_390_PC12DBL, BFD_RELOC_390_PLT12DBL,
178 BFD_RELOC_390_PC24DBL, BFD_RELOC_390_PLT24DBL (should have
179 been added here with 2013-07-05 elf32-s390.c change).
180 * bfd-in2.h: Regenerate (no-op).
181 * libbfd.h: Regenerate (no-op).
182
ba92f887
MR
1832013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
184
185 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Handle
186 EF_MIPS_NAN2008.
187 (_bfd_mips_elf_print_private_bfd_data): Likewise.
188
53452371
TG
1892013-07-09 Tristan Gingold <gingold@adacore.com>
190
191 * vms-alpha.c (struct vms_private_data_struct): Remove
192 flag_hash_long_names and flag_show_after_trunc.
193 (hash_string): Remove.
194 (_bfd_vms_length_hash_symbol): Remove.
195 (alpha_vms_write_exec): Remove call to _bfd_vms_length_hash_symbol.
196 (_bfd_vms_write_egsd): Likewise. Rewrite condition.
197 (_bfd_vms_write_ehdr): Remove code that set removed flags.
198 (_bfd_vms_write_etir): Remove call to _bfd_vms_length_hash_symbol.
199 (vms_bfd_is_local_label_name): Remove trace call.
200
787548c8
TG
2012013-07-09 Tristan Gingold <gingold@adacore.com>
202
203 * hosts/alphavms.h: Include config.h and ansidecl.h, remove useless
204 macros.
205 * configure.com: Adjust to match changes in configure.
206 * makefile.vms (OBJS): Update list.
207
2d63fb6c
TG
2082013-07-05 Tristan Gingold <gingold@adacore.com>
209
210 * coffcode.h (coff_write_object_contents): Use ".ovrflo" name for
211 overflow sections.
212
fb798c50
AK
2132013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
214
215 * elf32-s390.c: Add new relocation definitions R_390_PC12DBL,
216 R_390_PLT12DBL, R_390_PC24DBL, and R_390_PLT24DBL.
217 (elf_s390_reloc_type_lookup, elf_s390_check_relocs)
218 (elf_s390_gc_sweep_hook, elf_s390_relocate_section): Support new
219 relocations.
220 * elf64-s390.c: See elf32-s390.c
221 * bfd-in2.h: Add new relocs to enum bfd_reloc_code_real.
222 * libbfd.h: Add new reloc strings.
223
7bcccb57
MS
2242013-07-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
225
226 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reorder case
227 values.
228 (elfNN_aarch64_relocate_section): Likewise.
229 (elfNN_aarch64_gc_sweep_hook): Likewise.
230 (elfNN_aarch64_check_relocs): Likewise.
231
5295321c
AM
2322013-07-03 Alan Modra <amodra@gmail.com>
233
234 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't hide .TOC.
235 when relocatable. Don't change root.type or type here.
236 (ppc64_elf_set_toc): Set type of .TOC. to STT_OBJECT.
237
ba8ca3e7
AM
2382013-07-03 Alan Modra <amodra@gmail.com>
239
240 * elf64-ppc.c (struct ppc_stub_hash_entry): Delete "addend".
241 (ppc64_elf_size_stubs): Don't set "addend".
242 (ppc64_elf_relocate_section): Don't allow calls via
243 toc-adjusting stubs without a following nop even in an
244 executable, except for self-calls and both libc_start_main
245 and .libc_start_main.
246
c66bb0ee
AM
2472013-07-03 Alan Modra <amodra@gmail.com>
248
249 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.".
250
d5be367d
TG
2512013-07-02 Tristan Gingold <gingold@adacore.com>
252
253 * coff-rs6000.c (xcoff_find_nearest_line_discriminator): Add missing
254 line.
255
9a1ada6c
TG
2562013-07-02 Tristan Gingold <gingold@adacore.com>
257
b1a49096
TG
258 * vms-alpha.c (_bfd_generic_find_nearest_line_discriminator): Define.
259 (_bfd_vms_find_nearest_line_discriminator): New function.
260
2612013-07-02 Tristan Gingold <gingold@adacore.com>
c66bb0ee 262
9a1ada6c
TG
263 * coff-rs6000.c (xcoff_create_csect_from_smclas): Handle more smclas.
264
a685c4e6
TG
2652013-07-02 Tristan Gingold <gingold@adacore.com>
266
267 * coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function.
268 (rs6000coff_vec): Reference it.
269
cc0efaa8
MS
2702013-07-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
271
272 * elfnn-aarch64.c (aarch64_elf_create_got_section): New.
273 (elfNN_aarch64_check_relocs): Use aarch64_elf_create_got_section.
274 (elfNN_aarch64_create_dynamic_sections): Do not define
275 _GLOBAL_OFFSET_TABLE_; call aarch64_elf_create_got_section.
276
9d115506
MS
2772013-07-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
278
279 * ld-aarch64/emit-relocs-309-low.d: Adjust .text address.
280 * ld-aarch64/emit-relocs-309-up.d: Adjust .got address.
281 * ld-aarch64/emit-relocs-312.d: Adjust offsets into .got.
282 * ld-aarch64/tls-relax-all.d: Likewise.
283 * ld-aarch64/gc-got-relocs.d: Adjust expected .got content.
284 * ld-aarch64/gc-tls-relocs.d: Likewise.
285 * ld-aarch64/tls-relax-gd-ie.d: Likewise.
286 * ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise.
287 * ld-aarch64/tls-relax-gdesc-ie.d: Likewise.
288
f40da81b
AM
2892013-07-02 Alan Modra <amodra@gmail.com>
290
291 * elf64-ppc.c (ppc64_elf_relocate_section): Set "relocation" for
292 .TOC. after relocatable check.
293
1c865ab2
AM
2942013-07-01 Alan Modra <amodra@gmail.com>
295
296 * elf64-ppc.h (ppc64_elf_toc): Delete.
297 (ppc64_elf_set_toc): Declare.
298 * elf64-ppc.c (ppc64_elf_toc_reloc): Replace call to ppc64_elf_toc
299 with call the ppc64_elf_set_toc.
300 (ppc64_elf_toc_ha_reloc, ppc64_elf_toc64_reloc): Likewise.
301 (ppc64_elf_start_multitoc_partition): Likewise.
302 (struct ppc_link_hash_table): Delete dot_toc_dot. Replace all uses
303 with elf.hgot.
304 (ppc64_elf_process_dot_syms): Don't make a fake function descriptor
305 for ".TOC.".
306 (ppc64_elf_check_relocs): Mark sections with a reference to .TOC.
307 as needing a toc pointer.
308 (ppc64_elf_size_stubs): Don't set dot_toc_dot here.
309 (ppc64_elf_set_toc): Rename from ppc64_elf_toc. Add info param.
310 Set elf.hgot value.
311
a69ed7f7
L
3122013-06-28 H.J. Lu <hongjiu.lu@intel.com>
313
314 PR ld/15685
315 * elf64-x86-64.c (elf_x86_64_relocate_section): Handle
316 R_X86_64_DTPOFF64.
317
c3b6407f
NC
3182013-06-28 Nick Clifton <nickc@redhat.com>
319
320 PR ld/15302
321 * elf32-arm.c (allocate_dynrelocs_for_symbol): Revert previous patch.
322
8db339a6
MS
3232013-06-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
324
325 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Reserve one slot
326 in sgot.
327 (elfNN_aarch64_finish_dynamic_sections): Place the &_DYNAMIC reference
328 in sgot[0] rather than sgotplt[0].
329
2d426575
YZ
3302013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
331
332 * Makefile.am (elf32-aarch64.c): Add a #line cpp directive at the
333 beginning of the generated file.
334 (elf64-aarch64.c): Likewise.
335 * Makefile.in: Re-generated.
336
caed7120
YZ
3372013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
338
339 * Makefile.am (BFD64_BACKENDS): Add elfxx-aarch64.c.
340 (BFD64_BACKENDS_CFILES): Add elfxx-aarch64.lo.
341 * Makefile.in: Re-generated.
342 * configure.in (bfd_elf64_bigaarch64_vec): Add elfxx-aarch64.lo.
343 (bfd_elf64_littleaarch64_vec): Likewise.
344 (bfd_elf32_bigaarch64_vec): Likewise.
345 (bfd_elf32_littleaarch64_vec): Likewise.
346 * configure: Re-generated.
347 * elfxx-aarch64.c: New file; split from elf64-aarch64.c.
348 * elfxx-aarch64.h: New file.
349 * elfnn-aarch64.c: Include "elfxx-aarch64.h"; move the following
350 stuff to elfxx-aarch64.c.
351 (bfd_elf_aarch64_put_addend): Removed.
352 (PG_OFFSET, PG): Likewise.
353 (elfNN_aarch64_small_plt0_entry): Support ELF32.
354 (elfNN_aarch64_tlsdesc_small_plt_entry): Likewise.
355 (elf64_aarch64_grok_prstatus): Removed.
356 (elf_backend_grok_prstatus): Removed.
357 (insn32): Likewise.
358 (aarch64_unsigned_overflow): Likewise.
359 (aarch64_signed_overflow): Likewise.
360 (aarch64_resolve_relocation): Likewise.
361 (MASK): Likewise.
362 (decode_branch_ofs_26): Likewise.
363 (decode_cond_branch_ofs_19): Likewise.
364 (decode_ld_lit_ofs_19): Likewise.
365 (decode_tst_branch_ofs_14): Likewise.
366 (decode_movw_imm): Likewise.
367 (decode_adr_imm): Likewise.
368 (decode_add_imm): Likewise.
369 (reencode_branch_ofs_26): Likewise.
370 (reencode_cond_branch_ofs_19): Likewise.
371 (reencode_ld_lit_ofs_19): Likewise.
372 (reencode_tst_branch_ofs_14): Likewise.
373 (reencode_movw_imm): Likewise.
374 (reencode_adr_imm): Likewise.
375 (reencode_ldst_pos_imm): Likewise.
376 (reencode_add_imm): Likewise.
377 (reencode_movzn_to_movz): Likewise.
378 (reencode_movzn_to_movn): Likewise.
379 (aarch64_relocate): Update to call the new function names in
380 elfxx-aarch64.c.
381 (aarch64_calculate_got_entry_vma): Likewise.
382 (elfNN_aarch64_final_link_relocate): Likewise.
383 (elf64_aarch64_update_plt_entry): Likewise; change the type of the
384 parameter 'r_type' to bfd_reloc_code_real_type; rename to ...
385 (elf_aarch64_update_plt_entry): ... this.
386 (elfNN_aarch64_create_small_pltn_entry): Update.
387 (elfNN_aarch64_init_small_plt0_entry): Remove plt_got_base; add
388 bfd_vma plt_got_2nd_ent; update to call elf_aarch64_update_plt_entry.
389 (elfNN_aarch64_finish_dynamic_sections): Add plt_entry; update to
390 call elf_aarch64_update_plt_entry.
391
a6bb11b2
YZ
3922013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
393
394 * bfd-in2.h: Re-generated.
395 * elfnn-aarch64.c (HOWTO64, HOWTO32): New define.
396 (IS_AARCH64_TLS_RELOC): Change to be based on the
397 bfd reloc enumerators.
398 (IS_AARCH64_TLSDESC_RELOC): Likewise.
399 (PG, PG_OFFSET): Cast literal to bfd_vma.
400 (elf64_aarch64_howto_table): Removed.
401 (elf64_aarch64_howto_dynrelocs): Removed.
402 (elf64_aarch64_tls_howto_table): Removed.
403 (elf64_aarch64_tlsdesc_howto_table): Removed.
404 (elfNN_aarch64_howto_table): New table to host all howto entires..
405 (R_AARCH64_*): Replaced by AARCH64_R (*) and AARCH64_R_STR (*).
406 (elfNN_aarch64_bfd_reloc_from_howto): New function.
407 (elfNN_aarch64_bfd_reloc_from_type): Ditto.
408 (struct elf_aarch64_reloc_map): New.
409 (elf_aarch64_reloc_map): New table.
410 (elfNN_aarch64_howto_from_bfd_reloc): New function.
411 (elfNN_aarch64_howto_from_type): Update to look up the new table
412 elfNN_aarch64_howto_table.
413 (struct elf64_aarch64_reloc_map): Remove.
414 (elf64_aarch64_reloc_map): Remove.
415 (elfNN_aarch64_reloc_type_lookup): Change to call
416 elfNN_aarch64_howto_from_bfd_reloc.
417 (elfNN_aarch64_reloc_name_lookup): Change to look up the new table
418 elfNN_aarch64_howto_table.
419 (aarch64_resolve_relocation): Refactor to switch on the bfd
420 reloc enumerators.
421 (bfd_elf_aarch64_put_addend): Likewise.
422 (elfNN_aarch64_final_link_relocate): Likewise.
423 (aarch64_tls_transition_without_check): Likewise.
424 (aarch64_reloc_got_type): Likewise.
425 (aarch64_can_relax_tls): Likewise.
426 (aarch64_tls_transition): Likewise.
427 (elfNN_aarch64_tls_relax): Likewise.
428 (elfNN_aarch64_final_link_relocate): Likewise.
429 (elfNN_aarch64_relocate_section): Likewise.
430 (elfNN_aarch64_gc_sweep_hook): Likewise.
431 (elfNN_aarch64_check_relocs): Likewise.
432 (aarch64_tls_transition): Change to return a bfd reloc enumerator.
433 * libbfd.h: Re-generated.
434 * reloc.c: Re-order the AArch64 bfd reloc enumerators.
435 (BFD_RELOC_AARCH64_RELOC_START)
436 (BFD_RELOC_AARCH64_RELOC_END)
437 (BFD_RELOC_AARCH64_LD_GOT_LO12_NC)
438 (BFD_RELOC_AARCH64_LD32_GOT_LO12_NC)
439 (BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC)
440 (BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC)
441 (BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC)
442 (BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC)
443 (BFD_RELOC_AARCH64_IRELATIVE): New relocs.
444
cec5225b
YZ
4452013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
446
447 * Makefile.am (BFD64_BACKENDS): Add elf32-aarch64.lo.
448 (BUILD_CFILES): Add elf32-aarch64.c.
449 (elf32-aarch64.c): New rule for generating from elfnn-aarch64.c.
450 * Makefile.in: Re-generated.
451 * archures.c (bfd_mach_aarch64_ilp32): New define.
452 * bfd-in.h (bfd_elf32_aarch64_init_maps): New declaration.
453 (bfd_elf32_aarch64_set_options): Ditto.
454 (elf32_aarch64_setup_section_lists): Ditto.
455 (elf32_aarch64_next_input_section): Ditto.
456 (elf32_aarch64_size_stubs): Ditto.
457 (elf32_aarch64_build_stubs): Ditto.
458 * bfd-in2.h: Re-generated.
459 * config.bfd (aarch64-*-elf): Add bfd_elf32_littleaarch64_vec
460 and bfd_elf32_bigaarch64_vec.
461 (aarch64-*-linux*): Likewise.
462 (aarch64_be-*-elf): Likewise.
463 (aarch64_be-*-linux*): Likewise.
464 * configure.in (bfd_elf32_bigaarch64_vec)
465 (bfd_elf32_littleaarch64_vec): New.
466 * configure: Re-generated.
467 * cpu-aarch64.c (compatible): Don't allow mixing ilp32 objects with
468 lp64 ones.
469 (bfd_aarch64_arch_ilp32): New.
470 (bfd_aarch64_arch): Link to bfd_aarch64_arch_ilp32.
471 * elfnn-aarch64.c (ARCH_SIZE): New define.
472 (AARCH64_R, AARCH64_R_STR, LOG_FILE_ALIGN): New defines.
473 (GOT_ENTRY_SIZE): Re-define as (ARCH_SIZE / 8).
474 (elf64_aarch64_*): Rename to elfNN_aarch64_*.
475 (ELF64_R_*): Rename to ELFNN_R_*.
476 Plus other paramaterization.
477 * targets.c (bfd_elf32_bigaarch64_vec, bfd_elf32_littleaarch64_vec):
478 New declarations.
479 (_bfd_target_vector): Add bfd_elf32_bigaarch64_vec and
480 bfd_elf32_littleaarch64_vec.
481
81197114
YZ
4822013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
483
484 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-aarch64.c.
485 (BUILD_CFILES): Add elf64-aarch64.c.
486 (elf64-aarch64.c): New rule for generating from elfnn-aarch64.c.
487 * Makefile.in: Re-generated.
488 * elf64-aarch64.c: Rename to ...
489 * elfnn-aarch64.c: ... this.
490
833794fc
MR
4912013-06-25 Maciej W. Rozycki <macro@codesourcery.com>
492 Paul Brook <paul@codesourcery.com>
493
494 * elfxx-mips.h (_bfd_mips_elf_insn32): New prototype.
495 * elfxx-mips.c (mips_elf_link_hash_table): Add insn32 member.
496 (STUB_MOVE32_MICROMIPS, STUB_JALR32_MICROMIPS): New macros.
497 (MICROMIPS_INSN32_FUNCTION_STUB_NORMAL_SIZE): Likewise.
498 (MICROMIPS_INSN32_FUNCTION_STUB_BIG_SIZE): Likewise.
499 (micromips_insn32_o32_exec_plt0_entry): New variable.
500 (micromips_insn32_o32_exec_plt_entry): Likewise.
501 (_bfd_mips_elf_adjust_dynamic_symbol): Handle insn32 mode.
502 (mips_elf_estimate_stub_size): Likewise.
503 (_bfd_mips_elf_size_dynamic_sections): Likewise.
504 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
505 (mips_finish_exec_plt): Likewise.
506 (_bfd_mips_elf_relax_section): Likewise.
507 (_bfd_mips_elf_insn32): New function.
508 (_bfd_mips_elf_get_synthetic_symtab): Handle insn32 PLT.
509
1bbce132
MR
5102013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
511
512 * elfxx-mips.h (_bfd_mips_elf_get_synthetic_symtab): New
513 prototype.
514 * elf32-mips.c (elf_backend_plt_sym_val): Remove macro.
515 (bfd_elf32_get_synthetic_symtab): New macro.
516 * elfxx-mips.c (plt_entry): New structure.
517 (mips_elf_link_hash_entry): Add use_plt_entry member.
518 (mips_elf_link_hash_table): Rename plt_entry_size member to
519 plt_mips_entry_size. Add plt_comp_entry_size, plt_mips_offset,
520 plt_comp_offset, plt_got_index entries and plt_header_is_comp
521 members.
522 (STUB_LW_MICROMIPS, STUB_MOVE_MICROMIPS): New macros.
523 (STUB_LUI_MICROMIPS, STUB_JALR_MICROMIPS): Likewise.
524 (STUB_ORI_MICROMIPS, STUB_LI16U_MICROMIPS): Likewise.
525 (STUB_LI16S_MICROMIPS): Likewise.
526 (MICROMIPS_FUNCTION_STUB_NORMAL_SIZE): Likewise.
527 (MICROMIPS_FUNCTION_STUB_BIG_SIZE): Likewise.
528 (micromips_o32_exec_plt0_entry): New variable.
529 (mips16_o32_exec_plt_entry): Likewise.
530 (micromips_o32_exec_plt_entry): Likewise.
531 (mips_elf_link_hash_newfunc): Initialize use_plt_entry.
532 (mips_elf_output_extsym): Update to use gotplt_union's plist
533 member rather than offset.
534 (mips_elf_gotplt_index): Likewise. Remove the VxWorks
535 restriction. Use MIPS_ELF_GOT_SIZE to calculate GOT address.
536 (mips_elf_count_got_symbols): Update to use gotplt_union's plist
537 member rather than offset.
538 (mips_elf_calculate_relocation): Handle MIPS16/microMIPS PLT
539 entries.
540 (_bfd_mips_elf_create_dynamic_sections): Don't set PLT sizes
541 here.
542 (mips_elf_make_plt_record): New function.
543 (_bfd_mips_elf_check_relocs): Update comment. Record occurences
544 of JAL relocations that might need a PLT entry.
545 (_bfd_mips_elf_adjust_dynamic_symbol): Update to use
546 gotplt_union's plist member rather than offset. Set individual
547 PLT entry sizes here. Handle MIPS16/microMIPS PLT entries.
548 Don't set the symbol's value in the symbol table for PLT
549 references here. Don't set the PLT or PLT GOT section sizes
550 here.
551 (mips_elf_estimate_stub_size): Handle microMIPS stubs.
552 (mips_elf_allocate_lazy_stub): Likewise.
553 (mips_elf_lay_out_lazy_stubs): Likewise. Define a _MIPS_STUBS_
554 magic symbol.
555 (mips_elf_set_plt_sym_value): New function.
556 (_bfd_mips_elf_size_dynamic_sections): Set PLT header size and
557 PLT and PLT GOT section sizes here. Set the symbol values in
558 the symbol table for PLT references here. Handle microMIPS
559 annotation of the _PROCEDURE_LINKAGE_TABLE_ magic symbol.
560 (_bfd_mips_elf_finish_dynamic_symbol): Update to use
561 gotplt_union's plist member rather than offset. Handle
562 MIPS16/microMIPS PLT entries. Handle microMIPS stubs.
563 (_bfd_mips_vxworks_finish_dynamic_symbol): Update to use
564 gotplt_union's plist member rather than offset. Use
565 MIPS_ELF_GOT_SIZE to calculate GOT address.
566 (mips_finish_exec_plt): Handle microMIPS PLT. Return status.
567 (_bfd_mips_elf_finish_dynamic_sections): Handle result from
568 mips_finish_exec_plt.
569 (_bfd_mips_elf_link_hash_table_create): Update to use
570 gotplt_union's plist member rather than offset.
571 (_bfd_mips_elf_get_synthetic_symtab): New function.
572
cd6d434c
NC
5732013-06-24 Wawa <caojinyu@msn.com>
574
575 PR 15657
576 * hash.c (_bfd_stringtab_add): Copy the string if COPY is true.
577
42429eac
RS
5782013-06-23 Richard Sandiford <rdsandiford@googlemail.com>
579
580 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Move MIPS ELF
581 files to...
582 (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): ...here.
583 * Makefile.in: Regenerate.
584 * config.bfd: Enclose all MIPS ELF targets in #ifdef BFD64.
585 Set want64 to true for them at the end.
586 * targets.c (_bfd_target_vector): Protect MIPS ELF targets with
587 #ifdef BFD64.
588
12d83431
SL
5892013-06-22 Sandra Loosemore <sandra@codesourcery.com>
590
591 * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Don't
592 set sh_entsize for PLT section.
593
b9eead84
YZ
5942013-06-20 Yufeng Zhang <yufeng.zhang@arm.com>
595
596 * bfd-in.h (bfd_elf64_aarch64_set_options): Add 'extern'.
597 * bfd-in2.h: Re-generated.
598 * elf64-aarch64.c (RELOC_SECTION): Removed.
599 (SWAP_RELOC_IN, SWAP_RELOC_OUT): Ditto.
600 (AARCH64_ELF_OS_ABI_VERSION): Ditto.
601 (elf64_aarch64_link_hash_traverse): Ditto.
602 (elf64_aarch64_size_stubs): Change 'Aarch64' to 'AArch64' in the
603 comment.
604
8847944f
WN
6052013-06-19 Will Newton <will.newton@linaro.org>
606
607 * configure: Regenerated.
608 * configure.in: Remove aarch64 dependency on elf-ifunc.c.
609 * elf64-aarch64.c: Remove objalloc.h include.
610 (elf64_aarch64_howto_dynrelocs): Remove R_AARCH64_IRELATIVE howto.
611 (struct elf64_aarch64_link_hash_table): Remove ifunc related
612 members. (elf_aarch64_local_htab_hash): Remove function.
613 (elf_aarch64_local_htab_eq): Remove function.
614 (elf_aarch64_get_local_sym_hash): Remove function.
615 (elf64_aarch64_link_hash_table_create): Remove local hash
616 table initialization.
617 (elf64_aarch64_final_link_relocate): Remove sym argument and
618 handling of ifunc symbols.
619 (elf64_aarch64_relocate_section): Don't pass sym argument to
620 elf64_aarch64_final_link_relocate.
621 (elf64_aarch64_gc_sweep_hook): Remove handling of ifunc symbols.
622 (elf64_aarch64_adjust_dynamic_symbol): Likewise.
623 (elf64_aarch64_check_relocs): Likewise.
624 (elf64_aarch64_post_process_headers): Remove call to
625 _bfd_elf_set_osabi.
626 (elf64_aarch64_is_function_type): New function.
627 (elf64_aarch64_allocate_dynrelocs): Remove handling of ifunc
628 symbols. (elf_aarch64_allocate_local_dynrelocs): Remove function.
629 (elf64_aarch64_size_dynamic_sections): Remove call to
630 elf_aarch64_allocate_local_dynrelocs.
631 (elf64_aarch64_create_small_pltn_entry): Remove info argument.
632 Remove creation of R_AARCH64_IRELATIVE dynamic relocs.
633 (elf64_aarch64_finish_dynamic_symbol): Remove handling of ifunc
634 symbols. (elf_aarch64_finish_local_dynamic_symbol): Remove
635 function. (elf64_aarch64_finish_dynamic_sections): Remove call to
636 elf_aarch64_finish_local_dynamic_symbol.
637 (elf64_aarch64_add_symbol_hook): Remove function.
638
2532064a
YZ
6392013-06-14 Yufeng Zhang <yufeng.zhang@arm.com>
640
641 * elf64-aarch64.c (elf64_aarch64_final_link_relocate): Call
642 aarch64_resolve_relocation and bfd_elf_aarch64_put_addend to
643 handle the relocations of R_AARCH64_JUMP26, R_AARCH64_CALL26,
644 R_AARCH64_LD64_GOT_LO12_NC, R_AARCH64_ADR_GOT_PAGE and
645 R_AARCH64_GOT_LD_PREL19.
646
2f47f5fc
NC
6472013-06-13 Terry Guo <terry.guo@arm.com>
648
649 PR ld/15302
650 * elf32-arm.c (allocate_dynrelocs_for_symbol): Transform
651 ST_BRANCH_TO_ARM into ST_BRANCH_TO_THUMB if the target only
652 supports thumb instructions.
653
34064ff3
DD
6542013-06-11 DJ Delorie <dj@redhat.com>
655
656 * elf32-rl78.c (rl78_elf_relocate_section): Fix OPsub math.
657
3368874f
WN
6582013-06-11 Will Newton <will.newton@linaro.org>
659
660 * elf64-aarch64.c (elf_aarch64_get_local_sym_hash): Use
661 ELF64_R_SYM instead of ELF32_R_SYM.
662
47fc0f1f
NC
6632013-06-11 Nick Clifton <nickc@redhat.com>
664
665 * elf32-rl78.c (rl78_elf_finish_dynamic_sections): Onlly run
666 checks if the dynamic sections have been created and relaxation
667 has not been performed.
668
692e2b8b
WN
6692013-06-07 Will Newton <will.newton@linaro.org>
670
671 * configure: Regenerate.
672 * configure.in: Build elf-ifunc.o for AArch64.
673 * elf64-aarch64.c: Include objalloc.h.
674 (elf64_aarch64_howto_dynrelocs): Add R_AARCH64_IRELATIVE howto.
675 (struct elf64_aarch64_link_hash_table): Add members for handling
676 R_AARCH64_IRELATIVE relocations.
677 (elf_aarch64_local_htab_hash): New function.
678 (elf_aarch64_local_htab_eq): New function.
679 (elf_aarch64_get_local_sym_hash): New function.
680 (elf64_aarch64_link_hash_table_create): Initialize local STT_GNU_IFUNC
681 symbol hash.
682 (elf64_aarch64_hash_table_free): Free local STT_GNU_IFUNC symbol hash.
683 (elf64_aarch64_final_link_relocate): Add sym argument. Add support
684 for handling STT_GNU_IFUNC symbols.
685 (elf64_aarch64_gc_sweep_hook): Add support for garbage collecting
686 references to STT_GNU_IFUNC symbols.
687 (elf64_aarch64_adjust_dynamic_symbol): Add support for handling
688 STT_GNU_IFUNC symbols.
689 (elf64_aarch64_check_relocs): Add support for handling STT_GNU_IFUNC
690 symbols. Ensure we don't increase plt.refcount from -1 to 0.
691 (elf64_aarch64_post_process_headers): Call _bfd_elf_set_osabi.
692 (elf64_aarch64_is_function_type): Remove function.
693 (elf64_aarch64_allocate_dynrelocs): Call
694 _bfd_elf_allocate_ifunc_dyn_relocs for STT_GNU_IFUNC symbols.
695 (elf_aarch64_allocate_local_dynrelocs): New function.
696 (elf64_aarch64_size_dynamic_sections): Call
697 elf_aarch64_allocate_local_dynrelocs. Initialize next_irelative_index.
698 (elf64_aarch64_create_small_pltn_entry): Add info argument.
699 Add support for creating .iplt entries for STT_GNU_IFUNC symbols.
700 (elf64_aarch64_finish_dynamic_symbol): Add support for handling
701 STT_GNU_IFUNC symbols and .iplt.
702 (elf_aarch64_finish_local_dynamic_symbol): New function.
703 (elf64_aarch64_finish_dynamic_sections): Call
704 elf_aarch64_finish_local_dynamic_symbol.
705 (elf64_aarch64_add_symbol_hook): New function.
706
fa549f3b
AM
7072013-06-03 Alan Modra <amodra@gmail.com>
708
709 * syms.c (_bfd_stab_section_find_nearest_line): Add last_str
710 var. Use it with last_stab.
711
067ec077
CM
7122013-05-30 Paul Brook <paul@codesourcery.com>
713
714 * bfd-in2.h: Regenerate.
715 * elf32-mips.c (elf_mips_eh_howto): New.
716 (bfd_elf32_bfd_reloc_type_lookup ): Support BFD_RELOC_MIPS_EH.
717 (bfd_elf32_bfd_reloc_name_lookup): Likewise.
718 (mips_elf32_rtype_to_howto): Support R_MIPS_EH.
719 * elf64-mips.c (elf_mips_eh_howto): New.
720 (bfd_elf64_bfd_reloc_type_lookup): Support BFD_RELOC_MIPS_EH.
721 (bfd_elf64_bfd_reloc_name_lookup): Likewise.
722 (mips_elf64_rtype_to_howto): Support R_MIPS_EH.
723 * libbfd.h: Regenerate.
724 * reloc.c (BFD_RELOC_MIPS_EH): New.
725
95e34fb4
NC
7262013-05-29 Nick Clifton <nickc@redhat.com>
727
728 * dwarf2.c (struct dwarf2_debug): Add fields for handling
729 alternate debug info source.
730 (dwarf_debug_sections): Add entries for alternate .debug_str and
731 .debug_info sections.
732 (dwarf_debug_section_enum): Likewise.
733 (read_alt_indirect_string): New function. Handles a
734 DW_FORM_GNU_strp_alt attribute.
735 (read_alt_indirect_ref): New function. Handles a
736 DW_FORM_GNU_ref_alt attribute.
737 (read_attribute_value): Process DW_FORM_GNU_ref_alt and
738 DW_FORM_GNU_strp_alt.
739 (find_abstract_instance_name): Handle DW_FORM_GNU_ref_alt
740 attributes.
741 (_bfd_dwarf2_cleanup_debug_info): Free alternate debug info
742 sources.
743 * opncls.c (GNU_DEBUGALTLINK): Define.
744 (bfd_get_alt_debug_link_info): New function.
745 (separate_alt_debug_file_exists): New function.
746 (find_separate_debug_file): Add parameters for fetch and check
747 functions.
748 (bfd_follow_gnu_debugaltlink): New function.
749 * bfd-in2.h: Regenerate.
750
418009c2
YZ
7512013-05-28 Yufeng Zhang <yufeng.zhang@arm.com>
752
753 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE): Rename to ...
754 (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21): ... this.
755 (BFD_RELOC_AARCH64_TLSDESC_LD64_PREL19): Rename to ...
756 (BFD_RELOC_AARCH64_TLSDESC_LD_PREL19): ... this.
757 * bfd-in2.h: Regenerate.
758 * libbfd.h: Regenerate.
759 * elf64-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Update to use
760 the correct names.
761 (elf64_aarch64_tlsdesc_howto_table): Likewise.
762 (elf64_aarch64_reloc_map): Likewise.
763 (aarch64_resolve_relocation): Likewise.
764 (bfd_elf_aarch64_put_addend): Likewise.
765 (aarch64_tls_transition_without_check): Likewise.
766 (aarch64_reloc_got_type): Likewise.
767 (elf64_aarch64_final_link_relocate): Likewise.
768 (elf64_aarch64_tls_relax): Likewise.
769 (elf64_aarch64_relocate_section): Likewise.
770 (elf64_aarch64_gc_sweep_hook): Likewise.
771 (elf64_aarch64_check_relocs): Likewise.
772
9d782e8d
MW
7732013-05-26 Mark Wielaard <mjw@redhat.com>
774
775 * cache.c (BFD_CACHE_MAX_OPEN): Remove define.
776 (max_open_files): New static int initialized to zero.
777 (bfd_cache_max_open): New static function to set and return
778 max_open_files.
779 (bfd_cache_init): Use bfd_cache_max_open.
780 (bfd_open_file): Likewise.
781 * configure.in (AC_CHECK_HEADERS): Add sys/resource.h.
782 (AC_CHECK_FUNCS): Add getrlimit.
783 * configure: Regenerated.
784 * config.in: Likewise.
785 * sysdep.h: Check and include sys/resource.h for getrlimit.
786
03ae2d5e
AM
7872013-05-23 Alan Modra <amodra@gmail.com>
788
789 * format.c (bfd_check_format_matches): Don't match a target in
790 targ_selvecs if some other target is a better match. If
791 targets implement match priority, fall back to the first of
792 the best matches.
793
ad3d9127
AM
7942013-05-22 Eric Herman <eric@freesa.org>
795
796 PR binutils/15462
797 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Warning fix.
798
5b3905f1
AM
7992013-05-22 Ralf Dreesen <gamma@dreesen.net>
800
801 PR binutils/15474
802 * srec.c (srec_set_section_contents): Properly convert size
803 and offset to address when octets_per_byte is not unity.
804
8be65dd3
MR
8052013-05-20 Maciej W. Rozycki <macro@linux-mips.org>
806
807 * elf32-vax.c (elf_vax_instantiate_got_entries): Only set the
808 refcount member of the gotplt_union when resetting the reference
809 count. Adjust comment.
810
593f8f29
WN
8112013-05-20 Will Newton <will.newton@linaro.org>
812
813 * elf64-aarch64.c (elf64_aarch64_link_hash_entry): Remove
814 relocs_copied member.
815 (elf64_aarch64_link_hash_newfunc): Remove initialization of
816 relocs_copied member.
817 (elf64_aarch64_copy_indirect_symbol): Remove code to copy
818 relocs_copied member.
819
a0f0eb1e
MR
8202013-05-19 Maciej W. Rozycki <macro@linux-mips.org>
821
822 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&R
823 function definition.
824
af65e588
CC
8252013-05-16 Cary Coutant <ccoutant@google.com>
826
827 * ecoff.c (ecoff_link_check_archive_element): Add initializers for
828 external_ext_size and esize.
829
9f6e76f4
TG
8302013-05-16 Tristan Gingold <gingold@adacore.com>
831
832 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16.
833 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
834
c495064d
AS
8352013-05-15 Andreas Schwab <schwab@suse.de>
836
837 * elf64-aarch64.c (elf_backend_default_execstack): Define to 0.
838
110a61d3
JB
8392013-05-10 Joel Brobecker <brobecker@adacore.com>
840
841 * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
842 of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.
843
ceae87f3
JB
8442013-05-09 Joel Brobecker <brobecker@adacore.com>
845
846 * bfd.c (_bfd_default_error_handler): Replace use of putc
847 by fputc. Add comment explaining why.
848
012b2306
AM
8492013-05-09 Alan Modra <amodra@gmail.com>
850
851 * elflink.c (elf_link_add_object_symbols): Don't omit reading
852 of symbols when hashes already exist.
853
7b70956d
WN
8542013-05-07 Will Newton <will.newton@linaro.org>
855
856 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a
857 plt_header_size argument for ports where it differs from
858 plt_entry_size.
859 * elf-bfd.h: Likewise.
860 * elf32-i386.c: Pass plt_header_size to
861 _bfd_elf_allocate_ifunc_dyn_relocs.
862 * elf64-x86-64.c: Likewise.
863
1ee9e8b3
WN
8642013-05-07 Will Newton <will.newton@linaro.org>
865
012b2306 866 * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
1ee9e8b3
WN
867 function.
868 * elf-bfd.h: Likewise.
869
b47468a6
CM
8702013-05-06 Paul Brook <paul@codesourcery.com>
871
012b2306
AM
872 * elf64-mips.c (elf_mips_gnu_pcrel32): New.
873 (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup,
874 mips_elf64_rtype_to_howto): Handle R_MIPS_PC32.
875 * elfn32-mips.c (elf_mips_gnu_pcrel32): New.
876 (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup,
877 mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32.
b47468a6 878
128205bb
AM
8792013-05-06 Alan Modra <amodra@gmail.com>
880
881 * elf64-ppc.c (opd_entry_value): Handle case where symbol
882 hashes are not available.
883
f45794cb
AM
8842013-05-06 Alan Modra <amodra@gmail.com>
885
886 * elflink.c (elf_link_add_object_symbols): Don't save symbol
887 hashes around loading as-needed library. Zero them on allocation,
888 and restore to initial all-zero state if library not needed.
889 Arrange to reuse hashes if we load library again later.
890
d150b1a2
RS
8912013-05-04 Richard Sandiford <rdsandiford@googlemail.com>
892
893 * elf32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto):
894 Use _bfd_mips_elf_generic_reloc instead of bfd_elf_generic_reloc.
895 * elfn32-mips.c: Likewise.
896 * elf64-mips.c: Likewise.
897
13761a11
NC
8982013-05-02 Nick Clifton <nickc@redhat.com>
899
900 * archures.c: Add some more MSP430 machine numbers.
901 * config.bfd (msp430): Define targ_selvecs.
902 * configure.in: Add bfd_elf32_msp430_ti_vec.
903 * cpu-msp430.c: Add some more MSP430 machine numbers.
904 * elf32-msp430.c Add support for MSP430X relocations.
905 Add support for TI compiler generated relocations.
906 Add support for sym_diff relocations.
907 Add support for relaxing out of range short branches into long
908 branches.
909 Add support for MSP430 attribute section.
910 * reloc.c: Add MSP430X relocations.
911 * targets.c: Add bfd_elf32_msp430_ti_vec.
912 * bfd-in2.h: Regenerate.
913 * configure: Regenerate.
914 * libbfd.h: Regenerate.
915
df26367c
MR
9162013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
917
918 * config.bfd: Replace alpha*-*-linuxecoff* pattern with
919 alpha*-*-linux*ecoff*.
920
ed54588d
NC
9212013-04-30 Olaf Flebbe <o.flebbe@science-computing.de>
922
923 PR binutils/15417
924 * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
925 zero.
926
b8297068
AM
9272013-04-30 Alan Modra <amodra@gmail.com>
928
929 * elflink.c (bfd_elf_record_link_assignment): Dont make
930 STV_INTERNAL symbols STV_HIDDEN.
931
b40bf0a2
NC
9322013-04-29 Nick Clifton <nickc@redhat.com>
933
934 * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
935 fragmented .debug_line sections associated with unmarked code
936 sections.
937
aba8c3de
WN
9382013-04-29 Will Newton <will.newton@linaro.org>
939
940 * elf32-arm.c (elf32_arm_populate_plt_entry): Call
941 elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs.
942
7fcfd62d
NC
9432013-04-29 Will Newton <will.newton@linaro.org>
944
945 * elf64-aarch64.c (elf64_aarch64_check_relocs): Move relocation
946 error check up and add error message.
947
ed5acf27
WN
9482013-04-26 Will Newton <will.newton@linaro.org>
949
950 * elf64-aarch64.c (elf64_aarch64_check_relocs): Remove dead code.
951
49926cd0
AM
9522013-04-25 Alan Modra <amodra@gmail.com>
953
954 * config.bfd: Add powerpc64le-linux.
955
05567e3d
L
9562013-04-24 H.J. Lu <hongjiu.lu@intel.com>
957
958 * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
959 x86_64-*-elf*.
960
99059e56
RM
9612013-04-24 Roland McGrath <mcgrathr@google.com>
962
963 * elf32-arm.c (elf32_arm_allocate_plt_entry): If HTAB->nacl_p,
964 allocate space for PLT header even if IS_IPLT_ENTRY.
965 (arm_nacl_put_plt0): New function, broken out of ...
966 (elf32_arm_finish_dynamic_sections): ... here. Call it.
967 If HTAB->nacl_p, set up the PLT header in .iplt too.
968 (elf32_arm_output_arch_local_syms): If HTAB->nacl_p, write
969 a mapping symbol for the start of .iplt too.
970
544008aa
NC
9712013-04-19 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
972
7b5d8d96
NC
973 * ecoff.c (_bfd_ecoff_sizeof_headers): Cast the return value of
974 BFD_ALIGN to int.
975 * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Remove unused
976 variables.
977 * elf32-v850.c (v850_elf_relax_section): Redefine the type of 'i'
978 to bfd_vma.
979 * vms-alpha.c (evax_bfd_print_etir): Initialize sec_len.
544008aa 980
86f7d49b
AM
9812013-04-22 Alan Modra <amodra@gmail.com>
982
983 PR ld/15382
984 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
985 sh_size or reloc_count adjustment by count.
986
bfeb4a28
AM
9872013-04-22 Alan Modra <amodra@gmail.com>
988
989 * elf64-ppc.c (ppc64_elf_check_relocs): Don't call
990 create_linkage_sections here..
991 (ppc64_elf_init_stub_bfd): ..do so here. Return status.
992 (create_linkage_sections): Move earlier in file.
993 (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test.
994 * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto.
995
2d0a6933
NC
9962013-04-19 Nick Clifton <nickc@redhat.com>
997
998 PR binutils/15356
999 * compress.c (decompress_contents): Always call inflateEnd, even
1000 when another inflation operation fails.
1001
a9ea330b
L
10022013-04-17 H.J. Lu <hongjiu.lu@intel.com>
1003
1004 * elf-ifunc.c: Update copyright year.
1005
a253d456
NC
10062013-04-17 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1007
1008 * coffcode.h: Added a cast to void when a bfd_set_section_*()
1009 macro's return value is ignored.
1010 * elf32-hppa.c: Likewise.
1011 * elf32-tic6x.c: Likewise.
1012 * mach-o.c: Likewise.
1013 * mmo.c: Likewise.
1014 * opncls.c: Likewise.
1015 * peicode.h: Likewise.
1016 * elf32-m32r.c: Check return value of bfd_set_section_*().
1017 * elfnn-ia64.c: Likewise.
1018 * elfxx-mips.c: Likewise.
1019 * vms-alpha.c: Likewise.
1020
1622ff3b
L
10212013-04-15 H.J. Lu <hongjiu.lu@intel.com>
1022
1023 PR ld/15371
1024 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Check
1025 regular reference without non-GOT reference when building
1026 shared library.
1027
a22cd6f6
AM
10282013-04-15 Alan Modra <amodra@gmail.com>
1029
1030 * archive.c (_bfd_archive_close_and_cleanup): Clear parent
1031 cache slot for archives.
1032
ed905580
HPN
10332013-04-14 Hans-Peter Nilsson <hp@bitrange.com>
1034
1035 * mmo.c (mmo_write_chunk): Break out abfd->tdata.mmo_data to new
1036 local variable mmop.
1037
8d6a12ee
NC
10382013-04-09 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1039
1040 PR ld/12494
1041 * bfd/elf32-avr.c: Consider all sections to determine if linker
1042 relaxation can safely delete a ret after a call/jmp
1043
79bb5c23
NC
10442013-04-09 Mingjie Xing <mingjie.xing@gmail.com>
1045
1046 * bfd.c (typedef bfd, Error reporting, Miscellaneous): Add
1047 INODEs.
1048
36192a8d
TT
10492013-04-08 Tom Tromey <tromey@redhat.com>
1050
1051 * som.c (bfd_section_from_som_symbol): No longer static.
1052 * som.h (bfd_section_from_som_symbol): Declare.
1053
198f1157
AM
10542013-04-06 Alan Modra <amodra@gmail.com>
1055
1056 * elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
1057 * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.
1058
c69ba956
NC
10592013-04-05 Nick Clifton <nickc@redhat.com>
1060
1061 * elflink.c (elf_link_add_object_symbols): Revert accidental commit.
1062
ff5ac77b
AM
10632013-04-04 Alan Modra <amodra@gmail.com>
1064
1065 * bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
1066 * bfd-in2.h: Regenerate.
1067 * elflink.c (elf_link_add_object_symbols): Use new error.
1068
41702d50
NC
10692013-04-03 Nick Clifton <nickc@redhat.com>
1070
1071 * elf32-v850.c (v850_elf_is_target_special_symbol): New function.
1072 (bfd_elf32_bfd_is_target_special_symbol): Define.
1073
cb8af559
NC
10742013-04-03 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1075
a22cd6f6
AM
1076 * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
1077 elf64_aarch64_locals to get local GOT reference counts.
cb8af559 1078
1122dc88
DD
10792013-04-02 DJ Delorie <dj@redhat.com>
1080
1081 * elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
1082 (rl78_elf_relax_section): Only fetch the next reloc if there is
1083 one expected.
1084
81fbe831
AM
10852013-03-30 Alan Modra <amodra@gmail.com>
1086
1087 PR ld/15323
1088 * elf-m10300.c (mn10300_elf_check_relocs): Set non_ir_ref for
1089 global symbols referenced by relocs.
1090 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1091 * elf32-bfin.c (bfin_check_relocs): Likewise.
1092 * elf32-cr16.c (cr16_elf_check_relocs): Likewise.
1093 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1094 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1095 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1096 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1097 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1098 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1099 * elf32-i370.c (i370_elf_check_relocs): Likewise.
1100 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1101 * elf32-lm32.c (lm32_elf_check_relocs): Likewise.
1102 * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
1103 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1104 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1105 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1106 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1107 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1108 * elf32-microblaze.c (microblaze_elf_check_relocs): Likewise.
1109 * elf32-moxie.c (moxie_elf_check_relocs): Likewise.
1110 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
1111 * elf32-mt.c (mt_elf_check_relocs): Likewise.
1112 * elf32-nios2.c (nios2_elf32_check_relocs): Likewise.
1113 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
1114 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1115 * elf32-rl78.c (rl78_elf_check_relocs): Likewise.
1116 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1117 * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise.
1118 * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise.
1119 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1120 * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise.
1121 * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise.
1122 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1123 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1124 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1125 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1126 * elf64-aarch64.c (elf64_aarch64_check_relocs): Likewise.
1127 * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
1128 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
1129 * elf64-ia64-vms.c (elf64_ia64_check_relocs): Likewise.
1130 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1131 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1132 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1133 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
1134 * elfnn-ia64.c (elfNN_ia64_check_relocs): Likewise.
1135 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1136 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
1137 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. Don't
1138 test indirect/warning links for NULL.
1139
61315175
L
11402013-03-29 H.J. Lu <hongjiu.lu@intel.com>
1141
1142 PR ld/15323
1143 * elf32-i386.c (elf_i386_check_relocs): Set non_ir_ref if a
81fbe831 1144 symbol is referenced by a non-shared object.
61315175
L
1145 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1146
a6f713fc
KK
11472013-03-28 Joe Seymour <jseymour@codesourcery.com>
1148
1149 * elf32-sh.c (sh_elf_relocate_section): Suppress warnings for
1150 R_SH_REL32 relocations against undefined weak symbols.
1151
19e08130
AM
11522013-03-28 Alan Modra <amodra@gmail.com>
1153
1154 * elf64-ppc.c (struct ppc_dyn_relocs): New.
1155 (ppc64_elf_check_relocs): Separate dynrel counts for local syms
1156 into ifunc and non-ifunc.
1157 (dec_dynrel_count): Pass in sym rather than sym_sec. Handle
1158 separate ifunc/non-ifunc dynrel counts.
1159 (allocate_got): Always use reliplt for ifunc.
1160 (allocate_dynrelocs): Likewise.
1161 (ppc64_elf_size_dynamic_sections): Likewise.
1162 (ppc64_elf_layout_multitoc): Likewise.
1163 (ppc64_elf_relocate_section): Likewise.
1164
f95f8542
AM
11652013-03-28 Alan Modra <amodra@gmail.com>
1166
1167 * elf32-ppc.c (struct ppc_dyn_relocs): New.
1168 (ppc_elf_check_relocs): Separate dynrel counts for local syms
1169 into ifunc and non-ifunc.
1170 (allocate_dynrelocs): Always put ifunc relocs into reliplt.
1171 (ppc_elf_size_dynamic_sections): Likewise.
1172 (ppc_elf_relocate_section): Likewise.
1173
7e612e98
AM
11742013-03-28 Alan Modra <amodra@gmail.com>
1175
1176 * elf-bfd.h (enum elf_reloc_type_class): Add reloc_class_ifunc.
1177 (struct elf_backend_data <elf_backed_reloc_type_class>): Add
1178 bfd_link_info* and asection* params.
1179 (_bfd_elf_reloc_type_class): Likewise.
1180 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1181 * elflink.c (elf_link_sort_cmp2): Sort first on reloc class.
1182 (elf_link_sort_relocs): Update elf_backed_reloc_type_class call.
1183 * elf32-ppc.c (ppc_elf_reloc_type_class): Return reloc_class_ifunc
1184 for any reliplt reloc. Don't return reloc_class_plt for
1185 R_PPC_REL24 and R_PPC_ADDR24.
1186 * elf64-ppc.c (allocate_got): Formatting.
1187 (ppc64_elf_reloc_type_class): Return reloc_class_ifunc for any
1188 reliplt reloc.
1189 * elf-m10300.c, * elf32-arm.c, * elf32-bfin.c, * elf32-cr16.c,
1190 * elf32-cris.c, * elf32-hppa.c, * elf32-i386.c, * elf32-lm32.c,
1191 * elf32-m32r.c, * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c,
1192 * elf32-s390.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilepro.c,
1193 * elf32-vax.c, * elf32-xtensa.c, * elf64-aarch64.c, * elf64-alpha.c,
1194 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-s390.c, * elf64-sparc.c,
1195 * elf64-x86-64.c, * elfnn-ia64.c, * elfxx-tilegx.c, * elfxx-tilegx.h:
1196 Add extra params to the various reloc_type_class functions.
1197
0bed072f
AM
11982013-03-27 Alan Modra <amodra@gmail.com>
1199
1200 * elf32-ppc.c (ppc_elf_check_relocs): Set PLT_IFUNC in local got
1201 masks for all local ifunc syms.
1202 (allocate_dynrelocs): Don't use htab->relgot for ifunc.
1203 (ppc_elf_size_dynamic_sections): Likewise.
1204 (ppc_elf_relocate_section): Likewise.
1205
6f820c85
WN
12062013-03-27 Will Newton <will.newton@linaro.org>
1207
1208 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
1209 dynamic reloc for symbols with dynindx == -1.
1210 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
1211 dynamic reloc for symbols with dynindx == -1.
1212
31943882
WN
12132013-03-27 Will Newton <will.newton@linaro.org>
1214
1215 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
1216 dynamic reloc for non-default visibility undefined weaks.
1217 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
1218 dynamic reloc for non-default visibility undefined weaks.
1219
ffd65175
AM
12202013-03-26 Alan Modra <amodra@gmail.com>
1221
1222 * elflink.c (_bfd_elf_add_default_symbol): Preserve section
1223 over _bfd_elf_merge_symbol calls.
1224
3a81e825
AM
12252013-03-26 Alan Modra <amodra@gmail.com>
1226
1227 * elflink.c (elf_link_add_object_symbols): Add assertion for
1228 common override alignment check code. Formatting.
1229
4f3fedcf
AM
12302013-03-25 Alan Modra <amodra@gmail.com>
1231
1232 * elflink.c (_bfd_elf_merge_symbol): Set old_alignment for
1233 usual common symbols as well as for dynamic. Add poldbfd param.
1234 Save old bfd. Adjust callers.
1235 (_bfd_elf_add_default_symbol): Add poldbfd param. Pass "section"
1236 and "value" by value, not pointer. Adjust caller.
1237 (elf_link_add_object_symbols): Combine undef_bfd and old_bfd vars.
1238 Delete code to set same. Use old_bfd and old_alignment from
1239 _bfd_elf_merge_symbol instead. Add default symbol before
1240 alignment and size checks. Wrap overlong lines.
1241
e3c9d234
AM
12422013-03-25 Alan Modra <amodra@gmail.com>
1243
1244 * elflink.c (_bfd_elf_add_default_symbol): Delete "override" param.
1245 (elf_link_add_object_symbols): Don't call _bfd_elf_add_default_symbol
1246 when override is true.
1247
6c9b78e6
AM
12482013-03-25 Alan Modra <amodra@gmail.com>
1249
1250 * elflink.c (_bfd_elf_merge_symbol): Use local var holding value
1251 of *sym_hash.
1252
191c0c42
AM
12532013-03-25 Alan Modra <amodra@gmail.com>
1254
1255 * elflink.c (_bfd_elf_merge_symbol): Don't discard TLS symbols here.
1256 Wrap long lines.
1257 (elf_link_add_object_symbols): Discard TLS symbols for --just-syms
1258 early in symbol loop.
1259
5d13b3b3
AM
12602013-03-25 Alan Modra <amodra@gmail.com>
1261
1262 * elf-bfd.h (struct elf_backend_data <merge_symbol>): Update proto.
1263 (_bfd_elf_init_reloc_shdr): Delete.
1264 * elf.c (_bfd_elf_init_reloc_shdr): Make static.
1265 * elf64-x86-64.c (elf_x86_64_merge_symbol): Trim parameters to
1266 just what is needed.
1267 * elflink.c (_bfd_elf_merge_symbol): Update bed->merge_symbol call.
1268
8a56bd02
AM
12692013-03-23 Alan Modra <amodra@gmail.com>
1270
1271 * elf-bfd.h (_bfd_elf_merge_symbol): Delete declaration.
1272 * elflink.c (_bfd_elf_merge_symbol): Make static.
1273 * elf32-sh-symbian.c (sh_symbian_relocate_section): Don't call
1274 _bfd_elf_merge_symbol, call _bfd_generic_link_add_one_symbol.
1275
96f29d96
AM
12762013-03-23 Alan Modra <amodra@gmail.com>
1277
1278 PR ld/15270
1279 * elflink.c (elf_link_add_object_symbols): Don't set def_regular
1280 or ref_regular for BFD_PLUGIN owned syms, or have them affect
1281 def_dynamic/ref_dynamic.
1282 (_bfd_elf_fix_symbol_flags): Don't set def_regular for BFD_PLUGIN
1283 owned syms.
1284
209be8d2
DM
12852013-03-22 David S. Miller <davem@davemloft.net>
1286
1287 * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of
1288 hwcaps attribute.
1289
5c0df484
NC
12902013-03-22 Achille Fouilleul <achille.fouilleul+binutils@gadz.org>
1291
1292 PR ld/14902
1293 * elf32-h8300.c (elf32_h8_relax_delete_bytes): Fix off by one
1294 errors adjusting relocs and symbols.
1295
81f5558e
NC
12962013-03-21 Michael Schewe <michael.schewe@gmx.net>
1297
1298 * elf32-h8300 (h8_relax_section): Add new relaxation of mov
1299 @(disp:32,ERx) to mov @(disp:16,ERx).
1300 (R_H8_DISP32A16): New reloc.
1301 Comments added and corrected.
1302 * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc.
1303 * bfd-in2.h: Regenerate.
1304 * libbfd.h: Regenerate.
1305
ce63b7b3
KT
13062013-03-21 Kai Tietz <ktietz@redhat.com>
1307
1308 * coffgen.c (coff_real_object_p): Make global.
1309 * peicode.h (coff_real_object_p): Add prototype.
1310 (FILHDR): Defined for COFF_IMAGE_WITH_PE as
1311 external_PEI_IMAGE_hdr structure.
1312 (coff_swap_filehdr_in): Handle variable header-size.
1313 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount
1314 of directory-entiries as specified in pe-header.
1315
088ca6c1
NC
13162013-03-21 Nick Clifton <nickc@redhat.com>
1317
1318 PR sim/15286
1319 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale,
1320 iWMMXt and iWMMXt2 processors from attributes.
1321
8877b5e5
AM
13222013-03-20 Alan Modra <amodra@gmail.com>
1323
1324 * elflink.c (_bfd_elf_make_dynamic_reloc_section): Override
1325 sh_type according to is_rela.
1326
ffa9430d
AM
13272013-03-18 Alan Modra <amodra@gmail.com>
1328
1329 PR ld/12549
1330 * elflink.c (elf_link_add_object_symbols): Exclude weak refs when
1331 considering whether an --as-needed library is needed.
1332
cc0ea93c
TT
13332013-03-14 Tom Tromey <tromey@redhat.com>
1334
1335 * opncls.c (bfd_get_debug_link_info): Rename from
1336 get_debug_link_info. Export. Update comment.
1337 (find_separate_debug_file): Update.
1338 * bfd-in2.h: Rebuild.
1339
59c108f7
NC
13402013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1341
a22cd6f6 1342 * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section
59c108f7 1343 support.
a22cd6f6 1344 (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related
59c108f7
NC
1345 relocs.
1346
abb3f6cc
NC
13472013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
1348
1349 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
1350 * elf.c (elfcore_write_s390_tdb): New function.
1351 (elfcore_write_register_note): Call it.
1352 (elfcore_grok_s390_tdb): New function.
1353 (elfcore_grok_note): Call it.
1354
af924177
MR
13552013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
1356
1357 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
1358
48385e38
CV
13592013-03-05 Corinna Vinschen <vinschen@redhat.com>
1360
1361 * config.bfd: Add x86_64-*-cygwin to list of supported targets.
1362
f75e0e33
AM
13632013-03-04 Alan Modra <amodra@gmail.com>
1364
1365 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust
1366 non-zero addends when relocatable, rather than addends >= 32768.
1367 Always zero "addend" before applying relocation.
1368
17e3916e
NC
13692013-03-04 Nick Clifton <nickc@redhat.com>
1370
1371 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation of
1372 file pointer offsets for thin archives.
1373
3064e1ff
JB
13742013-02-28 Nathan Sidwell <nathan@codesourcery.com>
1375
1376 * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call
1377 elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link.
1378
4107ae22
DD
13792013-02-27 DJ Delorie <dj@redhat.com>
1380
1381 * reloc.c (BFD_RELOC_RL78_CODE): Add.
1382 * libbfd.h: Regenerate.
1383 * bfd-in2.h: Regenerate.
1384 * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
1385 references in compuated relocs.
1386
730fbaf8
AG
13872013-02-26 Anthony Green <green@moxielogic.com>
1388
1389 * config.bfd: Extend moxie-rtems target triplet name support.
1390
35399224
L
13912013-02-21 H.J. Lu <hongjiu.lu@intel.com>
1392
1393 PR ld/15167
1394 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
1395 unique_global only for definition.
1396 * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
1397 here.
1398 (elf_link_add_object_symbols): Set unique_global only
1399 for definition.
1400
c0355132
AM
14012013-02-21 Alan Modra <amodra@gmail.com>
1402
1403 * elf-bfd.h (struct elf_build_id): Extracted from..
1404 (struct elf_build_id_info): ..here. Delete.
1405 (struct output_elf_obj_tdata): New, extracted from..
1406 (struct elf_obj_tdata): ..here. Reorganize for better packing.
1407 Add "o" field.
1408 (elf_program_header_size): Reference tdata->o.
1409 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
1410 elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
1411 elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
1412 * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
1413 when opening bfd in any mode that might write.
1414 (_bfd_elf_write_object_contents): Use build_id field in
1415 output_elf_obj_tdata.
1416 (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
1417 (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
1418
228e534f
AM
14192013-02-21 Alan Modra <amodra@gmail.com>
1420
1421 * elf-bfd.h (struct core_elf_obj_tdata): New.
1422 (struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
1423 core_program, and core_command. Add "core".
1424 * elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
1425 Update all refs to tdata core fields.
1426 * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
1427 * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
1428 * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
1429 * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
1430 * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
1431 * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
1432 * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
1433 to tdata core fields.
1434
12bd6957
AM
14352013-02-21 Alan Modra <amodra@gmail.com>
1436
1437 * elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map.
1438 Delete num_locals and num_globals.
1439 (elf_num_locals, elf_num_globals): Don't define.
1440 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
1441 elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define.
1442 * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c,
1443 * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c,
1444 * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c,
1445 * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata
1446 accessor macros.
1447 * elf.c (elf_map_symbols): Add pnum_locals param. Return
1448 number of locals syms via new param.
1449 (swap_out_syms): Adjust to suit elf_map_symbols change.
1450
cbf8d970
MR
14512013-02-19 Maciej W. Rozycki <macro@codesourcery.com>
1452
1453 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clear
1454 STO_MICROMIPS annotation.
1455
30e8ee25
AM
14562013-02-19 Alan Modra <amodra@gmail.com>
1457
1458 * configure.in: Bump version to 2.23.52.
1459 * elf-bfd.h (struct elf_build_id_info): New.
1460 (struct elf_obj_tdata): Delete after_write_object_contents,
1461 after_write_object_contents_info and build_id_size. Make build_id
1462 a pointer to struct elf_build_id_info.
1463 * elf.c (_bfd_elf_write_object_contents): Style. Update
1464 after_write_ibject_contents invocation.
1465 (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't
1466 allow zero size notes.
1467 * configure: Regenerate.
1468
5b175e56
MR
14692013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
1470
1471 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
1472 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
1473 (micromips_elf64_howto_table_rela): Likewise.
1474 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
1475 * elfn32-mips.c (elf_micromips_howto_table_rel): Add
1476 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
1477 (elf_micromips_howto_table_rela): Likewise.
1478 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
1479
e8faf7d1
MR
14802013-02-18 Paul Brook <paul@codesourcery.com>
1481
1482 * elfxx-mips.c (MICROMIPS_P): New macro.
1483 (_bfd_mips_elf_symbol_processing): Use it.
1484
c164a95d
MR
14852013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
1486
1487 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
1488 comment on _PROCEDURE_LINKAGE_TABLE_ creation.
1489
d45f8bda
AM
14902013-02-18 Alan Modra <amodra@gmail.com>
1491
1492 PR ld/12549
1493 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete.
1494 (_bfd_elf_strtab_clear_all_refs): Declare.
1495 (_bfd_elf_strtab_resize): Declare.
1496 * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete.
1497 (_bfd_elf_strtab_clear_all_refs): New function.
1498 (_bfd_elf_strtab_resize): Likewise.
1499 * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
1500
698600e4
AM
15012013-02-18 Alan Modra <amodra@gmail.com>
1502
1503 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,
1504 local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section,
1505 and elf_text_section to..
1506 * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs.
1507 * elf64-alpha.c (struct mips_elf_find_line): Rename to..
1508 (struct alpha_elf_find_line): ..this.
1509 (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
1510
3d5bef4c
L
15112013-02-16 H.J. Lu <hongjiu.lu@intel.com>
1512
1513 PR ld/15146
1514 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
1515 for references from the dummy bfd.
1516
313ed4a9
L
15172013-02-16 H.J. Lu <hongjiu.lu@intel.com>
1518
1519 PR ld/15149
1520 * elflink.c (elf_link_add_object_symbols): Also track weak
1521 references.
1522
989fbeff
L
15232013-02-15 H.J. Lu <hongjiu.lu@intel.com>
1524
1525 PR binutils/15151
1526 * archive.c (_bfd_find_nested_archive): Don't allow a nested
1527 archive pointing to itself.
1528 (_bfd_get_elt_at_filepos): Revert the last 2 changes.
1529
a043396b
NC
15302013-02-15 Nick Clifton <nickc@redhat.com>
1531
1532 PR binutils/15140
1533 * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop
1534 accessing a corrupt nested archive.
1535
13db6b44
RS
15362013-02-13 Richard Sandiford <rdsandiford@googlemail.com>
1537
1538 * elfxx-mips.c (mips_got_page_ref): New structure.
1539 (mips_got_page_entry): Use a section rather than a (bfd, symndx)
1540 pair to represent the anchor point.
1541 (mips_got_info): Add a got_page_refs field.
1542 (mips_elf_link_hash_table): Add a sym_cache field.
1543 (mips_got_page_ref_hash, mips_got_page_ref_eq): New functions.
1544 (mips_got_page_entry_hash, mips_got_page_entry_eq): Update for
1545 new anchor representation.
1546 (mips_elf_create_got_info): Create got_page_refs rather than
1547 got_page_entries.
1548 (mips_elf_record_got_page_ref): New function.
1549 (mips_elf_pages_for_range): Move further down file.
1550 (mips_elf_record_got_page_entry): Likewise. Take a got as argument.
1551 Use a section rather than a (bfd, symndx) pair to represent the
1552 anchor point.
1553 (mips_elf_resolve_got_page_ref): New function.
1554 (mips_elf_resolve_final_got_entries): Use it to populate
1555 got_page_entries.
1556 (_bfd_mips_elf_check_relocs): Call mips_elf_record_got_page_ref
1557 rather than mips_elf_record_got_page_entry. Only nullify h
1558 afterwards.
1559 (mips_elf_lay_out_got): Call mips_elf_resolve_final_got_entries
1560 earlier.
1561
57093f5e
RS
15622013-02-12 Richard Sandiford <rdsandiford@googlemail.com>
1563
1564 * elfxx-mips.c (mips_elf_lay_out_got): Count VxWorks GOT relocs
1565 in g->relocs.
1566
9c3f90c4
AM
15672013-02-12 Alan Modra <amodra@gmail.com>
1568
1569 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Provide
1570 suitable definition when using generic linker hash table.
1571
476366af
RS
15722013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1573
1574 * elfxx-mips.c (mips_elf_count_got_entries): Delete.
1575 (mips_elf_check_recreate_got, mips_elf_recreate_got): Take a
1576 mips_elf_traverse_got_arg. Count GOT entries.
1577 (mips_elf_resolve_final_got_entries): Take the bfd_link_info
1578 as argument. Update after above changes.
1579 (mips_elf_merge_got, mips_elf_lay_out_got): Don't call
1580 mips_elf_count_got_entries. Update the calls to
1581 mips_elf_resolve_final_got_entries.
1582
9ab066b4
RS
15832013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1584
1585 * elfxx-mips.c (mips_got_tls_type): New enum.
1586 (mips_got_entry): Add tls_initialized.
1587 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
1588 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
1589 GOT_TLS_TYPE masks.
1590 (mips_elf_reloc_tls_type, mips_tls_got_entries)
1591 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
1592 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
1593 than GOT_NORMAL.
1594 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
1595 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
1596 tls_initialized rather than GOT_TLS_DONE.
1597 (mips_tls_got_index): Delete.
1598 (mips_elf_local_got_index, mips_elf_global_got_index): Use
1599 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
1600 (mips_elf_record_got_entry): Initialize tls_initialized.
1601
6c42ddb9
RS
16022013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1603
1604 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
1605 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
1606 tls_ie_got_offset and tls_gd_got_offset.
1607 (mips_elf_link_hash_newfunc): Remove initialization.
1608 (mips_elf_create_got_info): Likewise.
1609 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
1610 (mips_tls_single_got_index): Delete.
1611 (mips_elf_local_got_index): Always use the GOT entry to track
1612 GOT indices.
1613 (mips_elf_global_got_index): Likewise.
1614 (mips_elf_create_local_got_entry): Assert that TLS entries have
1615 already been allocated.
1616 (mips_elf_record_global_got_symbol): Don't initialize
1617 tls_ie_type or tls_gd_type.
1618 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
1619 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
1620 entry.
1621 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
1622 the GOT entries.
1623 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
1624 have been allocated.
1625 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
1626 tls_ie_type and tls_gd_type.
1627
ebc53538
RS
16282013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1629
1630 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
1631 aliasing violation. Check for htab allocation failures.
1632
13fbec83
RS
16332013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1634
1635 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
1636 split out from...
1637 (mips_elf_global_got_index): ...here. Reorder arguments so that
1638 the output bfd and info come first.
1639 (mips_elf_calculate_relocation): Update the call to
1640 mips_elf_global_got_index accordingly.
1641 (_bfd_mips_elf_finish_dynamic_symbol): Use
1642 mips_elf_primary_global_got_index rather than
1643 mips_elf_global_got_index.
1644 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
1645
3dff0dd1
RS
16462013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1647
1648 * elfxx-mips.c (mips_got_entry): Update comments.
1649 (mips_elf_multi_got_entry_eq): Rename to...
1650 (mips_elf_got_entry_eq): ...this, deleting the old definition.
1651 (mips_elf_create_got_info): Remove master_got_p argument.
1652 Always use mips_elf_got_entry_eq.
1653 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
1654 Update calls accordingly.
1655
d7206569
RS
16562013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1657
1658 * elfxx-mips.c (mips_got_info): Remove bfd2got.
1659 (mips_elf_bfd2got_hash): Delete.
1660 (mips_elf_got_per_bfd_arg): Remove bfd2got.
1661 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
1662 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
1663 g->next to test for the multigot case. Use mips_elf_bfd_got rather
1664 than mips_elf_got_for_ibfd.
1665 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
1666 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
1667 (mips_elf_make_got_per_bfd): Replace with...
1668 (mips_elf_add_got_entry): ...this new function.
1669 (mips_elf_make_got_pages_per_bfd): Replace with...
1670 (mips_elf_add_got_page_entry): ...this new function.
1671 (mips_elf_merge_got_with): Replace bfd2got argument with separate
1672 bfd and GOT arguments. Use mips_elf_add_got_entry and
1673 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
1674 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
1675 to set the BFD's GOT and free the old table.
1676 (mips_elf_merge_got): Replace bfd2got argument with separate
1677 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
1678 Use mips_elf_count_got_entries to count the number of entries in
1679 each GOT. Update the calls to mips_elf_merge_got_with.
1680 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
1681 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
1682 (mips_elf_multi_got): Don't create the bfd2got hash table.
1683 Replace hash table traversal with a walk over the input bfds,
1684 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
1685 to set the output bfd's GOT.
1686 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
1687 bfds use the master GOT in the single-GOT case.
1688 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
1689 rather than mips_elf_got_for_ibfd.
1690
ee227692
RS
16912013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1692
1693 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
1694 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
1695 (mips_elf_record_global_got_symbol): Update the hash entry before
1696 adding the mips_got_entry. Use mips_elf_record_got_entry to do
1697 the latter.
1698 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
1699 (mips_elf_record_got_page_entry): Record the entry in both the
1700 master and bfd GOTs.
1701
72e7511a
RS
17022013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1703
1704 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
1705 create another one if necessary.
1706 (mips_elf_set_gotidx): New function.
1707 (mips_elf_set_global_gotidx): Use it.
1708 (mips_elf_initialize_tls_index): Likewise. Take a
1709 mips_elf_traverse_got_arg as argument.
1710 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
1711 (mips_elf_multi_got): Likewise. Cope with error returns from
1712 mips_elf_set_global_gotidx.
1713
ab361d49
RS
17142013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1715
1716 * elfxx-mips.c (mips_got_info): Add relocs field.
1717 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
1718 with...
1719 (mips_elf_traverse_got_arg): ...this new structure.
1720 (mips_elf_count_local_tls_relocs): Delete.
1721 (mips_elf_count_global_tls_relocs): Likewise.
1722 (mips_elf_count_got_entry): New function.
1723 (mips_elf_count_local_got_entries): Likewise.
1724 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
1725 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
1726 (mips_elf_record_local_got_symbol): Don't count got entries here.
1727 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
1728 (mips_elf_set_global_got_offset): Split into...
1729 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
1730 new functions. Take a mips_elf_traverse_got_arg rather than a
1731 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
1732 Use g->relocs to record the number of relocs needed for global GOT
1733 entries.
1734 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
1735 mips_elf_set_global_got_offset_arg. Use the relocs field to count
1736 relocations. Update for above function split.
1737 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
1738 to count both the number of GOT entries and the number of TLS
1739 relocs required by local entries. Likewise
1740 mips_elf_count_global_tls_entries and global entries.
1741 Remove uses of mips_elf_count_local_tls_relocs and
1742 mips_elf_count_global_tls_relocs.
1743
e641e783
RS
17442013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1745
1746 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
1747 to say that each structure represents only one type of TLS reference.
1748 (GOT_TLS_TYPE): New define.
1749 (mips_elf_link_hash_entry): Temporarily split tls_type and
1750 tls_got_offset into two variables each.
1751 (mips_elf_link_hash_newfunc): Update accordingly.
1752 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
1753 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
1754 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
1755 (mips_tls_got_relocs): Use a switch statement.
1756 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
1757 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
1758 local "offset" variable.
1759 (mips_tls_got_index): Remove r_type argument and assert. Remove
1760 code that handled entries with two TLS types; always use the
1761 original got_index instead.
1762 (mips_tls_single_got_index): New function.
1763 (mips_elf_local_got_index): Use entry->tls_type to check for
1764 TLS entries. Use mips_tls_single_got_index. Update call to
1765 mips_tls_got_index.
1766 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
1767 Use p->tls_type to check for TLS entries. Update call to
1768 mips_tls_got_index. Use mips_tls_single_got_index.
1769 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
1770 Use entry.tls_type to check for TLS entries.
1771 (mips_elf_record_global_got_symbol): Replace tls_flag argument
1772 with r_type argument. Use mips_elf_reloc_tls_type.
1773 Set up the new hash entry fields.
1774 (mips_elf_record_local_got_symbol): Replace tls_flag argument
1775 with r_type argument. Use mips_elf_reloc_tls_type and
1776 mips_tls_got_entries. Remove code that handled entries
1777 with multiple TLS types.
1778 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
1779 (mips_elf_initialize_tls_index): Handle new hash entry fields.
1780 Use equality rather than masks when checking for specific TLS types.
1781 Use mips_tls_got_entries. Remove code that handled entries
1782 with multiple TLS types.
1783 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
1784 testing the hash table entry.
1785 (_bfd_mips_elf_check_relocs): Update calls to
1786 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
1787 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
1788 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
1789
d9bf376d
RS
17902013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1791
1792 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
1793 (mips_elf_got_entry_hash): ...this, deleting the old version.
1794 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
1795 both types of GOT.
1796
5334aa52
RS
17972013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1798
1799 * elfxx-mips.c (mips_elf_create_got_info): New function.
1800 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
1801 (mips_elf_create_got_section): Likewise.
1802
946c668d
RS
18032013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1804
1805 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
1806 gotidx to -1.
1807
59b08994
RS
18082013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1809
1810 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
1811
d222d210
RS
18122013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1813
1814 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
1815 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
1816
1fd20d70
RS
18172013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1818
1819 * elfxx-mips.c (mips_elf_count_global_tls_entries)
1820 (mips_elf_count_global_tls_relocs): Don't count indirect or
1821 warning symbols.
1822 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
1823 number of TLS entries were allocated.
1824
7d94b319
RS
18252013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1826
1827 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
1828
17214937
RS
18292013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1830
1831 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
1832 if there are TLS relocations.
1833
9efeb38d
RS
18342013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1835
1836 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
1837 (mips_elf_resolve_final_got_entries): Remove bogus comment.
1838
9c3f90c4
AM
18392013-02-11 Alan Modra <amodra@gmail.com>
1840
1841 * elfcode.h (elf_checksum_contents): Free contents.
1842 * elf-bfd.h (_bfd_elf_link_hash_table_free): Declare.
1843 * elflink.c (_bfd_elf_link_hash_table_free): New function.
1844 (elf_final_link_free): New function, extracted from..
1845 (bfd_elf_final_link): ..here. Always call
1846 _bfd_elf_write_section_eh_frame_hdr.
1847 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Default to
1848 _bfd_elf_link_hash_table_free.
1849 * libbfd-in.h (_bfd_merge_sections_free): Declare.
1850 * libbfd.h: Regenerate.
1851 * merge.c (_bfd_merge_sections_free): New function.
1852 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Free
1853 hdr_info->array.
1854 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Call
1855 _bfd_elf_link_hash_table_free.
1856 * elf32-arm.c (elf32_arm_link_hash_table_free): Likewise.
1857 * elf32-avr.c (elf32_avr_link_hash_table_free): Likewise.
1858 * elf32-hppa.c (elf32_hppa_link_hash_table_free): Likewise.
1859 * elf32-i386.c (elf_i386_link_hash_table_free): Likewise.
1860 * elf32-m68hc1x.c (m68hc11_elf_hash_table_free): Likewise.
1861 * elf32-m68k.c (elf_m68k_link_hash_table_free): Likewise.
1862 * elf32-metag.c (elf_metag_link_hash_table_free): Likewise.
1863 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_free): Likewise.
1864 * elf64-aarch64.c (elf64_aarch64_link_hash_table_free): Likewise.
1865 * elf64-ia64-vms.c (elf64_ia64_hash_table_free): Likewise.
1866 * elf64-ppc.c (ppc64_elf_link_hash_table_free): Likewise.
1867 * elf64-x86-64.c (elf_x86_64_link_hash_table_free): Likewise.
1868 * elfnn-ia64.c (elfNN_ia64_hash_table_free): Likewise.
1869 * elf32-cr16.c (elf32_cr16_link_hash_table_free): Delete.
1870 (bfd_elf32_bfd_link_hash_table_free): Don't define.
1871 * elf32-tic6x.c (elf32_tic6x_link_hash_table_free): Delete.
1872 (bfd_elf32_bfd_link_hash_table_free): Dont' define.
1873
7bf52ea2
AM
18742013-02-10 Alan Modra <amodra@gmail.com>
1875
1876 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
1877 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1878 * m68klinux.c (linux_link_hash_table_create): Likewise.
1879 * sparclinux.c (linux_link_hash_table_create): Likewise.
1880 * sunos.c (sunos_link_hash_table_create): Likewise.
1881 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1882 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1883 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
1884 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
1885 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
1886 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1887 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1888 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1889 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
1890 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
1891 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
1892 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1893 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
1894 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
1895 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1896 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
1897 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
1898 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
1899 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
1900 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
1901 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
1902 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
1903 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1904 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1905 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
1906 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1907 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
1908 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
1909
22cdc249
AM
19102013-02-10 Alan Modra <amodra@gmail.com>
1911
1912 * i386linux.c (linux_link_hash_table_create): Allocate table
1913 with bfd_zmalloc, not bfd_alloc.
1914 * pdp11.c (link_hash_table_create): Allocate table with
1915 bfd_malloc, not bfd_alloc.
1916 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
1917 with bfd_zmalloc, not bfd_zalloc.
1918 (bfin_link_hash_table_create): Likewise.
1919 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
1920 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
1921
0e5de31a
AM
19222013-02-10 Alan Modra <amodra@gmail.com>
1923
1924 PR ld/15113
1925 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
1926
ad1fc92a
NC
19272013-02-08 Markos Chandras <markos.chandras@imgtec.com>
1928
1929 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
1930 sections.
34c67f14
NC
1931 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
1932 symbol.
ad1fc92a 1933
170a8295
YZ
19342013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
1935
1936 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
1937 288 to 272.
1938
619a703e
AM
19392013-02-08 Alan Modra <amodra@gmail.com>
1940
1941 PR binutils/15106
1942 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
1943 * elf.c (elf_find_function): Revert last change. Use new
1944 tdata field rather than static vars for cache.
1945
02acbe22
L
19462013-02-07 H.J. Lu <hongjiu.lu@intel.com>
1947
1948 PR ld/15107
1949 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
1950 symbol is defined in regular object.
1951
1965d5f2
AM
19522013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
1953
1954 PR binutils/15106
1955 * elf.c (elf_find_function): Don't cache if symbols change.
1956
dafbc74d
AM
19572013-02-07 Alan Modra <amodra@gmail.com>
1958
1959 PR binutils/14873
1960 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
1961 copy attributes from or to non-ELF.
1962
20e52bd2
L
19632013-02-06 H.J. Lu <hongjiu.lu@intel.com>
1964
1965 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
1966 for non-zero TLS symbol.
1967 (elf_i386_relocate_section): Don't resolve size relocation against
1968 non-zero TLS symbol.
1969 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
1970 pc_count for non-zero TLS symbol.
1971 (elf_x86_64_relocate_section): Don't resolve size relocation
1972 against non-zero TLS symbol.
1973
36591ba1 19742013-02-06 Sandra Loosemore <sandra@codesourcery.com>
20e52bd2 1975 Andrew Jenner <andrew@codesourcery.com>
36591ba1
SL
1976
1977 Based on patches from Altera Corporation.
1978
1979 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
1980 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
1981 (BFD_BACKENDS): Add elf32-nios2.lo.
1982 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
1983 * Makefile.in: Regenerated.
1984 * configure.in: Add entries for bfd_elf32_bignios2_vec and
1985 bfd_elf32_littlenios2_vec.
1986 * configure: Regenerated.
1987 * config.bfd: Add cases for nios2.
1988 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
1989 (bfd_mach_nios2): Define.
1990 (bfd_nios2_arch): Declare.
1991 (bfd_archures_list): Add bfd_nios2_arch.
1992 * targets.c (bfd_elf32_bignios2_vec): Declare.
1993 (bfd_elf32_littlenios2_vec): Declare.
1994 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
1995 bfd_elf32_littlenios2_vec.
1996 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
1997 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
1998 * bfd-in2.h: Regenerated.
1999 * libbfd.h: Regenerated.
2000 * cpu-nios2.c: New file.
2001 * elf32-nios2.c: New file.
2002
ca6b5f82
AM
20032013-02-06 Alan Modra <amodra@gmail.com>
2004
2005 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
2006 stubs in stub_bfd.
2007
37ba9f93
AM
20082013-02-06 Alan Modra <amodra@gmail.com>
2009
2010 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
2011 * Makefile.in: Regenerate.
2012
70a38d42
SDJ
20132013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
2014 Pedro Alves <palves@redhat.com>
2015
2016 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
2017 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
2018 declaration.
2019 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
2020 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
2021 * elf-linux-psinfo.h: New file.
2022 * elf.c: Include elf-linux-psinfo.h.
2023 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
2024 New functions.
2025 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
2026 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
2027 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
2028 (elfcore_write_ppc_linux_prpsinfo32): New function.
2029
5ee43bc4
TG
20302013-02-04 Tristan Gingold <gingold@adacore.com>
2031
2032 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
2033 start address.
2034
0cadb185
AM
20352013-02-04 Alan Modra <amodra@gmail.com>
2036
2037 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
2038 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
2039 * Makefile.in: Regenerate.
2040 * po/SRC-POTFILES.in: Regenerate.
2041
5d42dfb5
AM
20422013-02-04 Alan Modra <amodra@gmail.com>
2043
2044 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
2045 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
2046
c57da1a7
AM
20472013-02-01 Alan Modra <amodra@gmail.com>
2048
2049 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
2050 clears def_regular.
2051
c0fd7846
TG
20522013-01-31 Tristan Gingold <gingold@adacore.com>
2053
2054 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
2055 earlier. Fix status checking of bfd_mach_o_scan_start_address.
2056 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
2057
b45b6908
AM
20582013-01-31 Alan Modra <amodra@gmail.com>
2059 David S. Miller <davem@davemloft.net>
2060
2061 PR ld/15056
2062 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
2063 references to __tls_get_addr.
2064 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
2065 vtinherit and vtentry reloc handling too.
2066 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
2067
bcaa2f82
AM
20682013-01-31 Alan Modra <amodra@gmail.com>
2069
2070 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
2071
22aa0c7e
AM
20722013-01-31 Alan Modra <amodra@gmail.com>
2073
2074 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
2075
bc30df16
AM
20762013-01-28 Alan Modra <amodra@gmail.com>
2077
2078 * elf64-ppc.c: Use %T to print symbols names and remove redundant
2079 "relocation" in error messages throughout file.
2080 (ppc64_elf_relocate_section): Remove sibling call error message,
2081 replace with "call lacks nop". Specially report errors for
2082 branches to function entry points via OPD lookup and branches
2083 to stubs. Remove NULL symbol handling now done by %T.
2084
89d7b8aa
AM
20852013-01-28 Alan Modra <amodra@gmail.com>
2086
2087 * archive.c (bfd_generic_archive_p): Return target and keep
2088 ardata on partial matches.
2089 * format.c (bfd_check_format_matches): Adjust for above
2090 change. Remove bfd_error_file_ambiguously_recognized dead
2091 code.
2092
c9ba0c87
AM
20932013-01-26 Alan Modra <amodra@gmail.com>
2094
2095 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
2096 bfd_preserve_finish): Move to..
2097 * format.c: ..here, splitting out..
2098 (bfd_reinit): ..this. New function.
2099 (bfd_check_format_matches): Use bfd_preserve_save/restore to
2100 keep bfd state for a match.
2101 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
2102 * elfcore.h (elf_core_file_p): Likewise.
2103 * mach-o.c (bfd_mach_o_header_p): Likewise.
2104 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
2105 * xsym.c (bfd_sym_object_p): Likewise.
2106 * mmo.c (mmo_scan): Clear abfd->symcount.
2107 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
2108 * section.c (bfd_section_list_clear): Clear section_htab.count.
2109 * bfd-in2.h: Regenerate.
2110
d79dcc73
NC
21112013-01-25 Michael Schewe <michael.schewe@gmx.net>
2112
2113 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
2114 second reloc, make sure that the reloc potentially exists first.
2115
78c8d46c
NC
21162013-01-24 Nick Clifton <nickc@redhat.com>
2117
2118 * archures.c: Add bfd_mach_v850e3v5.
2119 * bfd-in2.h: Regenerate.
2120 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
2121 * cpu-v850_rh850.c: Likewise.
2122 * elf32-v850.c: Add support for v850e3v5 architecture.
2123
1a18f0ae
NC
21242013-01-23 Markos Chandras <markos.chandras@imgtec.com>
2125
2126 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
2127
f65a9e53
AM
21282013-01-23 Leif Ekblad <leif@rdos.net>
2129
2130 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
2131
3bea1fcb
L
21322013-01-18 H.J. Lu <hongjiu.lu@intel.com>
2133
2134 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
2135 non-zero TLS symbol.
2136 (elf_i386_relocate_section): Resolve size relocation against
2137 non-zero TLS symbol.
2138 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
2139 for non-zero TLS symbol.
2140 (elf_x86_64_relocate_section): Resolve size relocation against
2141 non-zero TLS symbol.
2142
b1b00fcc
MF
21432013-01-18 Mike Frysinger <vapier@gentoo.org>
2144
2145 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
2146 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
2147 true.
2148
06a6a421
L
21492013-01-17 H.J. Lu <hongjiu.lu@intel.com>
2150
2151 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
2152 PC-relative relocation.
2153 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
2154 as PC-relative relocation.
2155
6a3e1bae
L
21562013-01-16 H.J. Lu <hongjiu.lu@intel.com>
2157
2158 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
2159 check.
2160 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
2161
2162 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
2163 and R_X86_64_SIZE64 check.
2164 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
2165 nor R_X86_64_SIZE64.
2166
1788fc08
L
21672013-01-16 H.J. Lu <hongjiu.lu@intel.com>
2168
2169 * bfd-in2.h: Regenerated.
2170 * libbfd.h: Likewise.
2171
2172 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
2173 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
2174 (elf_i386_check_relocs): Handle R_386_SIZE32.
2175 (elf_i386_gc_sweep_hook): Likewise.
2176 (elf_i386_relocate_section): Likewise.
2177
2178 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
2179 and R_X86_64_SIZE64 entries.
2180 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
2181 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
2182 (elf_x86_64_reloc_name_lookup): Likewise.
2183 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
2184 R_X86_64_SIZE64.
2185 (elf_x86_64_gc_sweep_hook): Likewise.
2186 (elf_x86_64_relocate_section): Likewise.
2187
2188 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
2189 BFD_RELOC_SIZE64.
2190
1e536451
L
21912013-01-15 H.J. Lu <hongjiu.lu@intel.com>
2192
2193 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
2194 with R_X86_64_RELATIVE64.
2195
77bf820f
NC
21962013-01-15 Nick Clifton <nickc@redhat.com>
2197
2198 * elf32-msp430.c: Fix spelling typo.
2199
e2458743
AM
22002013-01-15 Alan Modra <amodra@gmail.com>
2201
2202 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
2203 plt-thread-safe.
2204
405bf443
AM
22052013-01-14 Alan Modra <amodra@gmail.com>
2206
2207 PR binutils/14813
2208 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
2209 (memory_bclose): Likewise. Return 0 on success.
2210 * cache.c (cache_bclose): Likewise.
2211 * opncls.c (opncls_bclose, bfd_close): Likewise.
2212 * vms-lib.c (vms_lib_bclose): Likewise.
2213 * libbfd.h: Regenerate.
2214
ee659f1f
AM
22152013-01-13 Alan Modra <amodra@gmail.com>
2216
2217 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
2218 Add ref_dynamic_nonweak.
2219 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
2220 (_bfd_elf_merge_symbol): Don't call above function. Move
2221 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
2222 clear dynamic_def.
2223 (elf_link_add_object_symbols): Delete redundant "override" test.
2224 Don't set dynamic_def here.
2225 (elf_link_output_extsym): Update.
2226
68c4a57e
L
22272013-01-12 H.J. Lu <hongjiu.lu@intel.com>
2228
2229 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
2230 normal and TLS symbol access.
2231 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
2232
02be4619
AM
22332013-01-12 Alan Modra <amodra@gmail.com>
2234
2235 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
2236 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
2237 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
2238
a4542f1b
AM
22392013-01-12 Alan Modra <amodra@gmail.com>
2240
2241 PR ld/12549
2242 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
2243 (_bfd_elf_strtab_clear_all_refs): Define.
2244 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
2245 (_bfd_elf_strtab_clear_all_refs): Delete.
2246 * elflink.c (elf_link_add_object_symbols): Clear out added
2247 strtab refs. Correct handling of warning common symbols.
2248
68ffbac6
L
22492013-01-10 H.J. Lu <hongjiu.lu@intel.com>
2250
2251 * aout0.c: Remove trailing white spaces.
2252 * archive.c: Likewise.
2253 * archures.c: Likewise.
2254 * bfd-in.h: Likewise.
2255 * bfd-in2.h: Likewise.
2256 * coff-alpha.c: Likewise.
2257 * coff-i860.c: Likewise.
2258 * coff-mips.c: Likewise.
2259 * coff-ppc.c: Likewise.
2260 * coff-tic80.c: Likewise.
2261 * coff-x86_64.c: Likewise.
2262 * coff-z80.c: Likewise.
2263 * coffcode.h: Likewise.
2264 * coffgen.c: Likewise.
2265 * cofflink.c: Likewise.
2266 * compress.c: Likewise.
2267 * corefile.c: Likewise.
2268 * cpu-arm.c: Likewise.
2269 * cpu-avr.c: Likewise.
2270 * cpu-bfin.c: Likewise.
2271 * cpu-cr16.c: Likewise.
2272 * cpu-cr16c.c: Likewise.
2273 * cpu-crx.c: Likewise.
2274 * cpu-h8300.c: Likewise.
2275 * cpu-i386.c: Likewise.
2276 * cpu-lm32.c: Likewise.
2277 * cpu-m68k.c: Likewise.
2278 * cpu-moxie.c: Likewise.
2279 * cpu-msp430.c: Likewise.
2280 * cpu-sh.c: Likewise.
2281 * cpu-xc16x.c: Likewise.
2282 * dwarf2.c: Likewise.
2283 * ecofflink.c: Likewise.
2284 * ecoffswap.h: Likewise.
2285 * elf-ifunc.c: Likewise.
2286 * elf-m10300.c: Likewise.
2287 * elf-vxworks.c: Likewise.
2288 * elf32-avr.c: Likewise.
2289 * elf32-avr.h: Likewise.
2290 * elf32-cr16.c: Likewise.
2291 * elf32-cr16c.c: Likewise.
2292 * elf32-cris.c: Likewise.
2293 * elf32-crx.c: Likewise.
2294 * elf32-frv.c: Likewise.
2295 * elf32-hppa.c: Likewise.
2296 * elf32-i860.c: Likewise.
2297 * elf32-ip2k.c: Likewise.
2298 * elf32-iq2000.c: Likewise.
2299 * elf32-m32c.c: Likewise.
2300 * elf32-m68hc1x.c: Likewise.
2301 * elf32-msp430.c: Likewise.
2302 * elf32-mt.c: Likewise.
2303 * elf32-ppc.c: Likewise.
2304 * elf32-rl78.c: Likewise.
2305 * elf32-s390.c: Likewise.
2306 * elf32-score.h: Likewise.
2307 * elf32-sh-symbian.c: Likewise.
2308 * elf32-sh.c: Likewise.
2309 * elf32-spu.c: Likewise.
2310 * elf32-tic6x.c: Likewise.
2311 * elf32-v850.c: Likewise.
2312 * elf32-xc16x.c: Likewise.
2313 * elf32-xtensa.c: Likewise.
2314 * elf64-alpha.c: Likewise.
2315 * elf64-hppa.c: Likewise.
2316 * elf64-ppc.c: Likewise.
2317 * elf64-s390.c: Likewise.
2318 * elfcore.h: Likewise.
2319 * elflink.c: Likewise.
2320 * elfxx-mips.c: Likewise.
2321 * elfxx-sparc.c: Likewise.
2322 * elfxx-tilegx.c: Likewise.
2323 * ieee.c: Likewise.
2324 * libcoff.h: Likewise.
2325 * libpei.h: Likewise.
2326 * libxcoff.h: Likewise.
2327 * linker.c: Likewise.
2328 * mach-o-i386.c: Likewise.
2329 * mach-o-target.c: Likewise.
2330 * mach-o.c: Likewise.
2331 * mach-o.h: Likewise.
2332 * mmo.c: Likewise.
2333 * opncls.c: Likewise.
2334 * pdp11.c: Likewise.
2335 * pe-x86_64.c: Likewise.
2336 * peXXigen.c: Likewise.
2337 * pef-traceback.h: Likewise.
2338 * pei-x86_64.c: Likewise.
2339 * peicode.h: Likewise.
2340 * plugin.c: Likewise.
2341 * reloc.c: Likewise.
2342 * riscix.c: Likewise.
2343 * section.c: Likewise.
2344 * som.c: Likewise.
2345 * syms.c: Likewise.
2346 * tekhex.c: Likewise.
2347 * ticoff.h: Likewise.
2348 * vaxbsd.c: Likewise.
2349 * xcofflink.c: Likewise.
2350 * xtensa-isa.c: Likewise.
2351
a3c62988
NC
23522013-01-10 Will Newton <will.newton@imgtec.com>
2353
2354 * Makefile.am: Add Meta.
2355 * Makefile.in: Regenerate.
2356 * archures.c (bfd_mach_metag): New.
2357 * bfd-in2.h: Regenerate.
2358 * config.bfd: Add Meta.
2359 * configure: Regenerate.
2360 * configure.in: Add Meta.
2361 * cpu-metag.c: New file.
2362 * elf-bfd.h: Add Meta.
2363 * elf32-metag.c: New file.
2364 * elf32-metag.h: New file.
2365 * libbfd.h: Regenerate.
2366 * reloc.c: Add Meta relocations.
2367 * targets.c: Add Meta.
2368
652451f8
YZ
23692013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
2370
2371 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
2372 (elfcore_write_aarch_hw_break): Likewise.
2373 (elfcore_write_aarch_hw_watch): Likewise.
2374 * elf.c (elfcore_grok_aarch_tls): New function.
2375 (elfcore_grok_aarch_hw_break): Likewise.
2376 (elfcore_grok_aarch_hw_watch): Likewise.
2377 (elfcore_grok_note): Call the new functions to handle the
2378 corresponding notes.
2379 (elfcore_write_aarch_tls): New function.
2380 (elfcore_write_aarch_hw_break): Likewise.
2381 (elfcore_write_aarch_hw_watch): Likewise.
2382 (elfcore_write_register_note): Call the new functions to handle the
2383 corresponding pseudo sections.
2384
45a466b5
TT
23852013-01-07 Tom Tromey <tromey@redhat.com>
2386
2387 * section.c (_bfd_std_section): Rename from std_section.
f75e0e33
AM
2388 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
2389 (STD_SECTION): Update.
45a466b5
TT
2390 * bfd-in2.h: Rebuild.
2391
e407c74b
NC
23922013-01-04 Juergen Urban <JuergenUrban@gmx.de>
2393
2394 * archures.c (bfd_mach_mips5900): Define.
2395 * bfd-in2.h: Regenerate.
2396 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
2397 * cpu-mips.c: Add support for MIPS r5900.
2398 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
2399
9b239e0e
NC
24002013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
2401 Nick Clifton <nickc@redhat.com>
2402
2403 * elflink.c (get_value): Prevent the use of an undefined shift
2404 operation. Add sanity checks.
2405
bab4becb 24062013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
884f2a8d 2407
bab4becb 2408 * config.bfd (cr16*-*-uclinux*): New target support.
884f2a8d 2409
9911c0fc 2410
bab4becb 2411For older changes see ChangeLog-2012
56882138 2412\f
bab4becb 2413Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
2414
2415Copying and distribution of this file, with or without modification,
2416are permitted in any medium without royalty provided the copyright
2417notice and this notice are preserved.
2418
56882138
AM
2419Local Variables:
2420mode: change-log
2421left-margin: 8
2422fill-column: 74
2423version-control: never
2424End:
This page took 0.83033 seconds and 4 git commands to generate.