]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Replace DT_PPC_TLSOPT with DT_PPC_OPT.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
e8910a83
AM
12013-10-30 Alan Modra <amodra@gmail.com>
2
3 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Use new DT_PPC_OPT
4 tag to specify tls optimisation.
5 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
6 (ppc64_elf_finish_dynamic_sections): Specify whether multiple
7 toc pointers are used via DT_PPC64_OPT.
8
a078d95a
AM
92013-10-30 Alan Modra <amodra@gmail.com>
10
11 * elf64-ppc.c (STK_LR, STK_TOC, STK_LINKER): Define.
12 (savegpr0_tail, restgpr0_tail, savefpr0_tail, restfpr0_tail)
13 build_plt_stub, build_tls_get_addr_stub, ppc_build_one_stub,
14 ppc64_elf_relocate_section): Use new defines.
15
b9e5796b
AM
162013-10-30 Alan Modra <amodra@gmail.com>
17
18 * elf64-ppc.c (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE): Add htab
19 parameter and adjust for ELFv2. Update all uses.
20 (PLT_CALL_STUB_SIZE): Delete.
21 (ppc64_elf_get_synthetic_symtab): Support new glink layout.
22 (allocate_dynrelocs): Likewise.
23 (plt_stub_size, build_plt_stub): Adjust for ELFv2.
24 (get_r2off): Return 0 for ELFv2 -R.
25 (ppc_build_one_stub, ppc_size_one_stub): Adjust for ELFv2.
26 (ppc64_elf_size_stubs): Likewise.
27 (ppc64_elf_build_stubs): Add new ELFv2 glink.
28
6911b7dc
AM
292013-10-30 Alan Modra <amodra@gmail.com>
30 Ulrich Weigand <uweigand@de.ibm.com>
31
32 * elf64-ppc.c (struct ppc_stub_hash_entry): Add "other".
33 (stub_hash_newfunc): Init new ppc_stub_hash_entry field, and one
34 we forgot, "plt_ent".
35 (ppc64_elf_add_symbol_hook): Check ELFv1 objects don't have
36 st_other bits only valid in ELFv2.
37 (ppc64_elf_merge_symbol_attribute): New function.
38 (ppc_type_of_stub): Add local_off param to test branch range.
39 (ppc_build_one_stub): Adjust destinations for ELFv2 locals.
40 (ppc_size_one_stub, toc_adjusting_stub_needed): Similarly.
41 (ppc64_elf_size_stubs): Pass local_off to ppc_type_of_stub.
42 Set "other" field.
43 (ppc64_elf_relocate_section): Adjust destination for ELFv2 local
44 calls.
45
ee67d69a
AM
462013-10-30 Alan Modra <amodra@gmail.com>
47
48 * elf64-ppc.c (abiversion, set_abiversion): New functions.
49 (ppc64_elf_get_synthetic_symtab): Handle ELFv2 objects without .opd.
50 (struct ppc_link_hash_table): Add opd_abi.
51 (ppc64_elf_check_relocs): Check no .opd with ELFv2.
52 (ppc64_elf_merge_private_bfd_data): New function.
53 (ppc64_elf_print_private_bfd_data): New function.
54 (ppc64_elf_tls_setup): Set htab->opd_abi.
55 (ppc64_elf_size_dynamic_sections): Don't emit OPD related dynamic
56 tags for ELFv2.
57 (ppc_build_one_stub): Use R_PPC64_IRELATIVE for ELFv2 ifunc.
58 (ppc64_elf_finish_dynamic_symbol): Likewise
59
71a39c98
AM
602013-10-30 Alan Modra <amodra@gmail.com>
61
62 * elf64-ppc.c (build_plt_stub): Switch stubs to use r11 as base
63 reg and r12 as destination.
64 (ppc_build_one_stub): Likewise.
65 (ppc64_elf_build_stubs): Likewise for glink.
66
f9c6b907
AM
672013-10-30 Alan Modra <amodra@gmail.com>
68
69 * reloc.c (BFD_RELOC_PPC64_ADDR16_HIGH, BFD_RELOC_PPC64_ADDR16_HIGHA,
70 BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA,
71 BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA): New.
72 * elf64-ppc.c (ppc64_elf_howto_raw): Add entries for new relocs.
73 Make all _HA and _HI relocs report signed overflow.
74 (ppc64_elf_reloc_type_lookup): Handle new relocs.
75 (must_be_dyn_reloc, ppc64_elf_check_relocs): Likewise.
76 (dec_dynrel_count, ppc64_elf_relocate_section): Likewise.
77 (ppc64_elf_relocate_section): Don't apply 0x8000 adjust to
78 R_PPC64_TPREL16_HIGHER, R_PPC64_TPREL16_HIGHEST,
79 R_PPC64_DTPREL16_HIGHER, and R_PPC64_DTPREL16_HIGHEST.
80 * libbfd.h: Regenerate.
81 * bfd-in2.h: Regenerate.
82
70cc877f
RM
832013-10-29 Roland McGrath <mcgrathr@google.com>
84
85 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Correct 9-byte nop
86 sequence to match what the assembler generates.
87
34a79995
JB
882013-10-29 Jan Beulich <jbeulich@suse.com>
89
90 * elflink.c (struct elf_outext_info): Add field file_sym_done.
91 (bfd_elf_final_link): Initialize new field. Move fake STT_FILE
92 symbol emission from here ...
93 (elf_link_output_extsym): ... to here.
94
240d6706
NC
952013-10-24 Nick Clifton <nickc@redhat.com>
96
97 PR binutils/15994
98 * dwarf2.c (lookup_address_in_line_info_table): Change return type
99 to be the range of addresses covered by the table.
100 (comp_unit_find_nearest_line): Likewise.
101 (find_line): Search all CUs. Select the one that matches and
102 covers the smallest address range.
103
6dd38d79
HPN
1042013-10-18 Hans-Peter Nilsson <hp@axis.com>
105
106 * elf32-cris.c (cris_elf_check_relocs): Don't assume
107 a registered dynobj means that a .got has been created.
108
fb8a5684
AM
1092013-10-17 Alan Modra <amodra@gmail.com>
110
111 PR 16056
112 * elf.c (copy_elf_program_header): Only consider SEC_ALLOC sections
113 when finding lowest_section.
114
b60bf9be
CF
1152013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
116
117 * elfxx-mips.c (mips_elf_obj_tdata): Add abi_msa_bfd.
118 (mips_elf_merge_obj_attributes): Set abi_msa_bfd to the first object
119 file that has a Tag_GNU_MIPS_ABI_MSA attribute.
120 Merge Tag_GNU_MIPS_ABI_MSA attributes.
121
b2e951ec
NC
1222013-10-14 Nick Clifton <nickc@redhat.com>
123
124 * gen-aout.c (main): Fix formatting. Close file.
125
c5d6fa44
RS
1262013-10-13 Richard Sandiford <rdsandiford@googlemail.com>
127
128 * elfxx-mips.c (mips_use_local_got_p): New function.
129 (mips_elf_count_got_symbols, mips_elf_calculate_relocation): Use it.
130 (_bfd_mips_elf_check_relocs): Set pointer_equality_needed for
131 GOT and absolute references.
132
0e4894b9
RM
1332013-10-09 Roland McGrath <mcgrathr@google.com>
134
9a757e4d
RM
135 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Cast switch
136 expression to int to silence over-eager compiler warnings.
137
1c1479bf
RM
138 * xcofflink.c (_bfd_xcoff_bfd_final_link): Don't touch EREL in
139 loop that doesn't use (or initialize) it.
140
0e4894b9
RM
141 * elfxx-tilegx.c (tilegx32_plt_tail_entry, tilegx32_plt_tail_entry):
142 Move second const qualifier so it applies to the pointer.
143
b707aa49
NC
1442013-10-09 Nick Clifton <nickc@redhat.com>
145
146 PR binutils/16022
147 * elf32-rx.c (rx_dump_symtab): Add missing break statements.
148
6e114b15
TT
1492013-10-09 Tom Tromey <tromey@redhat.com>
150
151 * opncls.c (get_alt_debug_link_info_shim): Update type of 'len'.
152
6d490cdb
NC
1532013-10-09 Nick Clifton <nickc@redhat.com>
154
155 PR ld/16021
156 * elf32-rl78.c (rl78_dump_symtab): Delete.
157 (rl78_get_reloc): Delete.
158
acd13123
TT
1592013-10-09 Tom Tromey <tromey@redhat.com>
160
161 * bfd-in2.h: Rebuild.
162 * opncls.c (bfd_get_alt_debug_link_info): Change type of
163 buildid_len to bfd_size_type.
164
86879d88
SDJ
1652013-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
166
167 PR binutils/15993
168 * elf32-m32c.c (dump_symtab): Add missing "break;" statement on each
169 "case". Reindent "switch" statements.
170
dc294be5
TT
1712013-10-08 Tom Tromey <tromey@redhat.com>
172
173 * bfd-in2.h: Rebuild.
174 * opncls.c (bfd_get_alt_debug_link_info): Add buildid_len
175 parameter. Change type of buildid_out. Update.
176 (get_alt_debug_link_info_shim): New function.
177 (bfd_follow_gnu_debuglink): Use it.
178
5bb7df2e
AS
1792013-10-08 Andreas Schwab <schwab@suse.de>
180
181 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Add DT_DEBUG also
182 for PIE executables.
183
e0eebf97
JBG
1842013-10-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
185
186 * configure: Regenerate.
187
1419bbe5
WN
1882013-10-03 Will Newton <will.newton@linaro.org>
189
190 * configure: Regenerate.
191 * configure.in: Build elf-ifunc.o for AArch64.
192 * elfnn-aarch64.c: Include objalloc.h.
193 (elfNN_aarch64_local_htab_hash): New function.
194 (elfNN_aarch64_local_htab_eq): New function.
195 (elfNN_aarch64_get_local_sym_hash): New function.
196 (elfNN_aarch64_link_hash_table_create): Initialize local STT_GNU_IFUNC
197 symbol hash.
198 (elfNN_aarch64_hash_table_free): Free local STT_GNU_IFUNC symbol hash.
199 (elfNN_aarch64_final_link_relocate): Add sym argument. Add support
200 for handling STT_GNU_IFUNC symbols.
201 (elfNN_aarch64_gc_sweep_hook): Add support for garbage collecting
202 references to STT_GNU_IFUNC symbols.
203 (elfNN_aarch64_adjust_dynamic_symbol): Add support for handling
204 STT_GNU_IFUNC symbols.
205 (elfNN_aarch64_check_relocs): Add support for handling STT_GNU_IFUNC
206 symbols. Ensure we don't increase plt.refcount from -1 to 0.
207 (elfNN_aarch64_post_process_headers): Call _bfd_elf_set_osabi.
208 (elfNN_aarch64_is_function_type): Remove function.
209 (elfNN_aarch64_allocate_dynrelocs): Handle STT_GNU_IFUNC symbols.
210 (elfNN_aarch64_allocate_ifunc_dynrelocs): New function.
211 (elfNN_aarch64_allocate_local_dynrelocs): New function.
212 (elfNN_aarch64_allocate_local_ifunc_dynrelocs): New function.
213 (elfNN_aarch64_size_dynamic_sections): Call
214 elfNN_aarch64_allocate_local_dynrelocs.
215 (elfNN_aarch64_create_small_pltn_entry): Add info argument.
216 Add support for creating .iplt entries for STT_GNU_IFUNC symbols.
217 (elfNN_aarch64_finish_dynamic_symbol): Add support for handling
218 STT_GNU_IFUNC symbols and .iplt.
219 (elfNN_aarch64_finish_local_dynamic_symbol): New function.
220 (elfNN_aarch64_finish_dynamic_sections): Call
221 elfNN_aarch64_finish_local_dynamic_symbol.
222
cbb2b07e
NC
2232013-09-30 Nick Clifton <nickc@redhat.com>
224
225 * cpu-msp430.c: Use printable names that match the values
226 displayed by readelf.
227
4e8516b2
AP
2282013-08-25 Andrew Pinski <apinski@cavium.com>
229
230 * elfnn-aarch64.c (TCB_SIZE): Base on the ARCH_SIZE rather than a
231 fixed size of 16.
232
2f9efdfc
RS
2332013-09-24 Gregory Fong <gregory.0xf0@gmail.com>
234
235 * elfxx-mips.c (mips_elf_create_got_section): Hide
236 _GLOBAL_OFFSET_TABLE_.
237
91ea67ca
AM
2382013-09-24 Alan Modra <amodra@gmail.com>
239
240 * elf32-mips.c (ELF_OSABI): Undef for vxworks.
241
8a865bcb
AM
2422013-09-24 Alan Modra <amodra@gmail.com>
243
244 * syms.c (_bfd_stab_section_find_nearest_line): Ignore partial
245 stabs at end of .stab. Tidy variable usage. Don't drop the need
246 for a NULL function name stab if If N_FUN stab is ignored.
247 Ensure index entry count loop matches write loop.
248
cc9afea3
AM
2492013-09-20 Alan Modra <amodra@gmail.com>
250
251 * configure: Regenerate.
252
bc080e94
TG
2532013-09-18 Tristan Gingold <gingold@adacore.com>
254
255 * configure.in: Bump version to 2.24.51
256 * configure: Regenerate.
257
5baf5e34
SE
2582013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
259
260 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Handle
261 EF_MIPS_FP64.
262
29bff3ea
DA
2632013-08-31 John David Anglin <dave.anglin@bell.net>
264
265 * elf64-hppa.c (elf_hppa_final_link_relocate): Add missing '%' to
266 format string.
267
5c98a14e
JJ
2682013-08-29 Jakub Jelinek <jakub@redhat.com>
269
270 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow
271 64-bit -mcmodel=large -fpic TLS GD and LD sequences.
272 (elf_x86_64_relocate_section): Handle -mcmodel=large -fpic
273 TLS GD and LD sequences in GD->LE, GD->IE and LD->LE transitions.
274
e5034e59
AM
2752013-08-27 Alan Modra <amodra@gmail.com>
276
277 * elf-bfd.h (struct elf_backend_data): Remove as_needed_cleanup.
278 Add notice_as_needed.
279 * elf64-ppc.c (elf_backend_as_needed_cleanup): Don't define.
280 (elf_backend_notice_as_needed): Define.
281 (ppc64_elf_as_needed_cleanup): Rename and adjust..
282 (ppc64_elf_notice_as_needed): ..to this.
283 * elflink.c (_bfd_elf_notice_as_needed): New function, extracted..
284 (elf_link_add_object_symbols): ..from here.
285 * elfxx-target.h (elf_backend_as_needed_cleanup): Don't define.
286 (elf_backend_notice_as_needed): Define..
287 (elfNN_bed): ..and use here.
288
1098fd41
RM
2892013-08-26 Roland McGrath <mcgrathr@google.com>
290
291 * archures.c (bfd_mach_i386_nacl, bfd_mach_i386_i386_nacl): New macros.
292 (bfd_mach_x86_64_nacl, bfd_mach_x64_32_nacl): New macros.
293 * cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): New function.
294 (bfd_i386_nacl_arch): New variable.
295 (bfd_x86_64_nacl_arch, bfd_x64_32_nacl_arch): New variables.
296 (bfd_x64_32_arch_intel_syntax): Link them into the list.
297 * bfd-in2.h: Regenerate.
298
887badb3
RM
2992013-08-26 Roland McGrath <mcgrathr@google.com>
300
301 * elf-nacl.c (nacl_modify_segment_map): Fix logic reordering the
302 elf_segment_map list. If an executable segment is page-aligned
303 but does not end with a full page, then append a fake section into
304 the segment map entry that pads out the page.
305 (nacl_final_write_processing): New function. Write the code fill
306 laid out in nacl_modify_segment_map.
307 * elf-nacl.h: Declare it.
308 * elf32-arm.c (elf32_arm_nacl_final_write_processing): New function.
309 (elf_backend_final_write_processing): Define it for NaCl backend.
310 * elf32-i386.c (elf_backend_final_write_processing): Likewise.
311 * elf64-x86-64.c (elf_backend_final_write_processing): Likewise.
312
313 * elf-nacl.c (segment_eligible_for_headers): Rename MAXPAGESIZE
314 parameter to MINPAGESIZE.
315 (nacl_modify_segment_map): Use minpagesize instead of maxpagesize.
316
317 * elf32-arm.c (ELF_MINPAGESIZE, ELF_COMMONPAGESIZE): #undef for NaCl.
318
387f8054
MR
3192013-08-24 Maciej W. Rozycki <macro@linux-mips.org>
320
321 * elf32-tilepro.c (tilepro_elf_finish_dynamic_sections): Don't
322 set GOT's entry size if there is no ELF section data.
323 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
324 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections):
325 Likewise.
326
f8222080
L
3272013-08-23 H.J. Lu <hongjiu.lu@intel.com>
328
329 * elf64-x86-64.c (get_elf_x86_64_arch_data): New.
330 (get_elf_x86_64_backend_data): Use it.
331 (elf_x86_64_size_dynamic_sections): Likewise.
332
9aff4b7a
NC
3332013-08-23 Yuri Chornoivan <yurchor@ukr.net>
334
335 PR binutils/15834
336 * bfdio.c: Fix typos.
337 * elf32-spu.c: Likewise.
338 * elfnn-aarch64.c: Likewise.
339
2eea2440
TG
3402013-08-21 Tristan Gingold <gingold@adacore.com>
341
342 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Also count
343 .ovrflo sections.
344 * coffcode.h (coff_compute_section_file_positions): Force
345 match between file offset and vma offset.
346
934bce08
AM
3472013-08-21 Alan Modra <amodra@gmail.com>
348
349 * elflink.c (_bfd_elf_merge_symbol): Set *poldbfd, *poldweak,
350 and *poldalignment before exiting when !relocs_compatible.
351
00b7642b
AM
3522013-08-21 Alan Modra <amodra@gmail.com>
353
354 * elflink.c (_bfd_elf_define_linkage_sym): Don't set STV_INTERNAL
355 symbols to STV_HIDDEN.
356
62c34db3
NC
3572013-08-14 John Tytgat <john@bass-software.com>
358
359 PR ld/15787
360 * elf32-arm.c (elf32_arm_final_link_relocate): Use origin of output
361 segment containing the relocating symbol instead of assuming 0 for
362 sb group relocations.
363
4046d87a
NC
3642013-08-09 Nick Clifton <nickc@redhat.com>
365
366 * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if G10
367 flag bits do not match.
368 (rl78_elf_print_private_bfd_data): Describe G10 flag.
369
13896403
RS
3702013-08-05 John Tytgat <john@bass-software.com>
371
372 * po/BLD-POTFILES.in: Regenerate.
373 * po/SRC-POTFILES.in: Likewise.
374
31a91d61
NC
3752013-07-31 John Tytgat <john@bass-software.com>
376
377 PR ld/15787
378 * elf32-arm.c (elf32_arm_final_link_relocate): Base SB on the
379 output section VMA.
380
a505d7ac
MR
3812013-07-28 Maciej W. Rozycki <macro@linux-mips.org>
382
383 * elf64-hppa.c (elf64_hppa_finish_dynamic_sections)
384 <DT_HP_LOAD_MAP>: Return unsuccessfully if there's no `.data'
385 section.
386
0608afa7
AP
3872013-07-27 Andrew Pinski <apinski@cavium.com>
388
389 * elfnn-aarch64.c (elfNN_aarch64_check_relocs):
390 Use the correct alignment for
391 _bfd_elf_make_dynamic_reloc_section for ILP32.
392
54757ed1
AP
3932013-07-27 Andrew Pinski <apinski@cavium.com>
394
395 * elfnn-aarch64.c (elfNN_aarch64_howto_from_bfd_reloc): Handle
396 BFD_RELOC_AARCH64_NONE explicitly.
397
f6518c48
MR
3982013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
399
400 * elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's
401 entry size if there is no ELF section data.
402
125b5bac
MR
4032013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
404
405 * elf32-vax.c (elf_vax_check_relocs) <R_VAX_GOT32, R_VAX_PLT32>:
406 Don't check symbol visibility here. Remove a check already
407 asserted for.
408 (elf_vax_instantiate_got_entries): Use SYMBOL_REFERENCES_LOCAL
409 instead of individual checks.
410 (elf_vax_relocate_section) <R_VAX_GOT32, R_VAX_PLT32>: Only
411 check the offset to decide if produce a GOT or PLT entry.
412 Remove redundant assertions. Remove code to produce GOT entries
413 for local symbols. Remove a duplicate comment and add a comment
414 on GOT relocations.
415 (elf_vax_finish_dynamic_symbol): Remove code to produce RELATIVE
416 dynamic relocs.
417
49d01bf6
MR
4182013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
419
420 * elf32-vax.c (elf_vax_always_size_sections): Correct a comment
421 typo.
422
fac3d241
MR
4232013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
424
425 * elf32-vax.c (elf_vax_discard_got_entries): New function.
426 (elf_vax_always_size_sections): Likewise.
427 (elf_vax_size_dynamic_sections): Remove code moved to
428 elf_vax_always_size_sections. Make comment on
429 elf_vax_instantiate_got_entries match reality.
430 (elf_vax_instantiate_got_entries): Assert that rather than check
431 if dynobj is null. Don't check for dynamic_sections_created.
432 Make function description match reality.
433 (elf_backend_always_size_sections): New macro.
434
729eabd5
AM
4352013-07-25 Alan Modra <amodra@gmail.com>
436
437 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Replace opd_relocs
438 with a union.
439 (opd_entry_value): Cache .opd section contents.
440 (ppc64_elf_relocate_section): Adjust.
441
db6a5d5f
AM
4422013-07-25 Alan Modra <amodra@gmail.com>
443
444 PR ld/15762
445 PR ld/12761
446 * elflink.c (elf_link_add_object_symbols): Correct test in
447 last patch. Remove unnecessary code.
448
7fa9fcb6
TG
4492013-07-24 Tristan Gingold <gingold@adacore.com>
450
451 * coff-rs6000.c (xcoff_howto_table): Fix masks and pc_relative for
452 R_RBR. Add numbers in comments.
453 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_PPC_B16.
454 * coff64-rs6000.c: Likewise.
455
436e1eba
AM
4562013-07-20 Alan Modra <amodra@gmail.com>
457
458 PR ld/15762
459 PR ld/12761
460 * elflink.c (elf_link_add_object_symbols): Don't clobber
461 .gnu.warning.symbol sections when shared.
462
ee181c72
NC
4632013-07-19 Nick Clifton <nickc@redhat.com>
464
465 * elf32-rx.c (rx_elf_relocate_section): Fix typo: move
466 saw_subtract from R_RX_OPdiv to R_RX_OPneg.
467
df301bfc
NC
4682013-07-18 Travis Snoozy <quandary@remstate.com>
469
470 PR ld/15721
471 * elf32-msp430.c (R_MSP430_10_PCREL): Use 10-bit source and
472 destination masks.
473 * R_MSP430_2X_PCREL: Likewise.
474 * R_MSP430X_10_PCREL: Likewise.
475 * R_MSP430X_2X_PCREL: Likewise.
476
39f21624
NC
4772013-07-18 Terry Guo <terry.guo@arm.com>
478
00b7642b 479 * elf32-arm.c (arm_type_of_stub): Don't use ST_BRANCH_TO_ARM for
39f21624 480 thumb only targets.
00b7642b 481 (elf32_arm_final_link_relocate): Likewise.
39f21624 482
671a6cbe
NC
4832013-07-18 Bill Neubauer <wcn@google.com>
484
485 * mach-o.c (mach_o_section_name_xlat dw): Add entry for
486 .debug_gdb_scripts
487
7a89b94e
NC
4882013-07-18 Roland McGrath <mcgrathr@google.com>
489
490 * elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable.
491 (elf32_arm_stub_long_branch_arm_nacl_pic): New variable.
492 (arm_build_one_stub): Increase MAXRELOCS to 3.
493 (arm_type_of_stub): Use them if GLOBALS->nacl_p.
494 (struct elf32_arm_link_hash_table): Give add_stub_section member's
495 pointee type a third argument.
496 (elf32_arm_create_or_find_stub_sec): Update caller.
497 (elf32_arm_size_stubs): Update argument type.
498 * bfd-in.h (elf32_arm_size_stubs): Update decl.
499 * bfd-in2.h: Regenerate.
500 * libbfd.h: Regenerate.
501
d929bc19
MR
5022013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
503
504 * elfxx-mips.c (mips_elf_merge_obj_attributes): Replace hardcoded
505 magic numbers with enum values.
506
7e11d300
RM
5072013-07-12 Roland McGrath <mcgrathr@google.com>
508
509 * reloc.c: Add BFD_RELOC_390_PC12DBL, BFD_RELOC_390_PLT12DBL,
510 BFD_RELOC_390_PC24DBL, BFD_RELOC_390_PLT24DBL (should have
511 been added here with 2013-07-05 elf32-s390.c change).
512 * bfd-in2.h: Regenerate (no-op).
513 * libbfd.h: Regenerate (no-op).
514
ba92f887
MR
5152013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
516
517 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Handle
518 EF_MIPS_NAN2008.
519 (_bfd_mips_elf_print_private_bfd_data): Likewise.
520
53452371
TG
5212013-07-09 Tristan Gingold <gingold@adacore.com>
522
523 * vms-alpha.c (struct vms_private_data_struct): Remove
524 flag_hash_long_names and flag_show_after_trunc.
525 (hash_string): Remove.
526 (_bfd_vms_length_hash_symbol): Remove.
527 (alpha_vms_write_exec): Remove call to _bfd_vms_length_hash_symbol.
528 (_bfd_vms_write_egsd): Likewise. Rewrite condition.
529 (_bfd_vms_write_ehdr): Remove code that set removed flags.
530 (_bfd_vms_write_etir): Remove call to _bfd_vms_length_hash_symbol.
531 (vms_bfd_is_local_label_name): Remove trace call.
532
787548c8
TG
5332013-07-09 Tristan Gingold <gingold@adacore.com>
534
535 * hosts/alphavms.h: Include config.h and ansidecl.h, remove useless
536 macros.
537 * configure.com: Adjust to match changes in configure.
538 * makefile.vms (OBJS): Update list.
539
2d63fb6c
TG
5402013-07-05 Tristan Gingold <gingold@adacore.com>
541
542 * coffcode.h (coff_write_object_contents): Use ".ovrflo" name for
543 overflow sections.
544
fb798c50
AK
5452013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
546
547 * elf32-s390.c: Add new relocation definitions R_390_PC12DBL,
548 R_390_PLT12DBL, R_390_PC24DBL, and R_390_PLT24DBL.
549 (elf_s390_reloc_type_lookup, elf_s390_check_relocs)
550 (elf_s390_gc_sweep_hook, elf_s390_relocate_section): Support new
551 relocations.
552 * elf64-s390.c: See elf32-s390.c
553 * bfd-in2.h: Add new relocs to enum bfd_reloc_code_real.
554 * libbfd.h: Add new reloc strings.
555
7bcccb57
MS
5562013-07-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
557
558 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reorder case
559 values.
560 (elfNN_aarch64_relocate_section): Likewise.
561 (elfNN_aarch64_gc_sweep_hook): Likewise.
562 (elfNN_aarch64_check_relocs): Likewise.
563
5295321c
AM
5642013-07-03 Alan Modra <amodra@gmail.com>
565
566 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't hide .TOC.
567 when relocatable. Don't change root.type or type here.
568 (ppc64_elf_set_toc): Set type of .TOC. to STT_OBJECT.
569
ba8ca3e7
AM
5702013-07-03 Alan Modra <amodra@gmail.com>
571
572 * elf64-ppc.c (struct ppc_stub_hash_entry): Delete "addend".
573 (ppc64_elf_size_stubs): Don't set "addend".
574 (ppc64_elf_relocate_section): Don't allow calls via
575 toc-adjusting stubs without a following nop even in an
576 executable, except for self-calls and both libc_start_main
577 and .libc_start_main.
578
c66bb0ee
AM
5792013-07-03 Alan Modra <amodra@gmail.com>
580
581 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.".
582
d5be367d
TG
5832013-07-02 Tristan Gingold <gingold@adacore.com>
584
585 * coff-rs6000.c (xcoff_find_nearest_line_discriminator): Add missing
586 line.
587
9a1ada6c
TG
5882013-07-02 Tristan Gingold <gingold@adacore.com>
589
b1a49096
TG
590 * vms-alpha.c (_bfd_generic_find_nearest_line_discriminator): Define.
591 (_bfd_vms_find_nearest_line_discriminator): New function.
592
5932013-07-02 Tristan Gingold <gingold@adacore.com>
c66bb0ee 594
9a1ada6c
TG
595 * coff-rs6000.c (xcoff_create_csect_from_smclas): Handle more smclas.
596
a685c4e6
TG
5972013-07-02 Tristan Gingold <gingold@adacore.com>
598
599 * coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function.
600 (rs6000coff_vec): Reference it.
601
cc0efaa8
MS
6022013-07-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
603
604 * elfnn-aarch64.c (aarch64_elf_create_got_section): New.
605 (elfNN_aarch64_check_relocs): Use aarch64_elf_create_got_section.
606 (elfNN_aarch64_create_dynamic_sections): Do not define
607 _GLOBAL_OFFSET_TABLE_; call aarch64_elf_create_got_section.
608
9d115506
MS
6092013-07-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
610
611 * ld-aarch64/emit-relocs-309-low.d: Adjust .text address.
612 * ld-aarch64/emit-relocs-309-up.d: Adjust .got address.
613 * ld-aarch64/emit-relocs-312.d: Adjust offsets into .got.
614 * ld-aarch64/tls-relax-all.d: Likewise.
615 * ld-aarch64/gc-got-relocs.d: Adjust expected .got content.
616 * ld-aarch64/gc-tls-relocs.d: Likewise.
617 * ld-aarch64/tls-relax-gd-ie.d: Likewise.
618 * ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise.
619 * ld-aarch64/tls-relax-gdesc-ie.d: Likewise.
620
f40da81b
AM
6212013-07-02 Alan Modra <amodra@gmail.com>
622
623 * elf64-ppc.c (ppc64_elf_relocate_section): Set "relocation" for
624 .TOC. after relocatable check.
625
1c865ab2
AM
6262013-07-01 Alan Modra <amodra@gmail.com>
627
628 * elf64-ppc.h (ppc64_elf_toc): Delete.
629 (ppc64_elf_set_toc): Declare.
630 * elf64-ppc.c (ppc64_elf_toc_reloc): Replace call to ppc64_elf_toc
631 with call the ppc64_elf_set_toc.
632 (ppc64_elf_toc_ha_reloc, ppc64_elf_toc64_reloc): Likewise.
633 (ppc64_elf_start_multitoc_partition): Likewise.
634 (struct ppc_link_hash_table): Delete dot_toc_dot. Replace all uses
635 with elf.hgot.
636 (ppc64_elf_process_dot_syms): Don't make a fake function descriptor
637 for ".TOC.".
638 (ppc64_elf_check_relocs): Mark sections with a reference to .TOC.
639 as needing a toc pointer.
640 (ppc64_elf_size_stubs): Don't set dot_toc_dot here.
641 (ppc64_elf_set_toc): Rename from ppc64_elf_toc. Add info param.
642 Set elf.hgot value.
643
a69ed7f7
L
6442013-06-28 H.J. Lu <hongjiu.lu@intel.com>
645
646 PR ld/15685
647 * elf64-x86-64.c (elf_x86_64_relocate_section): Handle
648 R_X86_64_DTPOFF64.
649
c3b6407f
NC
6502013-06-28 Nick Clifton <nickc@redhat.com>
651
652 PR ld/15302
653 * elf32-arm.c (allocate_dynrelocs_for_symbol): Revert previous patch.
654
8db339a6
MS
6552013-06-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
656
657 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Reserve one slot
658 in sgot.
659 (elfNN_aarch64_finish_dynamic_sections): Place the &_DYNAMIC reference
660 in sgot[0] rather than sgotplt[0].
661
2d426575
YZ
6622013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
663
664 * Makefile.am (elf32-aarch64.c): Add a #line cpp directive at the
665 beginning of the generated file.
666 (elf64-aarch64.c): Likewise.
667 * Makefile.in: Re-generated.
668
caed7120
YZ
6692013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
670
671 * Makefile.am (BFD64_BACKENDS): Add elfxx-aarch64.c.
672 (BFD64_BACKENDS_CFILES): Add elfxx-aarch64.lo.
673 * Makefile.in: Re-generated.
674 * configure.in (bfd_elf64_bigaarch64_vec): Add elfxx-aarch64.lo.
675 (bfd_elf64_littleaarch64_vec): Likewise.
676 (bfd_elf32_bigaarch64_vec): Likewise.
677 (bfd_elf32_littleaarch64_vec): Likewise.
678 * configure: Re-generated.
679 * elfxx-aarch64.c: New file; split from elf64-aarch64.c.
680 * elfxx-aarch64.h: New file.
681 * elfnn-aarch64.c: Include "elfxx-aarch64.h"; move the following
682 stuff to elfxx-aarch64.c.
683 (bfd_elf_aarch64_put_addend): Removed.
684 (PG_OFFSET, PG): Likewise.
685 (elfNN_aarch64_small_plt0_entry): Support ELF32.
686 (elfNN_aarch64_tlsdesc_small_plt_entry): Likewise.
687 (elf64_aarch64_grok_prstatus): Removed.
688 (elf_backend_grok_prstatus): Removed.
689 (insn32): Likewise.
690 (aarch64_unsigned_overflow): Likewise.
691 (aarch64_signed_overflow): Likewise.
692 (aarch64_resolve_relocation): Likewise.
693 (MASK): Likewise.
694 (decode_branch_ofs_26): Likewise.
695 (decode_cond_branch_ofs_19): Likewise.
696 (decode_ld_lit_ofs_19): Likewise.
697 (decode_tst_branch_ofs_14): Likewise.
698 (decode_movw_imm): Likewise.
699 (decode_adr_imm): Likewise.
700 (decode_add_imm): Likewise.
701 (reencode_branch_ofs_26): Likewise.
702 (reencode_cond_branch_ofs_19): Likewise.
703 (reencode_ld_lit_ofs_19): Likewise.
704 (reencode_tst_branch_ofs_14): Likewise.
705 (reencode_movw_imm): Likewise.
706 (reencode_adr_imm): Likewise.
707 (reencode_ldst_pos_imm): Likewise.
708 (reencode_add_imm): Likewise.
709 (reencode_movzn_to_movz): Likewise.
710 (reencode_movzn_to_movn): Likewise.
711 (aarch64_relocate): Update to call the new function names in
712 elfxx-aarch64.c.
713 (aarch64_calculate_got_entry_vma): Likewise.
714 (elfNN_aarch64_final_link_relocate): Likewise.
715 (elf64_aarch64_update_plt_entry): Likewise; change the type of the
716 parameter 'r_type' to bfd_reloc_code_real_type; rename to ...
717 (elf_aarch64_update_plt_entry): ... this.
718 (elfNN_aarch64_create_small_pltn_entry): Update.
719 (elfNN_aarch64_init_small_plt0_entry): Remove plt_got_base; add
720 bfd_vma plt_got_2nd_ent; update to call elf_aarch64_update_plt_entry.
721 (elfNN_aarch64_finish_dynamic_sections): Add plt_entry; update to
722 call elf_aarch64_update_plt_entry.
723
a6bb11b2
YZ
7242013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
725
726 * bfd-in2.h: Re-generated.
727 * elfnn-aarch64.c (HOWTO64, HOWTO32): New define.
728 (IS_AARCH64_TLS_RELOC): Change to be based on the
729 bfd reloc enumerators.
730 (IS_AARCH64_TLSDESC_RELOC): Likewise.
731 (PG, PG_OFFSET): Cast literal to bfd_vma.
732 (elf64_aarch64_howto_table): Removed.
733 (elf64_aarch64_howto_dynrelocs): Removed.
734 (elf64_aarch64_tls_howto_table): Removed.
735 (elf64_aarch64_tlsdesc_howto_table): Removed.
736 (elfNN_aarch64_howto_table): New table to host all howto entires..
737 (R_AARCH64_*): Replaced by AARCH64_R (*) and AARCH64_R_STR (*).
738 (elfNN_aarch64_bfd_reloc_from_howto): New function.
739 (elfNN_aarch64_bfd_reloc_from_type): Ditto.
740 (struct elf_aarch64_reloc_map): New.
741 (elf_aarch64_reloc_map): New table.
742 (elfNN_aarch64_howto_from_bfd_reloc): New function.
743 (elfNN_aarch64_howto_from_type): Update to look up the new table
744 elfNN_aarch64_howto_table.
745 (struct elf64_aarch64_reloc_map): Remove.
746 (elf64_aarch64_reloc_map): Remove.
747 (elfNN_aarch64_reloc_type_lookup): Change to call
748 elfNN_aarch64_howto_from_bfd_reloc.
749 (elfNN_aarch64_reloc_name_lookup): Change to look up the new table
750 elfNN_aarch64_howto_table.
751 (aarch64_resolve_relocation): Refactor to switch on the bfd
752 reloc enumerators.
753 (bfd_elf_aarch64_put_addend): Likewise.
754 (elfNN_aarch64_final_link_relocate): Likewise.
755 (aarch64_tls_transition_without_check): Likewise.
756 (aarch64_reloc_got_type): Likewise.
757 (aarch64_can_relax_tls): Likewise.
758 (aarch64_tls_transition): Likewise.
759 (elfNN_aarch64_tls_relax): Likewise.
760 (elfNN_aarch64_final_link_relocate): Likewise.
761 (elfNN_aarch64_relocate_section): Likewise.
762 (elfNN_aarch64_gc_sweep_hook): Likewise.
763 (elfNN_aarch64_check_relocs): Likewise.
764 (aarch64_tls_transition): Change to return a bfd reloc enumerator.
765 * libbfd.h: Re-generated.
766 * reloc.c: Re-order the AArch64 bfd reloc enumerators.
767 (BFD_RELOC_AARCH64_RELOC_START)
768 (BFD_RELOC_AARCH64_RELOC_END)
769 (BFD_RELOC_AARCH64_LD_GOT_LO12_NC)
770 (BFD_RELOC_AARCH64_LD32_GOT_LO12_NC)
771 (BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC)
772 (BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC)
773 (BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC)
774 (BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC)
775 (BFD_RELOC_AARCH64_IRELATIVE): New relocs.
776
cec5225b
YZ
7772013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
778
779 * Makefile.am (BFD64_BACKENDS): Add elf32-aarch64.lo.
780 (BUILD_CFILES): Add elf32-aarch64.c.
781 (elf32-aarch64.c): New rule for generating from elfnn-aarch64.c.
782 * Makefile.in: Re-generated.
783 * archures.c (bfd_mach_aarch64_ilp32): New define.
784 * bfd-in.h (bfd_elf32_aarch64_init_maps): New declaration.
785 (bfd_elf32_aarch64_set_options): Ditto.
786 (elf32_aarch64_setup_section_lists): Ditto.
787 (elf32_aarch64_next_input_section): Ditto.
788 (elf32_aarch64_size_stubs): Ditto.
789 (elf32_aarch64_build_stubs): Ditto.
790 * bfd-in2.h: Re-generated.
791 * config.bfd (aarch64-*-elf): Add bfd_elf32_littleaarch64_vec
792 and bfd_elf32_bigaarch64_vec.
793 (aarch64-*-linux*): Likewise.
794 (aarch64_be-*-elf): Likewise.
795 (aarch64_be-*-linux*): Likewise.
796 * configure.in (bfd_elf32_bigaarch64_vec)
797 (bfd_elf32_littleaarch64_vec): New.
798 * configure: Re-generated.
799 * cpu-aarch64.c (compatible): Don't allow mixing ilp32 objects with
800 lp64 ones.
801 (bfd_aarch64_arch_ilp32): New.
802 (bfd_aarch64_arch): Link to bfd_aarch64_arch_ilp32.
803 * elfnn-aarch64.c (ARCH_SIZE): New define.
804 (AARCH64_R, AARCH64_R_STR, LOG_FILE_ALIGN): New defines.
805 (GOT_ENTRY_SIZE): Re-define as (ARCH_SIZE / 8).
806 (elf64_aarch64_*): Rename to elfNN_aarch64_*.
807 (ELF64_R_*): Rename to ELFNN_R_*.
808 Plus other paramaterization.
809 * targets.c (bfd_elf32_bigaarch64_vec, bfd_elf32_littleaarch64_vec):
810 New declarations.
811 (_bfd_target_vector): Add bfd_elf32_bigaarch64_vec and
812 bfd_elf32_littleaarch64_vec.
813
81197114
YZ
8142013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
815
816 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-aarch64.c.
817 (BUILD_CFILES): Add elf64-aarch64.c.
818 (elf64-aarch64.c): New rule for generating from elfnn-aarch64.c.
819 * Makefile.in: Re-generated.
820 * elf64-aarch64.c: Rename to ...
821 * elfnn-aarch64.c: ... this.
822
833794fc
MR
8232013-06-25 Maciej W. Rozycki <macro@codesourcery.com>
824 Paul Brook <paul@codesourcery.com>
825
826 * elfxx-mips.h (_bfd_mips_elf_insn32): New prototype.
827 * elfxx-mips.c (mips_elf_link_hash_table): Add insn32 member.
828 (STUB_MOVE32_MICROMIPS, STUB_JALR32_MICROMIPS): New macros.
829 (MICROMIPS_INSN32_FUNCTION_STUB_NORMAL_SIZE): Likewise.
830 (MICROMIPS_INSN32_FUNCTION_STUB_BIG_SIZE): Likewise.
831 (micromips_insn32_o32_exec_plt0_entry): New variable.
832 (micromips_insn32_o32_exec_plt_entry): Likewise.
833 (_bfd_mips_elf_adjust_dynamic_symbol): Handle insn32 mode.
834 (mips_elf_estimate_stub_size): Likewise.
835 (_bfd_mips_elf_size_dynamic_sections): Likewise.
836 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
837 (mips_finish_exec_plt): Likewise.
838 (_bfd_mips_elf_relax_section): Likewise.
839 (_bfd_mips_elf_insn32): New function.
840 (_bfd_mips_elf_get_synthetic_symtab): Handle insn32 PLT.
841
1bbce132
MR
8422013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
843
844 * elfxx-mips.h (_bfd_mips_elf_get_synthetic_symtab): New
845 prototype.
846 * elf32-mips.c (elf_backend_plt_sym_val): Remove macro.
847 (bfd_elf32_get_synthetic_symtab): New macro.
848 * elfxx-mips.c (plt_entry): New structure.
849 (mips_elf_link_hash_entry): Add use_plt_entry member.
850 (mips_elf_link_hash_table): Rename plt_entry_size member to
851 plt_mips_entry_size. Add plt_comp_entry_size, plt_mips_offset,
852 plt_comp_offset, plt_got_index entries and plt_header_is_comp
853 members.
854 (STUB_LW_MICROMIPS, STUB_MOVE_MICROMIPS): New macros.
855 (STUB_LUI_MICROMIPS, STUB_JALR_MICROMIPS): Likewise.
856 (STUB_ORI_MICROMIPS, STUB_LI16U_MICROMIPS): Likewise.
857 (STUB_LI16S_MICROMIPS): Likewise.
858 (MICROMIPS_FUNCTION_STUB_NORMAL_SIZE): Likewise.
859 (MICROMIPS_FUNCTION_STUB_BIG_SIZE): Likewise.
860 (micromips_o32_exec_plt0_entry): New variable.
861 (mips16_o32_exec_plt_entry): Likewise.
862 (micromips_o32_exec_plt_entry): Likewise.
863 (mips_elf_link_hash_newfunc): Initialize use_plt_entry.
864 (mips_elf_output_extsym): Update to use gotplt_union's plist
865 member rather than offset.
866 (mips_elf_gotplt_index): Likewise. Remove the VxWorks
867 restriction. Use MIPS_ELF_GOT_SIZE to calculate GOT address.
868 (mips_elf_count_got_symbols): Update to use gotplt_union's plist
869 member rather than offset.
870 (mips_elf_calculate_relocation): Handle MIPS16/microMIPS PLT
871 entries.
872 (_bfd_mips_elf_create_dynamic_sections): Don't set PLT sizes
873 here.
874 (mips_elf_make_plt_record): New function.
875 (_bfd_mips_elf_check_relocs): Update comment. Record occurences
876 of JAL relocations that might need a PLT entry.
877 (_bfd_mips_elf_adjust_dynamic_symbol): Update to use
878 gotplt_union's plist member rather than offset. Set individual
879 PLT entry sizes here. Handle MIPS16/microMIPS PLT entries.
880 Don't set the symbol's value in the symbol table for PLT
881 references here. Don't set the PLT or PLT GOT section sizes
882 here.
883 (mips_elf_estimate_stub_size): Handle microMIPS stubs.
884 (mips_elf_allocate_lazy_stub): Likewise.
885 (mips_elf_lay_out_lazy_stubs): Likewise. Define a _MIPS_STUBS_
886 magic symbol.
887 (mips_elf_set_plt_sym_value): New function.
888 (_bfd_mips_elf_size_dynamic_sections): Set PLT header size and
889 PLT and PLT GOT section sizes here. Set the symbol values in
890 the symbol table for PLT references here. Handle microMIPS
891 annotation of the _PROCEDURE_LINKAGE_TABLE_ magic symbol.
892 (_bfd_mips_elf_finish_dynamic_symbol): Update to use
893 gotplt_union's plist member rather than offset. Handle
894 MIPS16/microMIPS PLT entries. Handle microMIPS stubs.
895 (_bfd_mips_vxworks_finish_dynamic_symbol): Update to use
896 gotplt_union's plist member rather than offset. Use
897 MIPS_ELF_GOT_SIZE to calculate GOT address.
898 (mips_finish_exec_plt): Handle microMIPS PLT. Return status.
899 (_bfd_mips_elf_finish_dynamic_sections): Handle result from
900 mips_finish_exec_plt.
901 (_bfd_mips_elf_link_hash_table_create): Update to use
902 gotplt_union's plist member rather than offset.
903 (_bfd_mips_elf_get_synthetic_symtab): New function.
904
cd6d434c
NC
9052013-06-24 Wawa <caojinyu@msn.com>
906
907 PR 15657
908 * hash.c (_bfd_stringtab_add): Copy the string if COPY is true.
909
42429eac
RS
9102013-06-23 Richard Sandiford <rdsandiford@googlemail.com>
911
912 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Move MIPS ELF
913 files to...
914 (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): ...here.
915 * Makefile.in: Regenerate.
916 * config.bfd: Enclose all MIPS ELF targets in #ifdef BFD64.
917 Set want64 to true for them at the end.
918 * targets.c (_bfd_target_vector): Protect MIPS ELF targets with
919 #ifdef BFD64.
920
12d83431
SL
9212013-06-22 Sandra Loosemore <sandra@codesourcery.com>
922
923 * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Don't
924 set sh_entsize for PLT section.
925
b9eead84
YZ
9262013-06-20 Yufeng Zhang <yufeng.zhang@arm.com>
927
928 * bfd-in.h (bfd_elf64_aarch64_set_options): Add 'extern'.
929 * bfd-in2.h: Re-generated.
930 * elf64-aarch64.c (RELOC_SECTION): Removed.
931 (SWAP_RELOC_IN, SWAP_RELOC_OUT): Ditto.
932 (AARCH64_ELF_OS_ABI_VERSION): Ditto.
933 (elf64_aarch64_link_hash_traverse): Ditto.
934 (elf64_aarch64_size_stubs): Change 'Aarch64' to 'AArch64' in the
935 comment.
936
8847944f
WN
9372013-06-19 Will Newton <will.newton@linaro.org>
938
939 * configure: Regenerated.
940 * configure.in: Remove aarch64 dependency on elf-ifunc.c.
941 * elf64-aarch64.c: Remove objalloc.h include.
942 (elf64_aarch64_howto_dynrelocs): Remove R_AARCH64_IRELATIVE howto.
943 (struct elf64_aarch64_link_hash_table): Remove ifunc related
944 members. (elf_aarch64_local_htab_hash): Remove function.
945 (elf_aarch64_local_htab_eq): Remove function.
946 (elf_aarch64_get_local_sym_hash): Remove function.
947 (elf64_aarch64_link_hash_table_create): Remove local hash
948 table initialization.
949 (elf64_aarch64_final_link_relocate): Remove sym argument and
950 handling of ifunc symbols.
951 (elf64_aarch64_relocate_section): Don't pass sym argument to
952 elf64_aarch64_final_link_relocate.
953 (elf64_aarch64_gc_sweep_hook): Remove handling of ifunc symbols.
954 (elf64_aarch64_adjust_dynamic_symbol): Likewise.
955 (elf64_aarch64_check_relocs): Likewise.
956 (elf64_aarch64_post_process_headers): Remove call to
957 _bfd_elf_set_osabi.
958 (elf64_aarch64_is_function_type): New function.
959 (elf64_aarch64_allocate_dynrelocs): Remove handling of ifunc
960 symbols. (elf_aarch64_allocate_local_dynrelocs): Remove function.
961 (elf64_aarch64_size_dynamic_sections): Remove call to
962 elf_aarch64_allocate_local_dynrelocs.
963 (elf64_aarch64_create_small_pltn_entry): Remove info argument.
964 Remove creation of R_AARCH64_IRELATIVE dynamic relocs.
965 (elf64_aarch64_finish_dynamic_symbol): Remove handling of ifunc
966 symbols. (elf_aarch64_finish_local_dynamic_symbol): Remove
967 function. (elf64_aarch64_finish_dynamic_sections): Remove call to
968 elf_aarch64_finish_local_dynamic_symbol.
969 (elf64_aarch64_add_symbol_hook): Remove function.
970
2532064a
YZ
9712013-06-14 Yufeng Zhang <yufeng.zhang@arm.com>
972
973 * elf64-aarch64.c (elf64_aarch64_final_link_relocate): Call
974 aarch64_resolve_relocation and bfd_elf_aarch64_put_addend to
975 handle the relocations of R_AARCH64_JUMP26, R_AARCH64_CALL26,
976 R_AARCH64_LD64_GOT_LO12_NC, R_AARCH64_ADR_GOT_PAGE and
977 R_AARCH64_GOT_LD_PREL19.
978
2f47f5fc
NC
9792013-06-13 Terry Guo <terry.guo@arm.com>
980
981 PR ld/15302
982 * elf32-arm.c (allocate_dynrelocs_for_symbol): Transform
983 ST_BRANCH_TO_ARM into ST_BRANCH_TO_THUMB if the target only
984 supports thumb instructions.
985
34064ff3
DD
9862013-06-11 DJ Delorie <dj@redhat.com>
987
988 * elf32-rl78.c (rl78_elf_relocate_section): Fix OPsub math.
989
3368874f
WN
9902013-06-11 Will Newton <will.newton@linaro.org>
991
992 * elf64-aarch64.c (elf_aarch64_get_local_sym_hash): Use
993 ELF64_R_SYM instead of ELF32_R_SYM.
994
47fc0f1f
NC
9952013-06-11 Nick Clifton <nickc@redhat.com>
996
997 * elf32-rl78.c (rl78_elf_finish_dynamic_sections): Onlly run
998 checks if the dynamic sections have been created and relaxation
999 has not been performed.
1000
692e2b8b
WN
10012013-06-07 Will Newton <will.newton@linaro.org>
1002
1003 * configure: Regenerate.
1004 * configure.in: Build elf-ifunc.o for AArch64.
1005 * elf64-aarch64.c: Include objalloc.h.
1006 (elf64_aarch64_howto_dynrelocs): Add R_AARCH64_IRELATIVE howto.
1007 (struct elf64_aarch64_link_hash_table): Add members for handling
1008 R_AARCH64_IRELATIVE relocations.
1009 (elf_aarch64_local_htab_hash): New function.
1010 (elf_aarch64_local_htab_eq): New function.
1011 (elf_aarch64_get_local_sym_hash): New function.
1012 (elf64_aarch64_link_hash_table_create): Initialize local STT_GNU_IFUNC
1013 symbol hash.
1014 (elf64_aarch64_hash_table_free): Free local STT_GNU_IFUNC symbol hash.
1015 (elf64_aarch64_final_link_relocate): Add sym argument. Add support
1016 for handling STT_GNU_IFUNC symbols.
1017 (elf64_aarch64_gc_sweep_hook): Add support for garbage collecting
1018 references to STT_GNU_IFUNC symbols.
1019 (elf64_aarch64_adjust_dynamic_symbol): Add support for handling
1020 STT_GNU_IFUNC symbols.
1021 (elf64_aarch64_check_relocs): Add support for handling STT_GNU_IFUNC
1022 symbols. Ensure we don't increase plt.refcount from -1 to 0.
1023 (elf64_aarch64_post_process_headers): Call _bfd_elf_set_osabi.
1024 (elf64_aarch64_is_function_type): Remove function.
1025 (elf64_aarch64_allocate_dynrelocs): Call
1026 _bfd_elf_allocate_ifunc_dyn_relocs for STT_GNU_IFUNC symbols.
1027 (elf_aarch64_allocate_local_dynrelocs): New function.
1028 (elf64_aarch64_size_dynamic_sections): Call
1029 elf_aarch64_allocate_local_dynrelocs. Initialize next_irelative_index.
1030 (elf64_aarch64_create_small_pltn_entry): Add info argument.
1031 Add support for creating .iplt entries for STT_GNU_IFUNC symbols.
1032 (elf64_aarch64_finish_dynamic_symbol): Add support for handling
1033 STT_GNU_IFUNC symbols and .iplt.
1034 (elf_aarch64_finish_local_dynamic_symbol): New function.
1035 (elf64_aarch64_finish_dynamic_sections): Call
1036 elf_aarch64_finish_local_dynamic_symbol.
1037 (elf64_aarch64_add_symbol_hook): New function.
1038
fa549f3b
AM
10392013-06-03 Alan Modra <amodra@gmail.com>
1040
1041 * syms.c (_bfd_stab_section_find_nearest_line): Add last_str
1042 var. Use it with last_stab.
1043
067ec077
CM
10442013-05-30 Paul Brook <paul@codesourcery.com>
1045
1046 * bfd-in2.h: Regenerate.
1047 * elf32-mips.c (elf_mips_eh_howto): New.
1048 (bfd_elf32_bfd_reloc_type_lookup ): Support BFD_RELOC_MIPS_EH.
1049 (bfd_elf32_bfd_reloc_name_lookup): Likewise.
1050 (mips_elf32_rtype_to_howto): Support R_MIPS_EH.
1051 * elf64-mips.c (elf_mips_eh_howto): New.
1052 (bfd_elf64_bfd_reloc_type_lookup): Support BFD_RELOC_MIPS_EH.
1053 (bfd_elf64_bfd_reloc_name_lookup): Likewise.
1054 (mips_elf64_rtype_to_howto): Support R_MIPS_EH.
1055 * libbfd.h: Regenerate.
1056 * reloc.c (BFD_RELOC_MIPS_EH): New.
1057
95e34fb4
NC
10582013-05-29 Nick Clifton <nickc@redhat.com>
1059
1060 * dwarf2.c (struct dwarf2_debug): Add fields for handling
1061 alternate debug info source.
1062 (dwarf_debug_sections): Add entries for alternate .debug_str and
1063 .debug_info sections.
1064 (dwarf_debug_section_enum): Likewise.
1065 (read_alt_indirect_string): New function. Handles a
1066 DW_FORM_GNU_strp_alt attribute.
1067 (read_alt_indirect_ref): New function. Handles a
1068 DW_FORM_GNU_ref_alt attribute.
1069 (read_attribute_value): Process DW_FORM_GNU_ref_alt and
1070 DW_FORM_GNU_strp_alt.
1071 (find_abstract_instance_name): Handle DW_FORM_GNU_ref_alt
1072 attributes.
1073 (_bfd_dwarf2_cleanup_debug_info): Free alternate debug info
1074 sources.
1075 * opncls.c (GNU_DEBUGALTLINK): Define.
1076 (bfd_get_alt_debug_link_info): New function.
1077 (separate_alt_debug_file_exists): New function.
1078 (find_separate_debug_file): Add parameters for fetch and check
1079 functions.
1080 (bfd_follow_gnu_debugaltlink): New function.
1081 * bfd-in2.h: Regenerate.
1082
418009c2
YZ
10832013-05-28 Yufeng Zhang <yufeng.zhang@arm.com>
1084
1085 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE): Rename to ...
1086 (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21): ... this.
1087 (BFD_RELOC_AARCH64_TLSDESC_LD64_PREL19): Rename to ...
1088 (BFD_RELOC_AARCH64_TLSDESC_LD_PREL19): ... this.
1089 * bfd-in2.h: Regenerate.
1090 * libbfd.h: Regenerate.
1091 * elf64-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Update to use
1092 the correct names.
1093 (elf64_aarch64_tlsdesc_howto_table): Likewise.
1094 (elf64_aarch64_reloc_map): Likewise.
1095 (aarch64_resolve_relocation): Likewise.
1096 (bfd_elf_aarch64_put_addend): Likewise.
1097 (aarch64_tls_transition_without_check): Likewise.
1098 (aarch64_reloc_got_type): Likewise.
1099 (elf64_aarch64_final_link_relocate): Likewise.
1100 (elf64_aarch64_tls_relax): Likewise.
1101 (elf64_aarch64_relocate_section): Likewise.
1102 (elf64_aarch64_gc_sweep_hook): Likewise.
1103 (elf64_aarch64_check_relocs): Likewise.
1104
9d782e8d
MW
11052013-05-26 Mark Wielaard <mjw@redhat.com>
1106
1107 * cache.c (BFD_CACHE_MAX_OPEN): Remove define.
1108 (max_open_files): New static int initialized to zero.
1109 (bfd_cache_max_open): New static function to set and return
1110 max_open_files.
1111 (bfd_cache_init): Use bfd_cache_max_open.
1112 (bfd_open_file): Likewise.
1113 * configure.in (AC_CHECK_HEADERS): Add sys/resource.h.
1114 (AC_CHECK_FUNCS): Add getrlimit.
1115 * configure: Regenerated.
1116 * config.in: Likewise.
1117 * sysdep.h: Check and include sys/resource.h for getrlimit.
1118
03ae2d5e
AM
11192013-05-23 Alan Modra <amodra@gmail.com>
1120
1121 * format.c (bfd_check_format_matches): Don't match a target in
1122 targ_selvecs if some other target is a better match. If
1123 targets implement match priority, fall back to the first of
1124 the best matches.
1125
ad3d9127
AM
11262013-05-22 Eric Herman <eric@freesa.org>
1127
1128 PR binutils/15462
1129 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Warning fix.
1130
5b3905f1
AM
11312013-05-22 Ralf Dreesen <gamma@dreesen.net>
1132
1133 PR binutils/15474
1134 * srec.c (srec_set_section_contents): Properly convert size
1135 and offset to address when octets_per_byte is not unity.
1136
8be65dd3
MR
11372013-05-20 Maciej W. Rozycki <macro@linux-mips.org>
1138
1139 * elf32-vax.c (elf_vax_instantiate_got_entries): Only set the
1140 refcount member of the gotplt_union when resetting the reference
1141 count. Adjust comment.
1142
593f8f29
WN
11432013-05-20 Will Newton <will.newton@linaro.org>
1144
1145 * elf64-aarch64.c (elf64_aarch64_link_hash_entry): Remove
1146 relocs_copied member.
1147 (elf64_aarch64_link_hash_newfunc): Remove initialization of
1148 relocs_copied member.
1149 (elf64_aarch64_copy_indirect_symbol): Remove code to copy
1150 relocs_copied member.
1151
a0f0eb1e
MR
11522013-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1153
1154 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&R
1155 function definition.
1156
af65e588
CC
11572013-05-16 Cary Coutant <ccoutant@google.com>
1158
1159 * ecoff.c (ecoff_link_check_archive_element): Add initializers for
1160 external_ext_size and esize.
1161
9f6e76f4
TG
11622013-05-16 Tristan Gingold <gingold@adacore.com>
1163
1164 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16.
1165 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1166
c495064d
AS
11672013-05-15 Andreas Schwab <schwab@suse.de>
1168
1169 * elf64-aarch64.c (elf_backend_default_execstack): Define to 0.
1170
110a61d3
JB
11712013-05-10 Joel Brobecker <brobecker@adacore.com>
1172
1173 * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
1174 of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.
1175
ceae87f3
JB
11762013-05-09 Joel Brobecker <brobecker@adacore.com>
1177
1178 * bfd.c (_bfd_default_error_handler): Replace use of putc
1179 by fputc. Add comment explaining why.
1180
012b2306
AM
11812013-05-09 Alan Modra <amodra@gmail.com>
1182
1183 * elflink.c (elf_link_add_object_symbols): Don't omit reading
1184 of symbols when hashes already exist.
1185
7b70956d
WN
11862013-05-07 Will Newton <will.newton@linaro.org>
1187
1188 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a
1189 plt_header_size argument for ports where it differs from
1190 plt_entry_size.
1191 * elf-bfd.h: Likewise.
1192 * elf32-i386.c: Pass plt_header_size to
1193 _bfd_elf_allocate_ifunc_dyn_relocs.
1194 * elf64-x86-64.c: Likewise.
1195
1ee9e8b3
WN
11962013-05-07 Will Newton <will.newton@linaro.org>
1197
012b2306 1198 * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
1ee9e8b3
WN
1199 function.
1200 * elf-bfd.h: Likewise.
1201
b47468a6
CM
12022013-05-06 Paul Brook <paul@codesourcery.com>
1203
012b2306
AM
1204 * elf64-mips.c (elf_mips_gnu_pcrel32): New.
1205 (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup,
1206 mips_elf64_rtype_to_howto): Handle R_MIPS_PC32.
1207 * elfn32-mips.c (elf_mips_gnu_pcrel32): New.
1208 (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup,
1209 mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32.
b47468a6 1210
128205bb
AM
12112013-05-06 Alan Modra <amodra@gmail.com>
1212
1213 * elf64-ppc.c (opd_entry_value): Handle case where symbol
1214 hashes are not available.
1215
f45794cb
AM
12162013-05-06 Alan Modra <amodra@gmail.com>
1217
1218 * elflink.c (elf_link_add_object_symbols): Don't save symbol
1219 hashes around loading as-needed library. Zero them on allocation,
1220 and restore to initial all-zero state if library not needed.
1221 Arrange to reuse hashes if we load library again later.
1222
d150b1a2
RS
12232013-05-04 Richard Sandiford <rdsandiford@googlemail.com>
1224
1225 * elf32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto):
1226 Use _bfd_mips_elf_generic_reloc instead of bfd_elf_generic_reloc.
1227 * elfn32-mips.c: Likewise.
1228 * elf64-mips.c: Likewise.
1229
13761a11
NC
12302013-05-02 Nick Clifton <nickc@redhat.com>
1231
1232 * archures.c: Add some more MSP430 machine numbers.
1233 * config.bfd (msp430): Define targ_selvecs.
1234 * configure.in: Add bfd_elf32_msp430_ti_vec.
1235 * cpu-msp430.c: Add some more MSP430 machine numbers.
1236 * elf32-msp430.c Add support for MSP430X relocations.
1237 Add support for TI compiler generated relocations.
1238 Add support for sym_diff relocations.
1239 Add support for relaxing out of range short branches into long
1240 branches.
1241 Add support for MSP430 attribute section.
1242 * reloc.c: Add MSP430X relocations.
1243 * targets.c: Add bfd_elf32_msp430_ti_vec.
1244 * bfd-in2.h: Regenerate.
1245 * configure: Regenerate.
1246 * libbfd.h: Regenerate.
1247
df26367c
MR
12482013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
1249
1250 * config.bfd: Replace alpha*-*-linuxecoff* pattern with
1251 alpha*-*-linux*ecoff*.
1252
ed54588d
NC
12532013-04-30 Olaf Flebbe <o.flebbe@science-computing.de>
1254
1255 PR binutils/15417
1256 * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
1257 zero.
1258
b8297068
AM
12592013-04-30 Alan Modra <amodra@gmail.com>
1260
1261 * elflink.c (bfd_elf_record_link_assignment): Dont make
1262 STV_INTERNAL symbols STV_HIDDEN.
1263
b40bf0a2
NC
12642013-04-29 Nick Clifton <nickc@redhat.com>
1265
1266 * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
1267 fragmented .debug_line sections associated with unmarked code
1268 sections.
1269
aba8c3de
WN
12702013-04-29 Will Newton <will.newton@linaro.org>
1271
1272 * elf32-arm.c (elf32_arm_populate_plt_entry): Call
1273 elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs.
1274
7fcfd62d
NC
12752013-04-29 Will Newton <will.newton@linaro.org>
1276
1277 * elf64-aarch64.c (elf64_aarch64_check_relocs): Move relocation
1278 error check up and add error message.
1279
ed5acf27
WN
12802013-04-26 Will Newton <will.newton@linaro.org>
1281
1282 * elf64-aarch64.c (elf64_aarch64_check_relocs): Remove dead code.
1283
49926cd0
AM
12842013-04-25 Alan Modra <amodra@gmail.com>
1285
1286 * config.bfd: Add powerpc64le-linux.
1287
05567e3d
L
12882013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1289
1290 * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
1291 x86_64-*-elf*.
1292
99059e56
RM
12932013-04-24 Roland McGrath <mcgrathr@google.com>
1294
1295 * elf32-arm.c (elf32_arm_allocate_plt_entry): If HTAB->nacl_p,
1296 allocate space for PLT header even if IS_IPLT_ENTRY.
1297 (arm_nacl_put_plt0): New function, broken out of ...
1298 (elf32_arm_finish_dynamic_sections): ... here. Call it.
1299 If HTAB->nacl_p, set up the PLT header in .iplt too.
1300 (elf32_arm_output_arch_local_syms): If HTAB->nacl_p, write
1301 a mapping symbol for the start of .iplt too.
1302
544008aa
NC
13032013-04-19 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1304
7b5d8d96
NC
1305 * ecoff.c (_bfd_ecoff_sizeof_headers): Cast the return value of
1306 BFD_ALIGN to int.
1307 * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Remove unused
1308 variables.
1309 * elf32-v850.c (v850_elf_relax_section): Redefine the type of 'i'
1310 to bfd_vma.
1311 * vms-alpha.c (evax_bfd_print_etir): Initialize sec_len.
544008aa 1312
86f7d49b
AM
13132013-04-22 Alan Modra <amodra@gmail.com>
1314
1315 PR ld/15382
1316 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
1317 sh_size or reloc_count adjustment by count.
1318
bfeb4a28
AM
13192013-04-22 Alan Modra <amodra@gmail.com>
1320
1321 * elf64-ppc.c (ppc64_elf_check_relocs): Don't call
1322 create_linkage_sections here..
1323 (ppc64_elf_init_stub_bfd): ..do so here. Return status.
1324 (create_linkage_sections): Move earlier in file.
1325 (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test.
1326 * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto.
1327
2d0a6933
NC
13282013-04-19 Nick Clifton <nickc@redhat.com>
1329
1330 PR binutils/15356
1331 * compress.c (decompress_contents): Always call inflateEnd, even
1332 when another inflation operation fails.
1333
a9ea330b
L
13342013-04-17 H.J. Lu <hongjiu.lu@intel.com>
1335
1336 * elf-ifunc.c: Update copyright year.
1337
a253d456
NC
13382013-04-17 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1339
1340 * coffcode.h: Added a cast to void when a bfd_set_section_*()
1341 macro's return value is ignored.
1342 * elf32-hppa.c: Likewise.
1343 * elf32-tic6x.c: Likewise.
1344 * mach-o.c: Likewise.
1345 * mmo.c: Likewise.
1346 * opncls.c: Likewise.
1347 * peicode.h: Likewise.
1348 * elf32-m32r.c: Check return value of bfd_set_section_*().
1349 * elfnn-ia64.c: Likewise.
1350 * elfxx-mips.c: Likewise.
1351 * vms-alpha.c: Likewise.
1352
1622ff3b
L
13532013-04-15 H.J. Lu <hongjiu.lu@intel.com>
1354
1355 PR ld/15371
1356 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Check
1357 regular reference without non-GOT reference when building
1358 shared library.
1359
a22cd6f6
AM
13602013-04-15 Alan Modra <amodra@gmail.com>
1361
1362 * archive.c (_bfd_archive_close_and_cleanup): Clear parent
1363 cache slot for archives.
1364
ed905580
HPN
13652013-04-14 Hans-Peter Nilsson <hp@bitrange.com>
1366
1367 * mmo.c (mmo_write_chunk): Break out abfd->tdata.mmo_data to new
1368 local variable mmop.
1369
8d6a12ee
NC
13702013-04-09 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1371
1372 PR ld/12494
1373 * bfd/elf32-avr.c: Consider all sections to determine if linker
1374 relaxation can safely delete a ret after a call/jmp
1375
79bb5c23
NC
13762013-04-09 Mingjie Xing <mingjie.xing@gmail.com>
1377
1378 * bfd.c (typedef bfd, Error reporting, Miscellaneous): Add
1379 INODEs.
1380
36192a8d
TT
13812013-04-08 Tom Tromey <tromey@redhat.com>
1382
1383 * som.c (bfd_section_from_som_symbol): No longer static.
1384 * som.h (bfd_section_from_som_symbol): Declare.
1385
198f1157
AM
13862013-04-06 Alan Modra <amodra@gmail.com>
1387
1388 * elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
1389 * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.
1390
c69ba956
NC
13912013-04-05 Nick Clifton <nickc@redhat.com>
1392
1393 * elflink.c (elf_link_add_object_symbols): Revert accidental commit.
1394
ff5ac77b
AM
13952013-04-04 Alan Modra <amodra@gmail.com>
1396
1397 * bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
1398 * bfd-in2.h: Regenerate.
1399 * elflink.c (elf_link_add_object_symbols): Use new error.
1400
41702d50
NC
14012013-04-03 Nick Clifton <nickc@redhat.com>
1402
1403 * elf32-v850.c (v850_elf_is_target_special_symbol): New function.
1404 (bfd_elf32_bfd_is_target_special_symbol): Define.
1405
cb8af559
NC
14062013-04-03 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1407
a22cd6f6
AM
1408 * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
1409 elf64_aarch64_locals to get local GOT reference counts.
cb8af559 1410
1122dc88
DD
14112013-04-02 DJ Delorie <dj@redhat.com>
1412
1413 * elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
1414 (rl78_elf_relax_section): Only fetch the next reloc if there is
1415 one expected.
1416
81fbe831
AM
14172013-03-30 Alan Modra <amodra@gmail.com>
1418
1419 PR ld/15323
1420 * elf-m10300.c (mn10300_elf_check_relocs): Set non_ir_ref for
1421 global symbols referenced by relocs.
1422 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1423 * elf32-bfin.c (bfin_check_relocs): Likewise.
1424 * elf32-cr16.c (cr16_elf_check_relocs): Likewise.
1425 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1426 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1427 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1428 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1429 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1430 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1431 * elf32-i370.c (i370_elf_check_relocs): Likewise.
1432 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1433 * elf32-lm32.c (lm32_elf_check_relocs): Likewise.
1434 * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
1435 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1436 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1437 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1438 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1439 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1440 * elf32-microblaze.c (microblaze_elf_check_relocs): Likewise.
1441 * elf32-moxie.c (moxie_elf_check_relocs): Likewise.
1442 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
1443 * elf32-mt.c (mt_elf_check_relocs): Likewise.
1444 * elf32-nios2.c (nios2_elf32_check_relocs): Likewise.
1445 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
1446 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1447 * elf32-rl78.c (rl78_elf_check_relocs): Likewise.
1448 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1449 * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise.
1450 * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise.
1451 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1452 * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise.
1453 * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise.
1454 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1455 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1456 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1457 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1458 * elf64-aarch64.c (elf64_aarch64_check_relocs): Likewise.
1459 * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
1460 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
1461 * elf64-ia64-vms.c (elf64_ia64_check_relocs): Likewise.
1462 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1463 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1464 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1465 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
1466 * elfnn-ia64.c (elfNN_ia64_check_relocs): Likewise.
1467 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1468 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
1469 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. Don't
1470 test indirect/warning links for NULL.
1471
61315175
L
14722013-03-29 H.J. Lu <hongjiu.lu@intel.com>
1473
1474 PR ld/15323
1475 * elf32-i386.c (elf_i386_check_relocs): Set non_ir_ref if a
81fbe831 1476 symbol is referenced by a non-shared object.
61315175
L
1477 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1478
a6f713fc
KK
14792013-03-28 Joe Seymour <jseymour@codesourcery.com>
1480
1481 * elf32-sh.c (sh_elf_relocate_section): Suppress warnings for
1482 R_SH_REL32 relocations against undefined weak symbols.
1483
19e08130
AM
14842013-03-28 Alan Modra <amodra@gmail.com>
1485
1486 * elf64-ppc.c (struct ppc_dyn_relocs): New.
1487 (ppc64_elf_check_relocs): Separate dynrel counts for local syms
1488 into ifunc and non-ifunc.
1489 (dec_dynrel_count): Pass in sym rather than sym_sec. Handle
1490 separate ifunc/non-ifunc dynrel counts.
1491 (allocate_got): Always use reliplt for ifunc.
1492 (allocate_dynrelocs): Likewise.
1493 (ppc64_elf_size_dynamic_sections): Likewise.
1494 (ppc64_elf_layout_multitoc): Likewise.
1495 (ppc64_elf_relocate_section): Likewise.
1496
f95f8542
AM
14972013-03-28 Alan Modra <amodra@gmail.com>
1498
1499 * elf32-ppc.c (struct ppc_dyn_relocs): New.
1500 (ppc_elf_check_relocs): Separate dynrel counts for local syms
1501 into ifunc and non-ifunc.
1502 (allocate_dynrelocs): Always put ifunc relocs into reliplt.
1503 (ppc_elf_size_dynamic_sections): Likewise.
1504 (ppc_elf_relocate_section): Likewise.
1505
7e612e98
AM
15062013-03-28 Alan Modra <amodra@gmail.com>
1507
1508 * elf-bfd.h (enum elf_reloc_type_class): Add reloc_class_ifunc.
1509 (struct elf_backend_data <elf_backed_reloc_type_class>): Add
1510 bfd_link_info* and asection* params.
1511 (_bfd_elf_reloc_type_class): Likewise.
1512 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1513 * elflink.c (elf_link_sort_cmp2): Sort first on reloc class.
1514 (elf_link_sort_relocs): Update elf_backed_reloc_type_class call.
1515 * elf32-ppc.c (ppc_elf_reloc_type_class): Return reloc_class_ifunc
1516 for any reliplt reloc. Don't return reloc_class_plt for
1517 R_PPC_REL24 and R_PPC_ADDR24.
1518 * elf64-ppc.c (allocate_got): Formatting.
1519 (ppc64_elf_reloc_type_class): Return reloc_class_ifunc for any
1520 reliplt reloc.
1521 * elf-m10300.c, * elf32-arm.c, * elf32-bfin.c, * elf32-cr16.c,
1522 * elf32-cris.c, * elf32-hppa.c, * elf32-i386.c, * elf32-lm32.c,
1523 * elf32-m32r.c, * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c,
1524 * elf32-s390.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilepro.c,
1525 * elf32-vax.c, * elf32-xtensa.c, * elf64-aarch64.c, * elf64-alpha.c,
1526 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-s390.c, * elf64-sparc.c,
1527 * elf64-x86-64.c, * elfnn-ia64.c, * elfxx-tilegx.c, * elfxx-tilegx.h:
1528 Add extra params to the various reloc_type_class functions.
1529
0bed072f
AM
15302013-03-27 Alan Modra <amodra@gmail.com>
1531
1532 * elf32-ppc.c (ppc_elf_check_relocs): Set PLT_IFUNC in local got
1533 masks for all local ifunc syms.
1534 (allocate_dynrelocs): Don't use htab->relgot for ifunc.
1535 (ppc_elf_size_dynamic_sections): Likewise.
1536 (ppc_elf_relocate_section): Likewise.
1537
6f820c85
WN
15382013-03-27 Will Newton <will.newton@linaro.org>
1539
1540 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
1541 dynamic reloc for symbols with dynindx == -1.
1542 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
1543 dynamic reloc for symbols with dynindx == -1.
1544
31943882
WN
15452013-03-27 Will Newton <will.newton@linaro.org>
1546
1547 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
1548 dynamic reloc for non-default visibility undefined weaks.
1549 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
1550 dynamic reloc for non-default visibility undefined weaks.
1551
ffd65175
AM
15522013-03-26 Alan Modra <amodra@gmail.com>
1553
1554 * elflink.c (_bfd_elf_add_default_symbol): Preserve section
1555 over _bfd_elf_merge_symbol calls.
1556
3a81e825
AM
15572013-03-26 Alan Modra <amodra@gmail.com>
1558
1559 * elflink.c (elf_link_add_object_symbols): Add assertion for
1560 common override alignment check code. Formatting.
1561
4f3fedcf
AM
15622013-03-25 Alan Modra <amodra@gmail.com>
1563
1564 * elflink.c (_bfd_elf_merge_symbol): Set old_alignment for
1565 usual common symbols as well as for dynamic. Add poldbfd param.
1566 Save old bfd. Adjust callers.
1567 (_bfd_elf_add_default_symbol): Add poldbfd param. Pass "section"
1568 and "value" by value, not pointer. Adjust caller.
1569 (elf_link_add_object_symbols): Combine undef_bfd and old_bfd vars.
1570 Delete code to set same. Use old_bfd and old_alignment from
1571 _bfd_elf_merge_symbol instead. Add default symbol before
1572 alignment and size checks. Wrap overlong lines.
1573
e3c9d234
AM
15742013-03-25 Alan Modra <amodra@gmail.com>
1575
1576 * elflink.c (_bfd_elf_add_default_symbol): Delete "override" param.
1577 (elf_link_add_object_symbols): Don't call _bfd_elf_add_default_symbol
1578 when override is true.
1579
6c9b78e6
AM
15802013-03-25 Alan Modra <amodra@gmail.com>
1581
1582 * elflink.c (_bfd_elf_merge_symbol): Use local var holding value
1583 of *sym_hash.
1584
191c0c42
AM
15852013-03-25 Alan Modra <amodra@gmail.com>
1586
1587 * elflink.c (_bfd_elf_merge_symbol): Don't discard TLS symbols here.
1588 Wrap long lines.
1589 (elf_link_add_object_symbols): Discard TLS symbols for --just-syms
1590 early in symbol loop.
1591
5d13b3b3
AM
15922013-03-25 Alan Modra <amodra@gmail.com>
1593
1594 * elf-bfd.h (struct elf_backend_data <merge_symbol>): Update proto.
1595 (_bfd_elf_init_reloc_shdr): Delete.
1596 * elf.c (_bfd_elf_init_reloc_shdr): Make static.
1597 * elf64-x86-64.c (elf_x86_64_merge_symbol): Trim parameters to
1598 just what is needed.
1599 * elflink.c (_bfd_elf_merge_symbol): Update bed->merge_symbol call.
1600
8a56bd02
AM
16012013-03-23 Alan Modra <amodra@gmail.com>
1602
1603 * elf-bfd.h (_bfd_elf_merge_symbol): Delete declaration.
1604 * elflink.c (_bfd_elf_merge_symbol): Make static.
1605 * elf32-sh-symbian.c (sh_symbian_relocate_section): Don't call
1606 _bfd_elf_merge_symbol, call _bfd_generic_link_add_one_symbol.
1607
96f29d96
AM
16082013-03-23 Alan Modra <amodra@gmail.com>
1609
1610 PR ld/15270
1611 * elflink.c (elf_link_add_object_symbols): Don't set def_regular
1612 or ref_regular for BFD_PLUGIN owned syms, or have them affect
1613 def_dynamic/ref_dynamic.
1614 (_bfd_elf_fix_symbol_flags): Don't set def_regular for BFD_PLUGIN
1615 owned syms.
1616
209be8d2
DM
16172013-03-22 David S. Miller <davem@davemloft.net>
1618
1619 * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of
1620 hwcaps attribute.
1621
5c0df484
NC
16222013-03-22 Achille Fouilleul <achille.fouilleul+binutils@gadz.org>
1623
1624 PR ld/14902
1625 * elf32-h8300.c (elf32_h8_relax_delete_bytes): Fix off by one
1626 errors adjusting relocs and symbols.
1627
81f5558e
NC
16282013-03-21 Michael Schewe <michael.schewe@gmx.net>
1629
1630 * elf32-h8300 (h8_relax_section): Add new relaxation of mov
1631 @(disp:32,ERx) to mov @(disp:16,ERx).
1632 (R_H8_DISP32A16): New reloc.
1633 Comments added and corrected.
1634 * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc.
1635 * bfd-in2.h: Regenerate.
1636 * libbfd.h: Regenerate.
1637
ce63b7b3
KT
16382013-03-21 Kai Tietz <ktietz@redhat.com>
1639
1640 * coffgen.c (coff_real_object_p): Make global.
1641 * peicode.h (coff_real_object_p): Add prototype.
1642 (FILHDR): Defined for COFF_IMAGE_WITH_PE as
1643 external_PEI_IMAGE_hdr structure.
1644 (coff_swap_filehdr_in): Handle variable header-size.
1645 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount
1646 of directory-entiries as specified in pe-header.
1647
088ca6c1
NC
16482013-03-21 Nick Clifton <nickc@redhat.com>
1649
1650 PR sim/15286
1651 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale,
1652 iWMMXt and iWMMXt2 processors from attributes.
1653
8877b5e5
AM
16542013-03-20 Alan Modra <amodra@gmail.com>
1655
1656 * elflink.c (_bfd_elf_make_dynamic_reloc_section): Override
1657 sh_type according to is_rela.
1658
ffa9430d
AM
16592013-03-18 Alan Modra <amodra@gmail.com>
1660
1661 PR ld/12549
1662 * elflink.c (elf_link_add_object_symbols): Exclude weak refs when
1663 considering whether an --as-needed library is needed.
1664
cc0ea93c
TT
16652013-03-14 Tom Tromey <tromey@redhat.com>
1666
1667 * opncls.c (bfd_get_debug_link_info): Rename from
1668 get_debug_link_info. Export. Update comment.
1669 (find_separate_debug_file): Update.
1670 * bfd-in2.h: Rebuild.
1671
59c108f7
NC
16722013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1673
a22cd6f6 1674 * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section
59c108f7 1675 support.
a22cd6f6 1676 (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related
59c108f7
NC
1677 relocs.
1678
abb3f6cc
NC
16792013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
1680
1681 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
1682 * elf.c (elfcore_write_s390_tdb): New function.
1683 (elfcore_write_register_note): Call it.
1684 (elfcore_grok_s390_tdb): New function.
1685 (elfcore_grok_note): Call it.
1686
af924177
MR
16872013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
1688
1689 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
1690
48385e38
CV
16912013-03-05 Corinna Vinschen <vinschen@redhat.com>
1692
1693 * config.bfd: Add x86_64-*-cygwin to list of supported targets.
1694
f75e0e33
AM
16952013-03-04 Alan Modra <amodra@gmail.com>
1696
1697 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust
1698 non-zero addends when relocatable, rather than addends >= 32768.
1699 Always zero "addend" before applying relocation.
1700
17e3916e
NC
17012013-03-04 Nick Clifton <nickc@redhat.com>
1702
1703 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation of
1704 file pointer offsets for thin archives.
1705
3064e1ff
JB
17062013-02-28 Nathan Sidwell <nathan@codesourcery.com>
1707
1708 * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call
1709 elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link.
1710
4107ae22
DD
17112013-02-27 DJ Delorie <dj@redhat.com>
1712
1713 * reloc.c (BFD_RELOC_RL78_CODE): Add.
1714 * libbfd.h: Regenerate.
1715 * bfd-in2.h: Regenerate.
1716 * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
1717 references in compuated relocs.
1718
730fbaf8
AG
17192013-02-26 Anthony Green <green@moxielogic.com>
1720
1721 * config.bfd: Extend moxie-rtems target triplet name support.
1722
35399224
L
17232013-02-21 H.J. Lu <hongjiu.lu@intel.com>
1724
1725 PR ld/15167
1726 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
1727 unique_global only for definition.
1728 * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
1729 here.
1730 (elf_link_add_object_symbols): Set unique_global only
1731 for definition.
1732
c0355132
AM
17332013-02-21 Alan Modra <amodra@gmail.com>
1734
1735 * elf-bfd.h (struct elf_build_id): Extracted from..
1736 (struct elf_build_id_info): ..here. Delete.
1737 (struct output_elf_obj_tdata): New, extracted from..
1738 (struct elf_obj_tdata): ..here. Reorganize for better packing.
1739 Add "o" field.
1740 (elf_program_header_size): Reference tdata->o.
1741 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
1742 elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
1743 elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
1744 * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
1745 when opening bfd in any mode that might write.
1746 (_bfd_elf_write_object_contents): Use build_id field in
1747 output_elf_obj_tdata.
1748 (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
1749 (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
1750
228e534f
AM
17512013-02-21 Alan Modra <amodra@gmail.com>
1752
1753 * elf-bfd.h (struct core_elf_obj_tdata): New.
1754 (struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
1755 core_program, and core_command. Add "core".
1756 * elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
1757 Update all refs to tdata core fields.
1758 * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
1759 * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
1760 * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
1761 * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
1762 * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
1763 * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
1764 * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
1765 to tdata core fields.
1766
12bd6957
AM
17672013-02-21 Alan Modra <amodra@gmail.com>
1768
1769 * elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map.
1770 Delete num_locals and num_globals.
1771 (elf_num_locals, elf_num_globals): Don't define.
1772 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
1773 elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define.
1774 * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c,
1775 * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c,
1776 * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c,
1777 * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata
1778 accessor macros.
1779 * elf.c (elf_map_symbols): Add pnum_locals param. Return
1780 number of locals syms via new param.
1781 (swap_out_syms): Adjust to suit elf_map_symbols change.
1782
cbf8d970
MR
17832013-02-19 Maciej W. Rozycki <macro@codesourcery.com>
1784
1785 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clear
1786 STO_MICROMIPS annotation.
1787
30e8ee25
AM
17882013-02-19 Alan Modra <amodra@gmail.com>
1789
1790 * configure.in: Bump version to 2.23.52.
1791 * elf-bfd.h (struct elf_build_id_info): New.
1792 (struct elf_obj_tdata): Delete after_write_object_contents,
1793 after_write_object_contents_info and build_id_size. Make build_id
1794 a pointer to struct elf_build_id_info.
1795 * elf.c (_bfd_elf_write_object_contents): Style. Update
1796 after_write_ibject_contents invocation.
1797 (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't
1798 allow zero size notes.
1799 * configure: Regenerate.
1800
5b175e56
MR
18012013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
1802
1803 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
1804 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
1805 (micromips_elf64_howto_table_rela): Likewise.
1806 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
1807 * elfn32-mips.c (elf_micromips_howto_table_rel): Add
1808 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
1809 (elf_micromips_howto_table_rela): Likewise.
1810 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
1811
e8faf7d1
MR
18122013-02-18 Paul Brook <paul@codesourcery.com>
1813
1814 * elfxx-mips.c (MICROMIPS_P): New macro.
1815 (_bfd_mips_elf_symbol_processing): Use it.
1816
c164a95d
MR
18172013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
1818
1819 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
1820 comment on _PROCEDURE_LINKAGE_TABLE_ creation.
1821
d45f8bda
AM
18222013-02-18 Alan Modra <amodra@gmail.com>
1823
1824 PR ld/12549
1825 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete.
1826 (_bfd_elf_strtab_clear_all_refs): Declare.
1827 (_bfd_elf_strtab_resize): Declare.
1828 * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete.
1829 (_bfd_elf_strtab_clear_all_refs): New function.
1830 (_bfd_elf_strtab_resize): Likewise.
1831 * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
1832
698600e4
AM
18332013-02-18 Alan Modra <amodra@gmail.com>
1834
1835 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,
1836 local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section,
1837 and elf_text_section to..
1838 * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs.
1839 * elf64-alpha.c (struct mips_elf_find_line): Rename to..
1840 (struct alpha_elf_find_line): ..this.
1841 (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
1842
3d5bef4c
L
18432013-02-16 H.J. Lu <hongjiu.lu@intel.com>
1844
1845 PR ld/15146
1846 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
1847 for references from the dummy bfd.
1848
313ed4a9
L
18492013-02-16 H.J. Lu <hongjiu.lu@intel.com>
1850
1851 PR ld/15149
1852 * elflink.c (elf_link_add_object_symbols): Also track weak
1853 references.
1854
989fbeff
L
18552013-02-15 H.J. Lu <hongjiu.lu@intel.com>
1856
1857 PR binutils/15151
1858 * archive.c (_bfd_find_nested_archive): Don't allow a nested
1859 archive pointing to itself.
1860 (_bfd_get_elt_at_filepos): Revert the last 2 changes.
1861
a043396b
NC
18622013-02-15 Nick Clifton <nickc@redhat.com>
1863
1864 PR binutils/15140
1865 * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop
1866 accessing a corrupt nested archive.
1867
13db6b44
RS
18682013-02-13 Richard Sandiford <rdsandiford@googlemail.com>
1869
1870 * elfxx-mips.c (mips_got_page_ref): New structure.
1871 (mips_got_page_entry): Use a section rather than a (bfd, symndx)
1872 pair to represent the anchor point.
1873 (mips_got_info): Add a got_page_refs field.
1874 (mips_elf_link_hash_table): Add a sym_cache field.
1875 (mips_got_page_ref_hash, mips_got_page_ref_eq): New functions.
1876 (mips_got_page_entry_hash, mips_got_page_entry_eq): Update for
1877 new anchor representation.
1878 (mips_elf_create_got_info): Create got_page_refs rather than
1879 got_page_entries.
1880 (mips_elf_record_got_page_ref): New function.
1881 (mips_elf_pages_for_range): Move further down file.
1882 (mips_elf_record_got_page_entry): Likewise. Take a got as argument.
1883 Use a section rather than a (bfd, symndx) pair to represent the
1884 anchor point.
1885 (mips_elf_resolve_got_page_ref): New function.
1886 (mips_elf_resolve_final_got_entries): Use it to populate
1887 got_page_entries.
1888 (_bfd_mips_elf_check_relocs): Call mips_elf_record_got_page_ref
1889 rather than mips_elf_record_got_page_entry. Only nullify h
1890 afterwards.
1891 (mips_elf_lay_out_got): Call mips_elf_resolve_final_got_entries
1892 earlier.
1893
57093f5e
RS
18942013-02-12 Richard Sandiford <rdsandiford@googlemail.com>
1895
1896 * elfxx-mips.c (mips_elf_lay_out_got): Count VxWorks GOT relocs
1897 in g->relocs.
1898
9c3f90c4
AM
18992013-02-12 Alan Modra <amodra@gmail.com>
1900
1901 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Provide
1902 suitable definition when using generic linker hash table.
1903
476366af
RS
19042013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1905
1906 * elfxx-mips.c (mips_elf_count_got_entries): Delete.
1907 (mips_elf_check_recreate_got, mips_elf_recreate_got): Take a
1908 mips_elf_traverse_got_arg. Count GOT entries.
1909 (mips_elf_resolve_final_got_entries): Take the bfd_link_info
1910 as argument. Update after above changes.
1911 (mips_elf_merge_got, mips_elf_lay_out_got): Don't call
1912 mips_elf_count_got_entries. Update the calls to
1913 mips_elf_resolve_final_got_entries.
1914
9ab066b4
RS
19152013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1916
1917 * elfxx-mips.c (mips_got_tls_type): New enum.
1918 (mips_got_entry): Add tls_initialized.
1919 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
1920 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
1921 GOT_TLS_TYPE masks.
1922 (mips_elf_reloc_tls_type, mips_tls_got_entries)
1923 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
1924 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
1925 than GOT_NORMAL.
1926 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
1927 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
1928 tls_initialized rather than GOT_TLS_DONE.
1929 (mips_tls_got_index): Delete.
1930 (mips_elf_local_got_index, mips_elf_global_got_index): Use
1931 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
1932 (mips_elf_record_got_entry): Initialize tls_initialized.
1933
6c42ddb9
RS
19342013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1935
1936 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
1937 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
1938 tls_ie_got_offset and tls_gd_got_offset.
1939 (mips_elf_link_hash_newfunc): Remove initialization.
1940 (mips_elf_create_got_info): Likewise.
1941 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
1942 (mips_tls_single_got_index): Delete.
1943 (mips_elf_local_got_index): Always use the GOT entry to track
1944 GOT indices.
1945 (mips_elf_global_got_index): Likewise.
1946 (mips_elf_create_local_got_entry): Assert that TLS entries have
1947 already been allocated.
1948 (mips_elf_record_global_got_symbol): Don't initialize
1949 tls_ie_type or tls_gd_type.
1950 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
1951 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
1952 entry.
1953 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
1954 the GOT entries.
1955 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
1956 have been allocated.
1957 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
1958 tls_ie_type and tls_gd_type.
1959
ebc53538
RS
19602013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1961
1962 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
1963 aliasing violation. Check for htab allocation failures.
1964
13fbec83
RS
19652013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1966
1967 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
1968 split out from...
1969 (mips_elf_global_got_index): ...here. Reorder arguments so that
1970 the output bfd and info come first.
1971 (mips_elf_calculate_relocation): Update the call to
1972 mips_elf_global_got_index accordingly.
1973 (_bfd_mips_elf_finish_dynamic_symbol): Use
1974 mips_elf_primary_global_got_index rather than
1975 mips_elf_global_got_index.
1976 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
1977
3dff0dd1
RS
19782013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1979
1980 * elfxx-mips.c (mips_got_entry): Update comments.
1981 (mips_elf_multi_got_entry_eq): Rename to...
1982 (mips_elf_got_entry_eq): ...this, deleting the old definition.
1983 (mips_elf_create_got_info): Remove master_got_p argument.
1984 Always use mips_elf_got_entry_eq.
1985 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
1986 Update calls accordingly.
1987
d7206569
RS
19882013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1989
1990 * elfxx-mips.c (mips_got_info): Remove bfd2got.
1991 (mips_elf_bfd2got_hash): Delete.
1992 (mips_elf_got_per_bfd_arg): Remove bfd2got.
1993 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
1994 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
1995 g->next to test for the multigot case. Use mips_elf_bfd_got rather
1996 than mips_elf_got_for_ibfd.
1997 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
1998 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
1999 (mips_elf_make_got_per_bfd): Replace with...
2000 (mips_elf_add_got_entry): ...this new function.
2001 (mips_elf_make_got_pages_per_bfd): Replace with...
2002 (mips_elf_add_got_page_entry): ...this new function.
2003 (mips_elf_merge_got_with): Replace bfd2got argument with separate
2004 bfd and GOT arguments. Use mips_elf_add_got_entry and
2005 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
2006 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
2007 to set the BFD's GOT and free the old table.
2008 (mips_elf_merge_got): Replace bfd2got argument with separate
2009 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
2010 Use mips_elf_count_got_entries to count the number of entries in
2011 each GOT. Update the calls to mips_elf_merge_got_with.
2012 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
2013 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
2014 (mips_elf_multi_got): Don't create the bfd2got hash table.
2015 Replace hash table traversal with a walk over the input bfds,
2016 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
2017 to set the output bfd's GOT.
2018 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
2019 bfds use the master GOT in the single-GOT case.
2020 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
2021 rather than mips_elf_got_for_ibfd.
2022
ee227692
RS
20232013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2024
2025 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
2026 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
2027 (mips_elf_record_global_got_symbol): Update the hash entry before
2028 adding the mips_got_entry. Use mips_elf_record_got_entry to do
2029 the latter.
2030 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
2031 (mips_elf_record_got_page_entry): Record the entry in both the
2032 master and bfd GOTs.
2033
72e7511a
RS
20342013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2035
2036 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
2037 create another one if necessary.
2038 (mips_elf_set_gotidx): New function.
2039 (mips_elf_set_global_gotidx): Use it.
2040 (mips_elf_initialize_tls_index): Likewise. Take a
2041 mips_elf_traverse_got_arg as argument.
2042 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
2043 (mips_elf_multi_got): Likewise. Cope with error returns from
2044 mips_elf_set_global_gotidx.
2045
ab361d49
RS
20462013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2047
2048 * elfxx-mips.c (mips_got_info): Add relocs field.
2049 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
2050 with...
2051 (mips_elf_traverse_got_arg): ...this new structure.
2052 (mips_elf_count_local_tls_relocs): Delete.
2053 (mips_elf_count_global_tls_relocs): Likewise.
2054 (mips_elf_count_got_entry): New function.
2055 (mips_elf_count_local_got_entries): Likewise.
2056 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
2057 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
2058 (mips_elf_record_local_got_symbol): Don't count got entries here.
2059 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
2060 (mips_elf_set_global_got_offset): Split into...
2061 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
2062 new functions. Take a mips_elf_traverse_got_arg rather than a
2063 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
2064 Use g->relocs to record the number of relocs needed for global GOT
2065 entries.
2066 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
2067 mips_elf_set_global_got_offset_arg. Use the relocs field to count
2068 relocations. Update for above function split.
2069 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
2070 to count both the number of GOT entries and the number of TLS
2071 relocs required by local entries. Likewise
2072 mips_elf_count_global_tls_entries and global entries.
2073 Remove uses of mips_elf_count_local_tls_relocs and
2074 mips_elf_count_global_tls_relocs.
2075
e641e783
RS
20762013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2077
2078 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
2079 to say that each structure represents only one type of TLS reference.
2080 (GOT_TLS_TYPE): New define.
2081 (mips_elf_link_hash_entry): Temporarily split tls_type and
2082 tls_got_offset into two variables each.
2083 (mips_elf_link_hash_newfunc): Update accordingly.
2084 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
2085 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
2086 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
2087 (mips_tls_got_relocs): Use a switch statement.
2088 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
2089 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
2090 local "offset" variable.
2091 (mips_tls_got_index): Remove r_type argument and assert. Remove
2092 code that handled entries with two TLS types; always use the
2093 original got_index instead.
2094 (mips_tls_single_got_index): New function.
2095 (mips_elf_local_got_index): Use entry->tls_type to check for
2096 TLS entries. Use mips_tls_single_got_index. Update call to
2097 mips_tls_got_index.
2098 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
2099 Use p->tls_type to check for TLS entries. Update call to
2100 mips_tls_got_index. Use mips_tls_single_got_index.
2101 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
2102 Use entry.tls_type to check for TLS entries.
2103 (mips_elf_record_global_got_symbol): Replace tls_flag argument
2104 with r_type argument. Use mips_elf_reloc_tls_type.
2105 Set up the new hash entry fields.
2106 (mips_elf_record_local_got_symbol): Replace tls_flag argument
2107 with r_type argument. Use mips_elf_reloc_tls_type and
2108 mips_tls_got_entries. Remove code that handled entries
2109 with multiple TLS types.
2110 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
2111 (mips_elf_initialize_tls_index): Handle new hash entry fields.
2112 Use equality rather than masks when checking for specific TLS types.
2113 Use mips_tls_got_entries. Remove code that handled entries
2114 with multiple TLS types.
2115 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
2116 testing the hash table entry.
2117 (_bfd_mips_elf_check_relocs): Update calls to
2118 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
2119 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
2120 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
2121
d9bf376d
RS
21222013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2123
2124 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
2125 (mips_elf_got_entry_hash): ...this, deleting the old version.
2126 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
2127 both types of GOT.
2128
5334aa52
RS
21292013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2130
2131 * elfxx-mips.c (mips_elf_create_got_info): New function.
2132 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
2133 (mips_elf_create_got_section): Likewise.
2134
946c668d
RS
21352013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2136
2137 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
2138 gotidx to -1.
2139
59b08994
RS
21402013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2141
2142 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
2143
d222d210
RS
21442013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2145
2146 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
2147 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
2148
1fd20d70
RS
21492013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2150
2151 * elfxx-mips.c (mips_elf_count_global_tls_entries)
2152 (mips_elf_count_global_tls_relocs): Don't count indirect or
2153 warning symbols.
2154 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
2155 number of TLS entries were allocated.
2156
7d94b319
RS
21572013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2158
2159 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
2160
17214937
RS
21612013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2162
2163 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
2164 if there are TLS relocations.
2165
9efeb38d
RS
21662013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2167
2168 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
2169 (mips_elf_resolve_final_got_entries): Remove bogus comment.
2170
9c3f90c4
AM
21712013-02-11 Alan Modra <amodra@gmail.com>
2172
2173 * elfcode.h (elf_checksum_contents): Free contents.
2174 * elf-bfd.h (_bfd_elf_link_hash_table_free): Declare.
2175 * elflink.c (_bfd_elf_link_hash_table_free): New function.
2176 (elf_final_link_free): New function, extracted from..
2177 (bfd_elf_final_link): ..here. Always call
2178 _bfd_elf_write_section_eh_frame_hdr.
2179 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Default to
2180 _bfd_elf_link_hash_table_free.
2181 * libbfd-in.h (_bfd_merge_sections_free): Declare.
2182 * libbfd.h: Regenerate.
2183 * merge.c (_bfd_merge_sections_free): New function.
2184 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Free
2185 hdr_info->array.
2186 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Call
2187 _bfd_elf_link_hash_table_free.
2188 * elf32-arm.c (elf32_arm_link_hash_table_free): Likewise.
2189 * elf32-avr.c (elf32_avr_link_hash_table_free): Likewise.
2190 * elf32-hppa.c (elf32_hppa_link_hash_table_free): Likewise.
2191 * elf32-i386.c (elf_i386_link_hash_table_free): Likewise.
2192 * elf32-m68hc1x.c (m68hc11_elf_hash_table_free): Likewise.
2193 * elf32-m68k.c (elf_m68k_link_hash_table_free): Likewise.
2194 * elf32-metag.c (elf_metag_link_hash_table_free): Likewise.
2195 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_free): Likewise.
2196 * elf64-aarch64.c (elf64_aarch64_link_hash_table_free): Likewise.
2197 * elf64-ia64-vms.c (elf64_ia64_hash_table_free): Likewise.
2198 * elf64-ppc.c (ppc64_elf_link_hash_table_free): Likewise.
2199 * elf64-x86-64.c (elf_x86_64_link_hash_table_free): Likewise.
2200 * elfnn-ia64.c (elfNN_ia64_hash_table_free): Likewise.
2201 * elf32-cr16.c (elf32_cr16_link_hash_table_free): Delete.
2202 (bfd_elf32_bfd_link_hash_table_free): Don't define.
2203 * elf32-tic6x.c (elf32_tic6x_link_hash_table_free): Delete.
2204 (bfd_elf32_bfd_link_hash_table_free): Dont' define.
2205
7bf52ea2
AM
22062013-02-10 Alan Modra <amodra@gmail.com>
2207
2208 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
2209 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
2210 * m68klinux.c (linux_link_hash_table_create): Likewise.
2211 * sparclinux.c (linux_link_hash_table_create): Likewise.
2212 * sunos.c (sunos_link_hash_table_create): Likewise.
2213 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
2214 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
2215 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
2216 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
2217 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
2218 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
2219 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
2220 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
2221 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
2222 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
2223 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
2224 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
2225 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
2226 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
2227 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
2228 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
2229 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
2230 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
2231 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
2232 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
2233 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
2234 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
2235 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
2236 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
2237 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
2238 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
2239 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
2240 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
2241
22cdc249
AM
22422013-02-10 Alan Modra <amodra@gmail.com>
2243
2244 * i386linux.c (linux_link_hash_table_create): Allocate table
2245 with bfd_zmalloc, not bfd_alloc.
2246 * pdp11.c (link_hash_table_create): Allocate table with
2247 bfd_malloc, not bfd_alloc.
2248 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
2249 with bfd_zmalloc, not bfd_zalloc.
2250 (bfin_link_hash_table_create): Likewise.
2251 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
2252 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
2253
0e5de31a
AM
22542013-02-10 Alan Modra <amodra@gmail.com>
2255
2256 PR ld/15113
2257 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
2258
ad1fc92a
NC
22592013-02-08 Markos Chandras <markos.chandras@imgtec.com>
2260
2261 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
2262 sections.
34c67f14
NC
2263 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
2264 symbol.
ad1fc92a 2265
170a8295
YZ
22662013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
2267
2268 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
2269 288 to 272.
2270
619a703e
AM
22712013-02-08 Alan Modra <amodra@gmail.com>
2272
2273 PR binutils/15106
2274 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
2275 * elf.c (elf_find_function): Revert last change. Use new
2276 tdata field rather than static vars for cache.
2277
02acbe22
L
22782013-02-07 H.J. Lu <hongjiu.lu@intel.com>
2279
2280 PR ld/15107
2281 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
2282 symbol is defined in regular object.
2283
1965d5f2
AM
22842013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
2285
2286 PR binutils/15106
2287 * elf.c (elf_find_function): Don't cache if symbols change.
2288
dafbc74d
AM
22892013-02-07 Alan Modra <amodra@gmail.com>
2290
2291 PR binutils/14873
2292 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
2293 copy attributes from or to non-ELF.
2294
20e52bd2
L
22952013-02-06 H.J. Lu <hongjiu.lu@intel.com>
2296
2297 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
2298 for non-zero TLS symbol.
2299 (elf_i386_relocate_section): Don't resolve size relocation against
2300 non-zero TLS symbol.
2301 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
2302 pc_count for non-zero TLS symbol.
2303 (elf_x86_64_relocate_section): Don't resolve size relocation
2304 against non-zero TLS symbol.
2305
36591ba1 23062013-02-06 Sandra Loosemore <sandra@codesourcery.com>
20e52bd2 2307 Andrew Jenner <andrew@codesourcery.com>
36591ba1
SL
2308
2309 Based on patches from Altera Corporation.
2310
2311 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
2312 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
2313 (BFD_BACKENDS): Add elf32-nios2.lo.
2314 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
2315 * Makefile.in: Regenerated.
2316 * configure.in: Add entries for bfd_elf32_bignios2_vec and
2317 bfd_elf32_littlenios2_vec.
2318 * configure: Regenerated.
2319 * config.bfd: Add cases for nios2.
2320 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
2321 (bfd_mach_nios2): Define.
2322 (bfd_nios2_arch): Declare.
2323 (bfd_archures_list): Add bfd_nios2_arch.
2324 * targets.c (bfd_elf32_bignios2_vec): Declare.
2325 (bfd_elf32_littlenios2_vec): Declare.
2326 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
2327 bfd_elf32_littlenios2_vec.
2328 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
2329 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
2330 * bfd-in2.h: Regenerated.
2331 * libbfd.h: Regenerated.
2332 * cpu-nios2.c: New file.
2333 * elf32-nios2.c: New file.
2334
ca6b5f82
AM
23352013-02-06 Alan Modra <amodra@gmail.com>
2336
2337 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
2338 stubs in stub_bfd.
2339
37ba9f93
AM
23402013-02-06 Alan Modra <amodra@gmail.com>
2341
2342 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
2343 * Makefile.in: Regenerate.
2344
70a38d42
SDJ
23452013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
2346 Pedro Alves <palves@redhat.com>
2347
2348 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
2349 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
2350 declaration.
2351 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
2352 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
2353 * elf-linux-psinfo.h: New file.
2354 * elf.c: Include elf-linux-psinfo.h.
2355 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
2356 New functions.
2357 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
2358 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
2359 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
2360 (elfcore_write_ppc_linux_prpsinfo32): New function.
2361
5ee43bc4
TG
23622013-02-04 Tristan Gingold <gingold@adacore.com>
2363
2364 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
2365 start address.
2366
0cadb185
AM
23672013-02-04 Alan Modra <amodra@gmail.com>
2368
2369 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
2370 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
2371 * Makefile.in: Regenerate.
2372 * po/SRC-POTFILES.in: Regenerate.
2373
5d42dfb5
AM
23742013-02-04 Alan Modra <amodra@gmail.com>
2375
2376 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
2377 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
2378
c57da1a7
AM
23792013-02-01 Alan Modra <amodra@gmail.com>
2380
2381 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
2382 clears def_regular.
2383
c0fd7846
TG
23842013-01-31 Tristan Gingold <gingold@adacore.com>
2385
2386 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
2387 earlier. Fix status checking of bfd_mach_o_scan_start_address.
2388 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
2389
b45b6908
AM
23902013-01-31 Alan Modra <amodra@gmail.com>
2391 David S. Miller <davem@davemloft.net>
2392
2393 PR ld/15056
2394 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
2395 references to __tls_get_addr.
2396 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
2397 vtinherit and vtentry reloc handling too.
2398 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
2399
bcaa2f82
AM
24002013-01-31 Alan Modra <amodra@gmail.com>
2401
2402 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
2403
22aa0c7e
AM
24042013-01-31 Alan Modra <amodra@gmail.com>
2405
2406 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
2407
bc30df16
AM
24082013-01-28 Alan Modra <amodra@gmail.com>
2409
2410 * elf64-ppc.c: Use %T to print symbols names and remove redundant
2411 "relocation" in error messages throughout file.
2412 (ppc64_elf_relocate_section): Remove sibling call error message,
2413 replace with "call lacks nop". Specially report errors for
2414 branches to function entry points via OPD lookup and branches
2415 to stubs. Remove NULL symbol handling now done by %T.
2416
89d7b8aa
AM
24172013-01-28 Alan Modra <amodra@gmail.com>
2418
2419 * archive.c (bfd_generic_archive_p): Return target and keep
2420 ardata on partial matches.
2421 * format.c (bfd_check_format_matches): Adjust for above
2422 change. Remove bfd_error_file_ambiguously_recognized dead
2423 code.
2424
c9ba0c87
AM
24252013-01-26 Alan Modra <amodra@gmail.com>
2426
2427 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
2428 bfd_preserve_finish): Move to..
2429 * format.c: ..here, splitting out..
2430 (bfd_reinit): ..this. New function.
2431 (bfd_check_format_matches): Use bfd_preserve_save/restore to
2432 keep bfd state for a match.
2433 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
2434 * elfcore.h (elf_core_file_p): Likewise.
2435 * mach-o.c (bfd_mach_o_header_p): Likewise.
2436 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
2437 * xsym.c (bfd_sym_object_p): Likewise.
2438 * mmo.c (mmo_scan): Clear abfd->symcount.
2439 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
2440 * section.c (bfd_section_list_clear): Clear section_htab.count.
2441 * bfd-in2.h: Regenerate.
2442
d79dcc73
NC
24432013-01-25 Michael Schewe <michael.schewe@gmx.net>
2444
2445 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
2446 second reloc, make sure that the reloc potentially exists first.
2447
78c8d46c
NC
24482013-01-24 Nick Clifton <nickc@redhat.com>
2449
2450 * archures.c: Add bfd_mach_v850e3v5.
2451 * bfd-in2.h: Regenerate.
2452 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
2453 * cpu-v850_rh850.c: Likewise.
2454 * elf32-v850.c: Add support for v850e3v5 architecture.
2455
1a18f0ae
NC
24562013-01-23 Markos Chandras <markos.chandras@imgtec.com>
2457
2458 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
2459
f65a9e53
AM
24602013-01-23 Leif Ekblad <leif@rdos.net>
2461
2462 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
2463
3bea1fcb
L
24642013-01-18 H.J. Lu <hongjiu.lu@intel.com>
2465
2466 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
2467 non-zero TLS symbol.
2468 (elf_i386_relocate_section): Resolve size relocation against
2469 non-zero TLS symbol.
2470 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
2471 for non-zero TLS symbol.
2472 (elf_x86_64_relocate_section): Resolve size relocation against
2473 non-zero TLS symbol.
2474
b1b00fcc
MF
24752013-01-18 Mike Frysinger <vapier@gentoo.org>
2476
2477 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
2478 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
2479 true.
2480
06a6a421
L
24812013-01-17 H.J. Lu <hongjiu.lu@intel.com>
2482
2483 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
2484 PC-relative relocation.
2485 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
2486 as PC-relative relocation.
2487
6a3e1bae
L
24882013-01-16 H.J. Lu <hongjiu.lu@intel.com>
2489
2490 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
2491 check.
2492 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
2493
2494 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
2495 and R_X86_64_SIZE64 check.
2496 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
2497 nor R_X86_64_SIZE64.
2498
1788fc08
L
24992013-01-16 H.J. Lu <hongjiu.lu@intel.com>
2500
2501 * bfd-in2.h: Regenerated.
2502 * libbfd.h: Likewise.
2503
2504 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
2505 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
2506 (elf_i386_check_relocs): Handle R_386_SIZE32.
2507 (elf_i386_gc_sweep_hook): Likewise.
2508 (elf_i386_relocate_section): Likewise.
2509
2510 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
2511 and R_X86_64_SIZE64 entries.
2512 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
2513 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
2514 (elf_x86_64_reloc_name_lookup): Likewise.
2515 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
2516 R_X86_64_SIZE64.
2517 (elf_x86_64_gc_sweep_hook): Likewise.
2518 (elf_x86_64_relocate_section): Likewise.
2519
2520 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
2521 BFD_RELOC_SIZE64.
2522
1e536451
L
25232013-01-15 H.J. Lu <hongjiu.lu@intel.com>
2524
2525 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
2526 with R_X86_64_RELATIVE64.
2527
77bf820f
NC
25282013-01-15 Nick Clifton <nickc@redhat.com>
2529
2530 * elf32-msp430.c: Fix spelling typo.
2531
e2458743
AM
25322013-01-15 Alan Modra <amodra@gmail.com>
2533
2534 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
2535 plt-thread-safe.
2536
405bf443
AM
25372013-01-14 Alan Modra <amodra@gmail.com>
2538
2539 PR binutils/14813
2540 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
2541 (memory_bclose): Likewise. Return 0 on success.
2542 * cache.c (cache_bclose): Likewise.
2543 * opncls.c (opncls_bclose, bfd_close): Likewise.
2544 * vms-lib.c (vms_lib_bclose): Likewise.
2545 * libbfd.h: Regenerate.
2546
ee659f1f
AM
25472013-01-13 Alan Modra <amodra@gmail.com>
2548
2549 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
2550 Add ref_dynamic_nonweak.
2551 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
2552 (_bfd_elf_merge_symbol): Don't call above function. Move
2553 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
2554 clear dynamic_def.
2555 (elf_link_add_object_symbols): Delete redundant "override" test.
2556 Don't set dynamic_def here.
2557 (elf_link_output_extsym): Update.
2558
68c4a57e
L
25592013-01-12 H.J. Lu <hongjiu.lu@intel.com>
2560
2561 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
2562 normal and TLS symbol access.
2563 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
2564
02be4619
AM
25652013-01-12 Alan Modra <amodra@gmail.com>
2566
2567 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
2568 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
2569 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
2570
a4542f1b
AM
25712013-01-12 Alan Modra <amodra@gmail.com>
2572
2573 PR ld/12549
2574 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
2575 (_bfd_elf_strtab_clear_all_refs): Define.
2576 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
2577 (_bfd_elf_strtab_clear_all_refs): Delete.
2578 * elflink.c (elf_link_add_object_symbols): Clear out added
2579 strtab refs. Correct handling of warning common symbols.
2580
68ffbac6
L
25812013-01-10 H.J. Lu <hongjiu.lu@intel.com>
2582
2583 * aout0.c: Remove trailing white spaces.
2584 * archive.c: Likewise.
2585 * archures.c: Likewise.
2586 * bfd-in.h: Likewise.
2587 * bfd-in2.h: Likewise.
2588 * coff-alpha.c: Likewise.
2589 * coff-i860.c: Likewise.
2590 * coff-mips.c: Likewise.
2591 * coff-ppc.c: Likewise.
2592 * coff-tic80.c: Likewise.
2593 * coff-x86_64.c: Likewise.
2594 * coff-z80.c: Likewise.
2595 * coffcode.h: Likewise.
2596 * coffgen.c: Likewise.
2597 * cofflink.c: Likewise.
2598 * compress.c: Likewise.
2599 * corefile.c: Likewise.
2600 * cpu-arm.c: Likewise.
2601 * cpu-avr.c: Likewise.
2602 * cpu-bfin.c: Likewise.
2603 * cpu-cr16.c: Likewise.
2604 * cpu-cr16c.c: Likewise.
2605 * cpu-crx.c: Likewise.
2606 * cpu-h8300.c: Likewise.
2607 * cpu-i386.c: Likewise.
2608 * cpu-lm32.c: Likewise.
2609 * cpu-m68k.c: Likewise.
2610 * cpu-moxie.c: Likewise.
2611 * cpu-msp430.c: Likewise.
2612 * cpu-sh.c: Likewise.
2613 * cpu-xc16x.c: Likewise.
2614 * dwarf2.c: Likewise.
2615 * ecofflink.c: Likewise.
2616 * ecoffswap.h: Likewise.
2617 * elf-ifunc.c: Likewise.
2618 * elf-m10300.c: Likewise.
2619 * elf-vxworks.c: Likewise.
2620 * elf32-avr.c: Likewise.
2621 * elf32-avr.h: Likewise.
2622 * elf32-cr16.c: Likewise.
2623 * elf32-cr16c.c: Likewise.
2624 * elf32-cris.c: Likewise.
2625 * elf32-crx.c: Likewise.
2626 * elf32-frv.c: Likewise.
2627 * elf32-hppa.c: Likewise.
2628 * elf32-i860.c: Likewise.
2629 * elf32-ip2k.c: Likewise.
2630 * elf32-iq2000.c: Likewise.
2631 * elf32-m32c.c: Likewise.
2632 * elf32-m68hc1x.c: Likewise.
2633 * elf32-msp430.c: Likewise.
2634 * elf32-mt.c: Likewise.
2635 * elf32-ppc.c: Likewise.
2636 * elf32-rl78.c: Likewise.
2637 * elf32-s390.c: Likewise.
2638 * elf32-score.h: Likewise.
2639 * elf32-sh-symbian.c: Likewise.
2640 * elf32-sh.c: Likewise.
2641 * elf32-spu.c: Likewise.
2642 * elf32-tic6x.c: Likewise.
2643 * elf32-v850.c: Likewise.
2644 * elf32-xc16x.c: Likewise.
2645 * elf32-xtensa.c: Likewise.
2646 * elf64-alpha.c: Likewise.
2647 * elf64-hppa.c: Likewise.
2648 * elf64-ppc.c: Likewise.
2649 * elf64-s390.c: Likewise.
2650 * elfcore.h: Likewise.
2651 * elflink.c: Likewise.
2652 * elfxx-mips.c: Likewise.
2653 * elfxx-sparc.c: Likewise.
2654 * elfxx-tilegx.c: Likewise.
2655 * ieee.c: Likewise.
2656 * libcoff.h: Likewise.
2657 * libpei.h: Likewise.
2658 * libxcoff.h: Likewise.
2659 * linker.c: Likewise.
2660 * mach-o-i386.c: Likewise.
2661 * mach-o-target.c: Likewise.
2662 * mach-o.c: Likewise.
2663 * mach-o.h: Likewise.
2664 * mmo.c: Likewise.
2665 * opncls.c: Likewise.
2666 * pdp11.c: Likewise.
2667 * pe-x86_64.c: Likewise.
2668 * peXXigen.c: Likewise.
2669 * pef-traceback.h: Likewise.
2670 * pei-x86_64.c: Likewise.
2671 * peicode.h: Likewise.
2672 * plugin.c: Likewise.
2673 * reloc.c: Likewise.
2674 * riscix.c: Likewise.
2675 * section.c: Likewise.
2676 * som.c: Likewise.
2677 * syms.c: Likewise.
2678 * tekhex.c: Likewise.
2679 * ticoff.h: Likewise.
2680 * vaxbsd.c: Likewise.
2681 * xcofflink.c: Likewise.
2682 * xtensa-isa.c: Likewise.
2683
a3c62988
NC
26842013-01-10 Will Newton <will.newton@imgtec.com>
2685
2686 * Makefile.am: Add Meta.
2687 * Makefile.in: Regenerate.
2688 * archures.c (bfd_mach_metag): New.
2689 * bfd-in2.h: Regenerate.
2690 * config.bfd: Add Meta.
2691 * configure: Regenerate.
2692 * configure.in: Add Meta.
2693 * cpu-metag.c: New file.
2694 * elf-bfd.h: Add Meta.
2695 * elf32-metag.c: New file.
2696 * elf32-metag.h: New file.
2697 * libbfd.h: Regenerate.
2698 * reloc.c: Add Meta relocations.
2699 * targets.c: Add Meta.
2700
652451f8
YZ
27012013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
2702
2703 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
2704 (elfcore_write_aarch_hw_break): Likewise.
2705 (elfcore_write_aarch_hw_watch): Likewise.
2706 * elf.c (elfcore_grok_aarch_tls): New function.
2707 (elfcore_grok_aarch_hw_break): Likewise.
2708 (elfcore_grok_aarch_hw_watch): Likewise.
2709 (elfcore_grok_note): Call the new functions to handle the
2710 corresponding notes.
2711 (elfcore_write_aarch_tls): New function.
2712 (elfcore_write_aarch_hw_break): Likewise.
2713 (elfcore_write_aarch_hw_watch): Likewise.
2714 (elfcore_write_register_note): Call the new functions to handle the
2715 corresponding pseudo sections.
2716
45a466b5
TT
27172013-01-07 Tom Tromey <tromey@redhat.com>
2718
2719 * section.c (_bfd_std_section): Rename from std_section.
f75e0e33
AM
2720 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
2721 (STD_SECTION): Update.
45a466b5
TT
2722 * bfd-in2.h: Rebuild.
2723
e407c74b
NC
27242013-01-04 Juergen Urban <JuergenUrban@gmx.de>
2725
2726 * archures.c (bfd_mach_mips5900): Define.
2727 * bfd-in2.h: Regenerate.
2728 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
2729 * cpu-mips.c: Add support for MIPS r5900.
2730 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
2731
9b239e0e
NC
27322013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
2733 Nick Clifton <nickc@redhat.com>
2734
2735 * elflink.c (get_value): Prevent the use of an undefined shift
2736 operation. Add sanity checks.
2737
bab4becb 27382013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
884f2a8d 2739
bab4becb 2740 * config.bfd (cr16*-*-uclinux*): New target support.
884f2a8d 2741
9911c0fc 2742
bab4becb 2743For older changes see ChangeLog-2012
56882138 2744\f
bab4becb 2745Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
2746
2747Copying and distribution of this file, with or without modification,
2748are permitted in any medium without royalty provided the copyright
2749notice and this notice are preserved.
2750
56882138
AM
2751Local Variables:
2752mode: change-log
2753left-margin: 8
2754fill-column: 74
2755version-control: never
2756End: