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