]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
2011-08-04 Tristan Gingold <gingold@adacore.com>
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
092d27ff
TG
12011-08-03 Tristan Gingold <gingold@adacore.com>
2
3 * mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case.
4 (bfd_mach_o_read_symtab_symbols): Return if no symbols.
5
80cab405
MR
62011-08-02 Maciej W. Rozycki <macro@codesourcery.com>
7
8 * elfxx-mips.c (check_4byte_branch): Remove function.
9 (check_relocated_bzc): New function.
10 (_bfd_mips_elf_relax_section): Permit the relaxation of LUI
11 instructions that immediately follow a compact branch
12 instruction.
13
c7131b65
AM
142011-08-02 Alan Modra <amodra@gmail.com>
15
16 * elf64-ppc.c (build_plt_stub): Correct emitted relocs when no
17 plt_static_chain.
18 (ppc_build_one_stub): Adjust get_relocs call to suit..
19 (ppc_size_one_stub): ..and reloc sizing. Correct plt size corner case.
20
d7921315
L
212011-08-01 H.J. Lu <hongjiu.lu@intel.com>
22
23 PR ld/13048
24 * archures.c (bfd_mach_i386_intel_syntax): New.
25 (bfd_mach_i386_i8086): Updated.
26 (bfd_mach_i386_i386): Likewise.
27 (bfd_mach_x86_64): Likewise.
28 (bfd_mach_x64_32): Likewise.
29 (bfd_mach_i386_i386_intel_syntax): Likewise.
30 (bfd_mach_x86_64_intel_syntax): Likewise.
31 (bfd_mach_x64_32_intel_syntax): Likewise.
32 (bfd_mach_l1om): Likewise.
33 (bfd_mach_l1om_intel_syntax): Likewise.
34 (bfd_mach_k1om): Likewise.
35 (bfd_mach_k1om_intel_syntax): Likewise.
36
37 * bfd-in2.h: Regenerated.
38
39 * cpu-i386.c (bfd_i386_compatible): Check mach instead of
40 bits_per_address.
41 (bfd_x64_32_arch_intel_syntax): Set bits_per_address to 64.
42 (bfd_x64_32_arch): Likewise.
43
44 * elf64-x86-64.c: Include "libiberty.h".
45 (x86_64_elf_howto_table): Append x32 R_X86_64_32.
46 (elf_x86_64_rtype_to_howto): Support x32 R_X86_64_32.
47 (elf_x86_64_reloc_type_lookup): Likewise.
48 (elf_x86_64_reloc_name_lookup): Likewise.
49 (elf_x86_64_relocate_section): Likewise.
50 (elf_x86_64_check_relocs): Allow R_X86_64_64 relocations for x32.
51
f41e5fcc
MR
522011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
53
54 * elfxx-mips.c (check_br32): Fix return type.
55
c088dedf
MR
562011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
57
58 * elfxx-mips.c (bz_insn_16): Correct opcode mask.
59
2309ddf2
MR
602011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
61
62 * elfxx-mips.c: Adjust comments throughout.
63 (mips_elf_relax_delete_bytes): Reshape code.
64 (_bfd_mips_elf_relax_section): Remove check for
65 R_MICROMIPS_GPREL16 relocations. Reshape code.
66
23209a78
RM
672011-07-28 Roland McGrath <mcgrathr@google.com>
68
a27e4371
RM
69 * elf32-i386.c (NACL_PLT_ENTRY_SIZE, NACLMASK): New macros.
70 (elf_i386_nacl_plt0_entry): New variable.
71 (elf_i386_plt_entry): New variable.
72 (elf_i386_nacl_pic_plt0_entry): New variable.
73 (elf_i386_nacl_pic_plt_entry): New variable.
74 (elf_i386_nacl_plt, elf_i386_nacl_arch_bed): New variables.
75 (elf_backend_arch_data): New macro setting for elf_i386_nacl_vec stanza.
76 (elf_backend_plt_alignment): Likewise.
77
78 * config.bfd: Handle i[3-7]86-*-nacl*.
79 * elf32-i386.c (bfd_elf32_i386_nacl_vec): New backend vector stanza.
80 * targets.c: Support bfd_elf32_i386_nacl_vec.
81 * configure.in: Likewise.
82 * configure: Regenerated.
83
25e762b9
RM
84 * elf32-i386.c (struct elf_i386_plt_layout): New type.
85 (GET_PLT_ENTRY_SIZE): New macro.
86 (elf_i386_plt): New variable.
87 (struct elf_i386_backend_data): New member `plt'.
88 (elf_i386_arch_bed): Add initializer for it.
89 (elf_i386_vxworks_arch_bed): Likewise.
90 (elf_i386_allocate_dynrelocs): Use GET_PLT_ENTRY_SIZE.
91 (elf_i386_plt_sym_val): Likewise.
92 (elf_i386_relocate_section): Likewise.
93 (elf_i386_finish_dynamic_symbol): Likewise.
94 Also use other elf_i386_plt_layout members for PLT details.
95 (elf_i386_finish_dynamic_sections): Likewise.
96
23209a78
RM
97 * elf32-i386.c (struct elf_i386_backend_data): New type.
98 (get_elf_i386_backend_data): New macro.
99 (elf_i386_arch_bed): New variable.
100 (elf_backend_arch_data): New macro.
101 (struct elf_i386_link_hash_table): Remove plt0_pad_byte and is_vxworks.
102 (elf_i386_link_hash_table_create): Don't initialize them.
103 (elf_i386_create_dynamic_sections): Find is_vxworks flags in
104 elf_i386_backend_data, not elf_i386_link_hash_table.
105 (elf_i386_adjust_dynamic_symbol): Likewise.
106 (elf_i386_allocate_dynrelocs): Likewise.
107 (elf_i386_readonly_dynrelocs): Likewise.
108 (elf_i386_size_dynamic_sections): Likewise.
109 (elf_i386_relocate_section): Likewise.
110 (elf_i386_finish_dynamic_symbol): Likewise.
111 (elf_i386_finish_dynamic_sections): Likewise. Same for plt0_pad_byte.
112 (elf_i386_vxworks_link_hash_table_create): Function removed.
113 (elf_i386_vxworks_arch_bed): New variable.
114 (elf_backend_arch_data): New macro in elf32-i386-vxworks stanza.
115
116 * elf-bfd.h (elf_backend_data): New member arch_backend_data.
117 * elfxx-target.h (elf_backend_arch_data): New macro.
118 (elfNN_bed): Use it as initializer for the new member.
119
d91a6875
NC
1202011-07-28 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
121
122 * elf64-hppa.c (elf_hppa_final_link_relocate): Fix handling of out
123 of range branches.
124
4ccf1e31
JJ
1252011-07-26 Jakub Jelinek <jakub@redhat.com>
126
127 * dwarf2.c (dwarf_debug_sections): Add .debug_macro
128 and .zdebug_macro entry.
129 (dwarf_debug_section_enum): Add debug_macro.
130
58d180e8
AM
1312011-07-26 Alan Modra <amodra@gmail.com>
132
133 * elf32-ppc.c: Include dwarf2.h.
134 (struct ppc_elf_link_hash_table): Add glink_eh_frame.
135 (ppc_elf_create_glink): Create .eh_frame section.
136 (glink_eh_frame_cie): New array.
137 (ppc_elf_size_dynamic_sections): Size glink_eh_frame.
138 (ppc_elf_finish_dynamic_sections): Write glink_eh_frame.
139 * elf64-ppc.c: Include dwarg2.h.
140 (struct ppc_link_hash_table): Add glink_eh_frame.
141 (create_linkage_sections): Create .eh_frame section.
142 (ppc64_elf_size_dynamic_sections): Arrange to drop unneeded
143 glink_eh_frame.
144 (glink_eh_frame_cie): New array.
145 (ppc64_elf_size_stubs): Size glink_eh_frame.
146 (ppc64_elf_build_stubs): Init glink_eh_frame contents.
147 (ppc64_elf_finish_dynamic_sections): Write glink_eh_frame.
148
18978b27
HPN
1492011-07-25 Hans-Peter Nilsson <hp@bitrange.com>
150
151 PR ld/12815
152 * elf64-mmix.c (struct _mmix_elf_section_data): New members
153 has_warned_bpo and has_warned_pushj.
154 (mmix_final_link_relocate): Remove PARAMS and PTR macros,
155 converting to ISO C. Add new parameter error_message. All
156 callers changed.
157 (mmix_elf_perform_relocation): Ditto.
158 <case R_MMIX_PUSHJ_STUBBABLE, case R_MMIX_BASE_PLUS_OFFSET>:
159 Handle the case where mmix_elf_check_common_relocs has not been
160 called, missing preparations for relocs of the respective type.
161
df58fc94 1622011-07-24 Chao-ying Fu <fu@mips.com>
58d180e8
AM
163 Ilie Garbacea <ilie@mips.com>
164 Maciej W. Rozycki <macro@codesourcery.com>
165 Joseph Myers <joseph@codesourcery.com>
166 Catherine Moore <clm@codesourcery.com>
df58fc94
RS
167 Richard Sandiford <rdsandiford@googlemail.com>
168
169 * archures.c (bfd_mach_mips_micromips): New macro.
170 * cpu-mips.c (I_micromips): New enum value.
171 (arch_info_struct): Add bfd_mach_mips_micromips.
172 * elfxx-mips.h (_bfd_mips_elf_is_target_special_symbol): New
173 prototype.
174 (_bfd_mips_elf_relax_section): Likewise.
175 (_bfd_mips16_elf_reloc_unshuffle): Rename to...
176 (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS
177 ASE.
178 (_bfd_mips16_elf_reloc_shuffle): Rename to...
179 (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE.
180 (gprel16_reloc_p): Handle microMIPS ASE.
181 (literal_reloc_p): New function.
182 * elf32-mips.c (elf_micromips_howto_table_rel): New variable.
183 (_bfd_mips_elf32_gprel16_reloc): Handle microMIPS ASE.
184 (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
185 and _bfd_mips_elf_reloc_shuffle changes.
186 (mips_elf_gprel32_reloc): Update comment.
187 (micromips_reloc_map): New variable.
188 (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE.
189 (mips_elf32_rtype_to_howto): Likewise.
190 (mips_info_to_howto_rel): Likewise.
191 (bfd_elf32_bfd_is_target_special_symbol): Define.
192 (bfd_elf32_bfd_relax_section): Likewise.
193 * elf64-mips.c (micromips_elf64_howto_table_rel): New variable.
194 (micromips_elf64_howto_table_rela): Likewise.
195 (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
196 and _bfd_mips_elf_reloc_shuffle changes.
197 (micromips_reloc_map): Likewise.
198 (bfd_elf64_bfd_reloc_type_lookup): Handle microMIPS ASE.
199 (bfd_elf64_bfd_reloc_name_lookup): Likewise.
200 (mips_elf64_rtype_to_howto): Likewise.
201 (bfd_elf64_bfd_is_target_special_symbol): Define.
202 * elfn32-mips.c (elf_micromips_howto_table_rel): New variable.
203 (elf_micromips_howto_table_rela): Likewise.
204 (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
205 and _bfd_mips_elf_reloc_shuffle changes.
206 (micromips_reloc_map): Likewise.
207 (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE.
208 (bfd_elf32_bfd_reloc_name_lookup): Likewise.
209 (mips_elf_n32_rtype_to_howto): Likewise.
210 (bfd_elf32_bfd_is_target_special_symbol): Define.
211 * elfxx-mips.c (LA25_LUI_MICROMIPS_1): New macro.
212 (LA25_LUI_MICROMIPS_2): Likewise.
213 (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise.
214 (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise.
215 (TLS_RELOC_P): Handle microMIPS ASE.
216 (mips_elf_create_stub_symbol): Adjust value of stub symbol if
217 target is a microMIPS function.
218 (micromips_reloc_p): New function.
219 (micromips_reloc_shuffle_p): Likewise.
220 (got16_reloc_p, call16_reloc_p): Handle microMIPS ASE.
221 (got_disp_reloc_p, got_page_reloc_p): New functions.
222 (got_ofst_reloc_p): Likewise.
223 (got_hi16_reloc_p, got_lo16_reloc_p): Likewise.
224 (call_hi16_reloc_p, call_lo16_reloc_p): Likewise.
225 (hi16_reloc_p, lo16_reloc_p, jal_reloc_p): Handle microMIPS ASE.
226 (micromips_branch_reloc_p): New function.
227 (tls_gd_reloc_p, tls_ldm_reloc_p): Likewise.
228 (tls_gottprel_reloc_p): Likewise.
229 (_bfd_mips16_elf_reloc_unshuffle): Rename to...
230 (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS
231 ASE.
232 (_bfd_mips16_elf_reloc_shuffle): Rename to...
233 (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE.
234 (_bfd_mips_elf_lo16_reloc): Handle microMIPS ASE.
235 (mips_tls_got_index, mips_elf_got_page): Likewise.
236 (mips_elf_create_local_got_entry): Likewise.
237 (mips_elf_relocation_needs_la25_stub): Likewise.
238 (mips_elf_calculate_relocation): Likewise.
239 (mips_elf_perform_relocation): Likewise.
240 (_bfd_mips_elf_symbol_processing): Likewise.
241 (_bfd_mips_elf_add_symbol_hook): Likewise.
242 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
243 (mips_elf_add_lo16_rel_addend): Likewise.
244 (_bfd_mips_elf_check_relocs): Likewise.
245 (mips_elf_adjust_addend): Likewise.
246 (_bfd_mips_elf_relocate_section): Likewise.
247 (mips_elf_create_la25_stub): Likewise.
248 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
249 (_bfd_mips_elf_gc_sweep_hook): Likewise.
250 (_bfd_mips_elf_is_target_special_symbol): New function.
251 (mips_elf_relax_delete_bytes): Likewise.
252 (opcode_descriptor): New structure.
253 (RA): New macro.
254 (OP32_SREG, OP32_TREG, OP16_VALID_REG): Likewise.
255 (b_insns_32, bc_insn_32, bz_insn_32, bzal_insn_32): New variables.
256 (beq_insn_32): Likewise.
257 (b_insn_16, bz_insn_16): New variables.
258 (BZC32_REG_FIELD): New macro.
259 (bz_rs_insns_32, bz_rt_insns_32): New variables.
260 (bzc_insns_32, bz_insns_16):Likewise.
261 (BZ16_REG, BZ16_REG_FIELD): New macros.
262 (jal_insn_32_bd16, jal_insn_32_bd32): New variables.
263 (jal_x_insn_32_bd32): Likewise.
264 (j_insn_32, jalr_insn_32): Likewise.
265 (ds_insns_32_bd16, ds_insns_32_bd32): Likewise.
266 (jalr_insn_16_bd16, jalr_insn_16_bd32, jr_insn_16): Likewise.
267 (JR16_REG): New macro.
268 (ds_insns_16_bd16): New variable.
269 (lui_insn): Likewise.
270 (addiu_insn, addiupc_insn): Likewise.
271 (ADDIUPC_REG_FIELD): New macro.
272 (MOVE32_RD, MOVE32_RS): Likewise.
273 (MOVE16_RD_FIELD, MOVE16_RS_FIELD): Likewise.
274 (move_insns_32, move_insns_16): New variables.
275 (nop_insn_32, nop_insn_16): Likewise.
276 (MATCH): New macro.
277 (find_match): New function.
278 (check_br16_dslot, check_br32_dslot): Likewise.
279 (check_br16, check_br32): Likewise.
280 (IS_BITSIZE): New macro.
281 (check_4byte_branch): New function.
282 (_bfd_mips_elf_relax_section): Likewise.
283 (_bfd_mips_elf_merge_private_bfd_data): Disallow linking MIPS16
284 and microMIPS modules together.
285 (_bfd_mips_elf_print_private_bfd_data): Handle microMIPS ASE.
286 * reloc.c (BFD_RELOC_MICROMIPS_7_PCREL_S1): New relocation.
287 (BFD_RELOC_MICROMIPS_10_PCREL_S1): Likewise.
288 (BFD_RELOC_MICROMIPS_16_PCREL_S1): Likewise.
289 (BFD_RELOC_MICROMIPS_GPREL16): Likewise.
290 (BFD_RELOC_MICROMIPS_JMP, BFD_RELOC_MICROMIPS_HI16): Likewise.
291 (BFD_RELOC_MICROMIPS_HI16_S): Likewise.
292 (BFD_RELOC_MICROMIPS_LO16): Likewise.
293 (BFD_RELOC_MICROMIPS_LITERAL): Likewise.
294 (BFD_RELOC_MICROMIPS_GOT16): Likewise.
295 (BFD_RELOC_MICROMIPS_CALL16): Likewise.
296 (BFD_RELOC_MICROMIPS_GOT_HI16): Likewise.
297 (BFD_RELOC_MICROMIPS_GOT_LO16): Likewise.
298 (BFD_RELOC_MICROMIPS_CALL_HI16): Likewise.
299 (BFD_RELOC_MICROMIPS_CALL_LO16): Likewise.
300 (BFD_RELOC_MICROMIPS_SUB): Likewise.
301 (BFD_RELOC_MICROMIPS_GOT_PAGE): Likewise.
302 (BFD_RELOC_MICROMIPS_GOT_OFST): Likewise.
303 (BFD_RELOC_MICROMIPS_GOT_DISP): Likewise.
304 (BFD_RELOC_MICROMIPS_HIGHEST): Likewise.
305 (BFD_RELOC_MICROMIPS_HIGHER): Likewise.
306 (BFD_RELOC_MICROMIPS_SCN_DISP): Likewise.
307 (BFD_RELOC_MICROMIPS_JALR): Likewise.
308 (BFD_RELOC_MICROMIPS_TLS_GD): Likewise.
309 (BFD_RELOC_MICROMIPS_TLS_LDM): Likewise.
310 (BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16): Likewise.
311 (BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16): Likewise.
312 (BFD_RELOC_MICROMIPS_TLS_GOTTPREL): Likewise.
313 (BFD_RELOC_MICROMIPS_TLS_TPREL_HI16): Likewise.
314 (BFD_RELOC_MICROMIPS_TLS_TPREL_LO16): Likewise.
315 * bfd-in2.h: Regenerate.
316 * libbfd.h: Regenerate.
317
7a9068fe
L
3182011-07-22 H.J. Lu <hongjiu.lu@intel.com>
319
320 * Makefile.am (ALL_MACHINES): Add cpu-k1om.lo.
321 (ALL_MACHINES_CFILES): Add cpu-k1om.c.
322 * Makefile.in: Regenerated.
323
324 * archures.c (bfd_architecture): Add bfd_arch_k1om.
325 (bfd_k1om_arch): New.
326 (bfd_archures_list): Add &bfd_k1om_arch.
327 * bfd-in2.h: Regenerated.
328
329 * config.bfd (targ64_selvecs): Add bfd_elf64_k1om_vec if
330 bfd_elf64_x86_64_vec is supported. Add bfd_elf64_k1om_freebsd_vec
331 if bfd_elf64_x86_64_freebsd_vec is supported.
332 (targ_selvecs): Likewise.
333
334 * configure.in: Support bfd_elf64_k1om_vec and
335 bfd_elf64_k1om_freebsd_vec.
336 * configure: Regenerated.
337
338 * cpu-k1om.c: New.
339
340 * elf64-x86-64.c (elf64_k1om_elf_object_p): New.
341 (bfd_elf64_k1om_vec): Likewise.
342 (bfd_elf64_k1om_freebsd_vec): Likewise.
343
344 * targets.c (bfd_elf64_k1om_vec): New.
345 (bfd_elf64_k1om_freebsd_vec): Likewise.
346 (_bfd_target_vector): Add bfd_elf64_k1om_vec and
347 bfd_elf64_k1om_freebsd_vec.
348
156f6ad8
JK
3492011-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
350
351 Fix false coff-go32-exe matches.
352 * coff-i386.c (TARGET_SYM) <_bfd_check_format>: Conditionally use
353 COFF_CHECK_FORMAT.
354 * coff-stgo32.c (go32_check_format): New forward declaration.
355 (COFF_CHECK_FORMAT): New defintion.
356 (go32_check_format): New function.
357
05aecedb
AM
3582011-07-15 Alan Modra <amodra@gmail.com>
359
360 * configure.in: Bump version.
361 * configure: Regenerate.
362
cbde55ab
AM
3632011-07-14 Alan Modra <amodra@gmail.com>
364
365 * linker.c (_bfd_generic_section_already_linked): Set l_flags.
366 * elf-bfd.h (struct already_linked): Forward declare.
367
ec24dc88
AM
3682011-07-14 Alan Modra <amodra@gmail.com>
369
370 * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.
371 (_bfd_elf_adjust_dynamic_symbol): Remove FIXME.
372
9df0ef5f
AM
3732011-07-14 Alan Modra <amodra@gmail.com>
374
375 * elf64-ppc.c (struct ppc_link_hash_table): Add plt_static_chain.
376 (build_plt_stub): Add plt_static_chain param, don't load r11 if false.
377 (build_tls_get_addr_stub): Likewise.
378 (ppc_build_one_stub): Update calls to above.
379 (ppc_size_one_stub): Adjust stub size.
380 (ppc64_elf_size_stubs): Add plt_static_chain param, save to htab.
381 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
382
8de863a5
NC
3832011-07-12 Nick Clifton <nickc@redhat.com>
384
385 * elf32-arm.c (elf32_arm_section_flags): Delete.
386 (elf_backend_section_flags): Remove.
387
a92c088a
L
3882011-07-11 H.J. Lu <hongjiu.lu@intel.com>
389
390 PR ld/12982
391 * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN
392 when setting stack_flags.
393
ae17ab41
CM
3942011-07-11 Catherine Moore <clm@codesourcery.com>
395
396 * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition.
397 * aout-target.h (MY_bfd_lookup_section_flags): New definition.
398 * aout-tic30.c (MY_bfd_lookup_section_flags): New definition.
58d180e8 399 * bfd-in2.h: Regenerated.
ae17ab41
CM
400 * bfd.c (bfd_lookup_section_flags): New definition.
401 * binary.c (binary_bfd_lookup_section_flags): New definition.
402 * bout.c (b_out_bfd_lookup_section_flags): New definition.
403 * coff-alpha.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
404 * coff-mips.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
405 * coff-rs6000.c (rs6000coff_vec): Include
406 bfd_generic_lookup_section_flags.
407 (pmac_xcoff_vec): Likewise.
408 * coffcode.h (coff_bfd_lookup_section_flags): New definition.
409 * coff64-rs6000.c (rs6000coff64_vec): Include
410 bfd_generic_lookup_section_flags.
411 (aix5coff64_vec): Likewise.
412 * ecoff.c (bfd_debug_section): Initialize flag_info field.
413 * elf-bfd.h (elf_backend_lookup_section_flags_hook): Declare.
414 (bfd_elf_lookup_section_flags): Declare.
415 * elflink.c (bfd_elf_lookup_section_flags): New function.
416 * elfxx-target.h (bfd_elfNN_bfd_lookup_section_flags): Define.
417 (elf_backend_lookup_section_flags_hook): Define.
418 (elf_backend_data): Add elf_backend_lookup_section_flags_hook.
419 * i386msdos.c (msdos_bfd_lookup_section_flags): New define.
420 * i386os9k.c (os9k_bfd_lookup_section_flags): New define.
421 * ieee.c (ieee_bfd_lookup_section_flags): New define.
422 * ihex.c (ihex_bfd_lookup_section_flags): New define.
423 * libbfd-in.h (_bfd_nolink_bfd_lookup_section_flags): Declare.
424 (bfd_generic_lookup_section_flags): Declare.
425 * libbfd.h: Regenerated.
426 * mach-o-target.c (bfd_mach_o_bfd_lookup_section_flags): New.
427 * mmo.c (mmo_bfd_lookup_section_flags): New definition.
428 * nlm-target.h (nlm_bfd_lookup_section_flags): New definition.
429 * oasys.c (oasys_bfd_lookup_section_flags): New definition.
430 * pef.c (bfd_pef_bfd_lookup_section_flags): New definition.
431 * plugin.c (bfd_plugin_bfd_lookup_section_flags): New definition.
432 * ppcboot.c (ppcboot_bfd_lookup_section_flags): New definition.
433 * reloc.c (bfd_generic_lookup_section_flags): New function.
434 * som.c (som_bfd_lookup_section_flags): New definition.
435 * srec.c (srec_bfd_lookup_section_flags): New definition.
436 * targets.c (flag_info): Declare.
437 (NAME##_bfd_lookup_section_flags): Add to LINK jump table.
438 (_bfd_lookup_section_flags): New.
439 * tekhex.c (tekhex_bfd_lookup_section_flags): New definition.
440 * versados.c (versados_bfd_lookup_section_flags): New definition.
441 * vms-alpha.c (alpha_vms_bfd_lookup_section_flag): New definition.
442 * xsym.c (bfd_sym_bfd_lookup_section_flags): New definition.
443
23ebcd30
L
4442011-07-11 H.J. Lu <hongjiu.lu@intel.com>
445
446 PR ld/12978
447 * elfnn-ia64.c (count_dyn_reloc): Fix a typo.
448
0c511000
AM
4492011-07-09 Alan Modra <amodra@gmail.com>
450
451 PR ld/12942
452 * elflink.c (elf_link_add_object_symbols): Use elf_discarded_section
453 rather than kept_section to determine whether a symbol is from
454 a discarded section.
455 * cofflink.c (coff_link_add_symbols): Make symbols from discarded
456 sections appear undefined.
457
4582011-07-09 H.J. Lu <hongjiu.lu@intel.com>
459
460 PR ld/12942
461 * elf-bfd.h (_bfd_elf_section_already_linked): Replace
462 "asection *" with "struct already_linked *".
463 * libbfd-in.h (_bfd_nolink_section_already_linked): Likewise.
464 (_bfd_generic_section_already_linked): Likewise.
465 (bfd_section_already_linked_table_insert): Likewise.
466 (struct already_linked): New.
467 (struct bfd_section_already_linked): Use it.
468 * elflink.c (_bfd_elf_section_already_linked): Replace.
469 "asection *" with "struct already_linked *". Replace the plugin
470 dummy with the LTO output.
471 * linker.c (_bfd_generic_section_already_linked): Likewise.
472 * targets.c (struct already_linked): Add forward declaration.
473 (bfd_target): Replace "struct bfd_section *" with
474 "struct already_linked *" in _section_already_linked.
475 * bfd-in2.h: Regenerate.
476 * libbfd.h: Regenerate.
477
74f26653
TG
4782011-07-06 Tristan Gingold <gingold@adacore.com>
479
480 * mach-o.h: Move loader related definitions to
481 include/mach-o/loader.h. Include it.
482
52cb9dfe
L
4832011-07-05 H.J. Lu <hongjiu.lu@intel.com>
484
485 * elf64-x86-64.c (elf_backend_post_process_headers): Always
486 define to _bfd_elf_set_osabi.
487
9c55345c
TS
4882011-07-03 Samuel Thibault <samuel.thibault@gnu.org>
489 Thomas Schwinge <thomas@schwinge.name>
490
2bb70ae0 491 PR binutils/12913
9c55345c
TS
492 * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of
493 ELFOSABI_LINUX alias.
494 * elf32-hppa.c: Likewise.
495 * elf32-i370.c: Likewise.
496 * elf64-hppa.c: Likewise.
497
28ede8be
ILT
4982011-07-01 Ian Lance Taylor <iant@google.com>
499
500 * elf32-i386.c (elf_i386_eh_frame_plt): Correct expression: change
501 DW_OP_lit3 to DW_OP_lit2.
502
c79d6685
AM
5032011-07-01 Alan Modra <amodra@gmail.com>
504
505 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Don't look at
506 dyn relocs when called to copy flags for a weak sym.
507 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
508 (ppc64_elf_merge_private_bfd_data): Delete.
509 (bfd_elf64_bfd_merge_private_bfd_data): Define as
510 _bfd_generic_verify_endian_match.
511
dc076558
BS
5122011-06-30 Bernd Schmidt <bernds@codesourcery.com>
513
514 * bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
515 link_info is NULL.
516
25d41743
TG
5172011-06-28 Tristan Gingold <gingold@adacore.com>
518
519 * vms-alpha.c (vms_private_data_struct): Make vms_linkage_index
520 unsigned int.
521 (_bfd_vms_write_etir): Write linkage index from reloc.
522
9b02d212
TG
5232011-06-28 Fawzi Mohamed <fawzi.mohamed@nokia.com>
524
525 * mach-o.c (bfd_mach_o_read_command): Also ignore
526 BFD_MACH_O_LC_ROUTINES_64.
527
a8efca92
TG
5282011-06-27 Tristan Gingold <gingold@adacore.com>
529
530 * vms-alpha.c (_bfd_vms_write_etir): Use 'section' to get current
531 section target index.
532
20ee8bc9
NC
5332011-06-27 Nick Clifton <nickc@redhat.com>
534
535 * cisco-core.c (cisco_core_little_vec): Add initialization of
536 match_priority field.
537
4c95ab76
TG
5382011-06-27 Tristan Gingold <gingold@adacore.com>
539
540 * cache.c: Include bfd_stdint.h.
541 (cache_bmmap): Change profile. Return region start and size.
542 * bfdio.c (struct bfd_iovec): Change bmmap profile.
543 (bfd_mmap): Change profile and adjust. Update comment.
544 (memory_bmmap): Change profile.
545 * opncls.c (opncls_bmmap): Change profile.
546 * vms-lib.c (vms_lib_bmmap): Likewise.
547 * libbfd.h: Regenerate.
548 * bfd-in2.h: Regenerate.
549
62a35308
TG
5502011-06-27 Tristan Gingold <gingold@adacore.com>
551
552 * vms-misc.c (vms_time_to_time_t): Adjust overflow detection.
553 Add comment.
554
5d430399
L
5552011-06-25 H.J. Lu <hongjiu.lu@intel.com>
556
557 * elf64-x86-64.c (elf_backend_post_process_headers): Don't
558 define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM.
559
332ce62b
JK
5602011-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize
563 PLT_EH_FRAME.
564 * elf32-i386.c (elf_i386_link_hash_table): Likewise.
565
7dbf3b76
RH
5662011-06-24 Richard Henderson <rth@redhat.com>
567
568 PR ld/12928
569 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Recover the
570 tlsgd insn before swapping adjacent insns.
571
d120eec2
TG
5722011-06-24 Tristan Gingold <gingold@adacore.com>
573
574 * vms-alpha.c (alpha_vms_slurp_relocs): Add a guard for relocs in the
575 absolute section.
576
1e951488
AM
5772011-06-24 Alan Modra <amodra@gmail.com>
578
579 PR ld/12921
580 * elf.c (assign_file_positions_for_load_sections): Don't align
581 sh_offset for all SHT_NOBITS sections here, just .tbss sections
582 that don't get a PT_LOAD.
583
b68593b9
KK
5842011-06-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
585
586 * elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.
587 (sh_elf_check_relocs): Likewise.
588
e366eeae
RH
5892011-06-22 Richard Henderson <rth@redhat.com>
590
591 * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
592 TPREL in a PIE image.
593 (alpha_dynamic_entries_for_reloc): Likewise.
594 (elf64_alpha_relocate_section): Allow TPREL in PIE images.
595 (elf64_alpha_relax_got_load): Likewise.
596
9ec0c936
RR
5972011-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
598
c79d6685
AM
599 * elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32
600 for PIE.
9ec0c936 601
3a5dbfb2
AM
6022011-06-22 Alan Modra <amodra@gmail.com>
603
604 * elflink.c (_bfd_elf_merge_symbol): Allow type changes for
605 plugin symbols. Fix segfault on linker scrip defined syms.
606
e41b3a13
JJ
6072011-06-20 Jakub Jelinek <jakub@redhat.com>
608
609 PR ld/12570
610 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations
611 at all for linker created .eh_frame sections.
612 (_bfd_elf_discard_section_eh_frame): Handle linker created
613 .eh_frame sections with no relocations.
614 * elf64-x86-64.c: Include dwarf2.h.
615 (elf_x86_64_eh_frame_plt): New variable.
616 (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
617 PLT_FDE_LEN_OFFSET): Define.
618 (struct elf_x86_64_link_hash_table): Add plt_eh_frame field.
619 (elf_x86_64_create_dynamic_sections): Create and fill in
620 .eh_frame section for .plt section.
621 (elf_x86_64_size_dynamic_sections): Write .plt section size
622 into .eh_frame FDE covering .plt section.
623 (elf_x86_64_finish_dynamic_sections): Write .plt section
624 start into .eh_frame FDE covering .plt section. Call
625 _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
626 (elf_backend_plt_alignment): Define to 4.
627 * elf32-i386.c: Include dwarf2.h.
628 (elf_i386_eh_frame_plt): New variable.
629 (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
630 PLT_FDE_LEN_OFFSET): Define.
631 (struct elf_i386_link_hash_table): Add plt_eh_frame field.
632 (elf_i386_create_dynamic_sections): Create and fill in
633 .eh_frame section for .plt section.
634 (elf_i386_size_dynamic_sections): Write .plt section size
635 into .eh_frame FDE covering .plt section.
636 (elf_i386_finish_dynamic_sections): Write .plt section
637 start into .eh_frame FDE covering .plt section. Call
638 _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
639 (elf_backend_plt_alignment): Define to 4.
640
8b778942
L
6412011-06-19 H.J. Lu <hongjiu.lu@intel.com>
642
643 * elf64-x86-64.c (elf_backend_post_process_headers): Defined
644 for x32.
645
8fd79e71
L
6462011-06-16 H.J. Lu <hongjiu.lu@intel.com>
647
648 * elf64-x86-64.c: Include <stdarg.h> and CORE_HEADER if
649 CORE_HEADER is defined.
650 (elf_x86_64_write_core_note): New.
651 (elf_backend_write_core_note): Likewise.
652
653 * hosts/x86-64linux.h (uint64_t): New.
654 (user_regsx32_struct): Likewise.
655 (elf_gregx32_t): Likewise.
656 (ELF_NGREGX32): Likewise.
657 (elf_gregsetx32_t): Likewise.
658 (elf_prstatusx32): Likewise.
659 (prstatusx32_t): Likewise.
660 (user_fpregs32_struct): Removed.
661 (user_fpxregs32_struct): Likewise.
662 (user32): Likewise.
663 (elf_fpregset32_t): Likewise.
664 (elf_fpxregset32_t): Likewise.
665 (prgregset32_t): Likewise.
666 (prfpregset32_t): Likewise.
667
bcd823f1
L
6682011-06-16 H.J. Lu <hongjiu.lu@intel.com>
669
670 * elf64-x86-64.c (elf_x86_64_grok_prstatus): Support x32.
671 (elf_x86_64_grok_psinfo): Likewise.
672
a06c7d5a
NC
6732011-06-16 Nick Clifton <nickc@redhat.com>
674
675 * elf.c (elf_find_function): Fail if not provided with a symbol
676 table.
677
faa9a424
UW
6782011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
679
680 * elf-bfd.h (elfcore_write_arm_vfp): Add prototype.
681 * elf.c (elfcore_grok_arm_vfp): New function.
682 (elfcore_grok_note): Call it to handle NT_ARM_VFP notes.
683 (elfcore_write_arm_vfp): New function.
684 (elfcore_write_register_note): Call it to handle .reg-arm-vfp.
685
48f4b4f5
RH
6862011-06-14 Richard Henderson <rth@redhat.com>
687
688 * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Rename from
689 elf64_alpha_merge_ind_symbols; adjust for the generic interface.
690 (elf64_alpha_always_size_sections): Don't call
691 elf64_alpha_merge_ind_symbols.
692 (elf_backend_copy_indirect_symbol): New.
693
4d16d575
AM
6942011-06-14 Alan Modra <amodra@gmail.com>
695
696 PR ld/12887
697 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Check sec_info_type
698 before doing anything.
699 (_bfd_elf_discard_section_eh_frame): Likewise.
700
1e24d83c
AM
7012011-06-14 Alan Modra <amodra@gmail.com>
702
703 * Makefile.am: Formatting.
704 * Makefile.in: Regenerate.
705 * configure.in (bfd_elf64_tilegx_vec): Add elfxx-tilegx.lo.
706 * po/SRC-POTFILES.in: Regnerate.
707
e4d34ace
AM
7082011-06-14 Alan Modra <amodra@gmail.com>
709
710 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Don't use PTR.
711 (allocate_dynrelocs, readonly_dynrelocs): Replace PTR with void *.
712 Don't handle warning symbols here.
713 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): As above.
714 (allocate_dynrelocs, readonly_dynrelocs): As above.
715
7f6ab9f8
AM
7162011-06-14 Alan Modra <amodra@gmail.com>
717
718 PR ld/12851
719 * elflink.c (_bfd_elf_gc_mark_extra_sections): New function.
720 (elf_gc_sweep): Don't treat debug and sections like .comment
721 specially here.
722 (bfd_elf_gc_sections): Treat note sections as gc roots only when
723 not part of a group. Always call gc_mark_extra_sections.
724 * elf-bfd.h (_bfd_elf_gc_mark_extra_sections): Declare.
725 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Default to
726 _bfd_elf_gc_mark_extra_sections.
727 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Call
728 _bfd_elf_gc_mark_extra_sections.
729 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): Likewise.
730
09d9a62a
NC
7312011-06-13 Nick Clifton <nickc@redhat.com>
732
733 * elf32-tilepro.c (tilepro_elf_check_relocs): Delete unused local
734 variable 'local_got_offsets'.
735 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
736 (tilegx_finish_dyn): Delete unused local variable 'abi_64_p'.
737
aa137e4d
NC
7382011-06-13 Walter Lee <walt@tilera.com>
739
740 * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo.
741 (ALL_MACHINE_CFILES): Add cpu-tilegx.c and cpu-tilepro.c.
742 (BFD32_BACKENDS): Add elf32-tilegx.lo, elf32-tilepro.lo,
743 and elfxx-tilegx.lo.
744 (BFD32_BACKENDS_CFILES): Add elf32-tilegx.c elf32-tilepro.c, and
745 elfxx-tilegx.c.
746 (BFD64_BACKENDS): Add elf64-tilegx.lo.
747 (BFD64_BACKENDS_CFILES): Add elf64-tilegx.c.
748 * Makefile.in: Regenerate.
749 * arctures.c (bfd_architecture): Define bfd_arch_tilepro,
750 bfd_arch_tilegx, bfd_mach_tilepro, bfd_mach_tilegx.
751 (bfd_arch_info): Add bfd_tilegx_arch, bfd_tilepro_arch.
752 (bfd_archures_list): Add bfd_tilegx_arch, bfd_tilepro_arch.
753 bfd-in2.h: Regenerate.
754 * config.bfd: Handle tilegx-*-* and tilepro-*-*.
755 * configure.in: Handle bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
756 and bfd_elf64_tilegx_vec.
757 * configure: Regenerate.
758 * elf-bfd.h (enum elf_target_id): Define TILEGX_ELF_DATA and
759 TILEPRO_ELF_DATA.
760 * libbfd.h: Regenerate.
761 * reloc.c: Add BFD_RELOC_TILEPRO_{COPY, GLOB_DAT, JMP_SLOT,
762 RELATIVE, BROFF_X1, JOFFLONG_X1, JOFFLONG_X1_PLT, IMM8_X0,
763 IMM8_Y0, IMM8_X1, IMM8_Y1, DEST_IMM8_X1, MT_IMM15_X1, MF_IMM15_X1,
764 IMM16_X0, IMM16_X1, IMM16_X0_LO, IMM16_X1_LO, IMM16_X0_HI,
765 IMM16_X1_HI, IMM16_X0_HA, IMM16_X1_HA, IMM16_X0_PCREL,
766 IMM16_X1_PCREL, IMM16_X0_LO_PCREL, IMM16_X1_LO_PCREL,
767 IMM16_X0_HI_PCREL, IMM16_X1_HI_PCREL, IMM16_X0_HA_PCREL,
768 IMM16_X1_HA_PCREL, IMM16_X0_GOT, IMM16_X1_GOT, IMM16_X0_GOT_LO,
769 IMM16_X1_GOT_LO, IMM16_X0_GOT_HI, IMM16_X1_GOT_HI,
770 IMM16_X0_GOT_HA, IMM16_X1_GOT_HA, MMSTART_X0, MMEND_X0,
771 MMSTART_X1, MMEND_X1, SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1,
772 IMM16_X0_TLS_GD, IMM16_X1_TLS_GD, IMM16_X0_TLS_GD_LO,
773 IMM16_X1_TLS_GD_LO, IMM16_X0_TLS_GD_HI, IMM16_X1_TLS_GD_HI,
774 IMM16_X0_TLS_GD_HA, IMM16_X1_TLS_GD_HA, IMM16_X0_TLS_IE,
775 IMM16_X1_TLS_IE, IMM16_X0_TLS_IE_LO, IMM16_X1_TLS_IE_LO,
776 IMM16_X0_TLS_IE_HI, IMM16_X1_TLS_IE_HI, IMM16_X0_TLS_IE_HA,
777 IMM16_X1_TLS_IE_HA, TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
778 Add BFD_RELOC_TILEGX_{HW0, HW1, HW2, HW3, HW0_LAST, HW1_LAST,
779 HW2_LAST, COPY, GLOB_DAT, JMP_SLOT, RELATIVE, BROFF_X1,
780 JUMPOFF_X1, JUMPOFF_X1_PLT, IMM8_X0, IMM8_Y0, IMM8_X1, IMM8_Y1,
781 DEST_IMM8_X1, MT_IMM14_X1, MF_IMM14_X1, MMSTART_X0, MMEND_X0,
782 SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1, IMM16_X0_HW0,
783 IMM16_X1_HW0, IMM16_X0_HW1, IMM16_X1_HW1, IMM16_X0_HW2,
784 IMM16_X1_HW2, IMM16_X0_HW3, IMM16_X1_HW3, IMM16_X0_HW0_LAST,
785 IMM16_X1_HW0_LAST, IMM16_X0_HW1_LAST, IMM16_X1_HW1_LAST,
786 IMM16_X0_HW2_LAST, IMM16_X1_HW2_LAST, IMM16_X0_HW0_PCREL,
787 IMM16_X1_HW0_PCREL, IMM16_X0_HW1_PCREL, IMM16_X1_HW1_PCREL,
788 IMM16_X0_HW2_PCREL, IMM16_X1_HW2_PCREL, IMM16_X0_HW3_PCREL,
789 IMM16_X1_HW3_PCREL, IMM16_X0_HW0_LAST_PCREL,
790 IMM16_X1_HW0_LAST_PCREL, IMM16_X0_HW1_LAST_PCREL,
791 IMM16_X1_HW1_LAST_PCREL, IMM16_X0_HW2_LAST_PCREL,
792 IMM16_X1_HW2_LAST_PCREL, IMM16_X0_HW0_GOT, IMM16_X1_HW0_GOT,
793 IMM16_X0_HW1_GOT, IMM16_X1_HW1_GOT, IMM16_X0_HW2_GOT,
794 IMM16_X1_HW2_GOT, IMM16_X0_HW3_GOT, IMM16_X1_HW3_GOT,
795 IMM16_X0_HW0_LAST_GOT, IMM16_X1_HW0_LAST_GOT,
796 IMM16_X0_HW1_LAST_GOT, IMM16_X1_HW1_LAST_GOT,
797 IMM16_X0_HW2_LAST_GOT, IMM16_X1_HW2_LAST_GOT, IMM16_X0_HW0_TLS_GD,
798 IMM16_X1_HW0_TLS_GD, IMM16_X0_HW1_TLS_GD, IMM16_X1_HW1_TLS_GD,
799 IMM16_X0_HW2_TLS_GD, IMM16_X1_HW2_TLS_GD, IMM16_X0_HW3_TLS_GD,
800 IMM16_X1_HW3_TLS_GD, IMM16_X0_HW0_LAST_TLS_GD,
801 IMM16_X1_HW0_LAST_TLS_GD, IMM16_X0_HW1_LAST_TLS_GD,
802 IMM16_X1_HW1_LAST_TLS_GD, IMM16_X0_HW2_LAST_TLS_GD,
803 IMM16_X1_HW2_LAST_TLS_GD, IMM16_X0_HW0_TLS_IE,
804 IMM16_X1_HW0_TLS_IE, IMM16_X0_HW1_TLS_IE, IMM16_X1_HW1_TLS_IE,
805 IMM16_X0_HW2_TLS_IE, IMM16_X1_HW2_TLS_IE, IMM16_X0_HW3_TLS_IE,
806 IMM16_X1_HW3_TLS_IE, IMM16_X0_HW0_LAST_TLS_IE,
807 IMM16_X1_HW0_LAST_TLS_IE, IMM16_X0_HW1_LAST_TLS_IE,
808 IMM16_X1_HW1_LAST_TLS_IE, IMM16_X0_HW2_LAST_TLS_IE,
809 IMM16_X1_HW2_LAST_TLS_IE, TLS_DTPMOD64, TLS_DTPOFF64, TLS_TPOFF64,
810 TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
811 * targets.c (bfd_elf32_tilegx_vec): Declare.
812 (bfd_elf32_tilepro_vec): Declare.
813 (bfd_elf64_tilegx_vec): Declare.
814 (bfd_target_vector): Add bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
815 and bfd_elf64_tilegx_vec.
816 * cpu-tilegx.c: New file.
817 * cpu-tilepro.c: New file.
818 * elf32-tilepro.h: New file.
819 * elf32-tilepro.c: New file.
820 * elf32-tilegx.c: New file.
821 * elf32-tilegx.h: New file.
822 * elf64-tilegx.c: New file.
823 * elf64-tilegx.h: New file.
824 * elfxx-tilegx.c: New file.
825 * elfxx-tilegx.h: New file.
826
7686d77d
AM
8272011-06-13 Alan Modra <amodra@gmail.com>
828
829 * linker.c (bfd_link_hash_traverse): Follow warning symbol link.
830 (_bfd_generic_link_write_global_symbol, fix_syms): Don't handle
831 warning symbols here.
832 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
833 * elf32-arm.c (allocate_dynrelocs_for_symbol,
834 elf32_arm_readonly_dynrelocs): Likewise.
835 * elf32-bfin.c (bfin_discard_copies): Likewise.
836 * elf32-cris.c (elf_cris_adjust_gotplt_to_got,
837 elf_cris_discard_excess_dso_dynamics,
838 elf_cris_discard_excess_program_dynamics): Likewise.
839 * elf32-hppa.c (allocate_plt_static, allocate_dynrelocs,
840 clobber_millicode_symbols, readonly_dynrelocs): Likewise.
841 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
842 * elf32-i386.c (elf_i386_allocate_dynrelocs,
843 elf_i386_readonly_dynrelocs): Likewise.
844 * elf32-lm32.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
845 * elf32-m32c.c (m32c_relax_plt_check, m32c_relax_plt_realloc): Likewise.
846 * elf32-m32r.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
847 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
848 * elf32-microblaze.c (allocate_dynrelocs): Likewise.
849 * elf32-ppc.c (allocate_dynrelocs, maybe_set_textrel): Likewise.
850 * elf32-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
851 * elf32-score.c (score_elf_sort_hash_table_f): Likewise.
852 * elf32-score7.c (score_elf_sort_hash_table_f): Likewise.
853 * elf32-sh.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
854 * elf32-tic6x.c (elf32_tic6x_allocate_dynrelocs,
855 elf32_tic6x_readonly_dynrelocs): Likewise.
856 * elf32-vax.c (elf_vax_discard_copies): Likewise.
857 * elf32-xstormy16.c (xstormy16_relax_plt_check,
858 xstormy16_relax_plt_realloc): Likewise.
859 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Likewise.
860 * elf64-alpha.c (elf64_alpha_output_extsym,
861 elf64_alpha_calc_got_offsets_for_symbol,
862 elf64_alpha_calc_dynrel_sizes, elf64_alpha_size_rela_got_1): Likewise.
863 * elf64-hppa.c (elf64_hppa_mark_exported_functions,
864 allocate_global_data_opd, elf64_hppa_mark_milli_and_exported_functions,
865 elf_hppa_unmark_useless_dynamic_symbols,
866 elf_hppa_remark_useless_dynamic_symbols): Likewise.
867 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref, func_desc_adjust,
868 adjust_opd_syms, adjust_toc_syms, allocate_dynrelocs,
869 readonly_dynrelocs, merge_global_got, reallocate_got,
870 undo_symbol_twiddle): Likewise.
871 * elf64-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
872 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
873 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs,
874 elf_x86_64_readonly_dynrelocs): Likewise.
875 * elflink.c (elf_link_renumber_hash_table_dynsyms,
876 elf_link_renumber_local_hash_table_dynsyms, _bfd_elf_export_symbol,
877 _bfd_elf_link_find_version_dependencies,
878 _bfd_elf_link_assign_sym_version, _bfd_elf_adjust_dynamic_symbol,
879 _bfd_elf_link_sec_merge_syms, elf_adjust_dynstr_offsets,
880 elf_collect_hash_codes, elf_collect_gnu_hash_codes,
881 elf_renumber_gnu_hash_syms, elf_gc_sweep_symbol,
882 elf_gc_propagate_vtable_entries_used,
883 elf_gc_smash_unused_vtentry_relocs, bfd_elf_gc_mark_dynamic_ref_symbol,
884 elf_gc_allocate_got_offsets): Likewise.
885 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free,
886 elfNN_ia64_global_dyn_sym_thunk): Likewise.
887 * elfxx-mips.c (mips_elf_check_symbols, mips_elf_output_extsym,
888 mips_elf_sort_hash_table_f, allocate_dynrelocs): Likewise.
889 * elfxx-sparc.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
890 * i386linux.c (linux_tally_symbols): Likewise.
891 * m68klinux.c (linux_tally_symbols): Likewise.
892 * sparclinux.c (linux_tally_symbols): Likewise.
893 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
894 * xcofflink.c (xcoff_post_gc_symbol): Likewise.
895
896 * elflink.c (elf_link_output_extsym): Make it a bfd_hash_traverse
897 function. Update all callers.
898 * aoutx.h (aout_link_write_other_symbol): Likewise.
899 * pdp11.c (aout_link_write_other_symbol): Likewise.
900 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
901 * ecoff.c (ecoff_link_write_external): Likewise.
902 * xcofflink.c (xcoff_write_global_symbol): Likewise.
903 * vms-alpha.c (alpha_vms_link_output_symbol): Likewise. Handle
904 warning symbols.
905 * ecoff.c (ecoff_link_hash_traverse): Delete.
906 * coff-ppc.c (ppc_bfd_coff_final_link): Use bfd_hash_traverse for
907 _bfd_coff_write_global_sym.
908 * libcoff-in.h (_bfd_coff_write_global_sym): Update prototype.
909 * libcoff.h: Regenerate.
910
894891db
NC
9112011-06-10 Nick Clifton <nickc@redhat.com>
912
913 * elflink.c (_bfd_elf_link_create_dynamic_sections): If the
914 backend does not provide a function for creating dynamic sections
915 then fail.
916 (bfd_elf_final_link): Issue a warning message if a dynamic section
917 has the SHT_NOTE type.
918 (bfd_elf_final_link): Do not look for dynamic strings in a section
919 that does not have the SHT_STRTAB type or the name .dynstr.
920 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Fail if the got
921 section is not in the output binary.
922 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Likewise.
923
d17fe7b7
TG
9242011-06-09 Tristan Gingold <gingold@adacore.com>
925
926 * elfnn-ia64.c (elfNN_ia64_relax_section, elfNN_ia64_choose_gp)
927 (elfNN_ia64_relocate_section, elfNN_vms_object_p): Remove trailing
928 spaces.
929
8076289e
TG
9302011-06-09 Tristan Gingold <gingold@adacore.com>
931
932 * bfd.c (bfd_get_sign_extend_vma): Handle aixcoff.
933
ba85c43e
NC
9342011-06-09 Nick Clifton <nickc@redhat.com>
935
936 PR ld/12845
937 * elf.c (_bfd_elf_init_private_section_data): Add an assertion
938 that the output section has an allocated bfd_elf_section_data
939 structure.
940 * elfxx-mips.c (mips_elf_check_symbols): Do not create a stub for
941 symbols in sections that have been removed by garbage collection.
942
adc7571d
L
9432011-06-08 H.J. Lu <hongjiu.lu@intel.com>
944
945 * elf64-x86-64.c (elf_x86_64_check_relocs): Allow R_X86_64_64
946 relocations in SEC_DEBUGGING sections when building shared
947 libraries.
948
24007750
L
9492011-06-08 H.J. Lu <hongjiu.lu@intel.com>
950
951 PR ld/12851
952 * elflink.c (elf_gc_sweep): Don't check SHT_NOTE sections here.
953 (bfd_elf_gc_sections): Also check SHT_NOTE sections.
954
e79064fe
TG
9552011-06-08 Tristan Gingold <gingold@adacore.com>
956
957 * makefile.vms (OBJS): Add elfxx-ia64.obj
958 Remove vax case.
959
d3aeb6ee
AM
9602011-06-08 Alan Modra <amodra@gmail.com>
961
962 * aix386-core.c, * cisco-core.c, * hpux-core.c, * osf-core.c,
963 * sco5-core.c: Init match_priority field.
964
2a41f396
AM
9652011-06-08 Alan Modra <amodra@gmail.com>
966
967 * elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning and
968 indirect links here.
969
1d859532
JB
9702011-06-07 Joel Brobecker <brobecker@adacore.com>
971
972 * irix-core.c (irix_core_vec): Add match_priority field.
973
0aabe54e
AM
9742011-06-06 Alan Modra <amodra@gmail.com>
975
976 * targets.c (bfd_target): Make ar_max_namelen an unsigned char.
977 Add match_priority.
978 * configure.in: Bump bfd version.
979 * elfcode.h (elf_object_p): Delete hacks preventing match of
980 EM_NONE and ELFOSABI_NONE targets when a better match exists.
981 * elfxx-target.h (elf_match_priority): Define and use.
982 * format.c (bfd_check_format_matches): Use target match_priority
983 to choose best of multiple matching targets. In cases with multiple
984 matches rerun _bfd_check_format if we don't choose the last match.
985 * aout-adobe.c, * aout-arm.c, * aout-target.h, * aout-tic30.c,
986 * binary.c, * bout.c, * coff-alpha.c, * coff-i386.c, * coff-i860.c,
987 * coff-i960.c, * coff-ia64.c, * coff-mips.c, * coff-or32.c,
988 * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, * coff-tic30.c,
989 * coff-tic54x.c, * coff-x86_64.c, * coff64-rs6000.c, * coffcode.h,
990 * i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c, * mach-o-target.c,
991 * mipsbsd.c, * mmo.c, * nlm-target.h, * oasys.c, * pdp11.c,
992 * pe-mips.c, * pef.c, * plugin.c, * ppcboot.c, * som.c, * srec.c,
993 * tekhex.c, * trad-core.c, * verilog.c, * versados.c, * vms-alpha.c,
994 * vms-lib.c, * xsym.c: Init match_priority field.
995 * configure: Regenerate.
996 * bfd-in2.h: Regenerate.
997
70b554c9
L
9982011-06-04 H.J. Lu <hongjiu.lu@intel.com>
999
1000 PR ld/12842
1001 * elfcode.h (elf_object_p): Revert the last change.
1002
d50ec8a7
AM
10032011-06-04 Alan Modra <amodra@gmail.com>
1004
1005 * archures.c (bfd_arch_get_compatible): If one arch is unknown,
1006 return the other arch.
1007 * elfcode.h (elf_object_p): Allow explicit match to generic ELF
1008 target.
1009
164a5cb7
NC
10102011-06-03 Bertram Felgenhauer <bertram.felgenhauer@gmail.com>
1011
1012 PR ld/12682
1013 * hash.c (higher_primer_number): Add more, small, prime numbers.
1014 (bfd_hash_set_default_size): Likewise.
1015
cc643b88
NC
10162011-06-02 Nick Clifton <nickc@redhat.com>
1017
1018 * coff-mcore.c: Fix spelling typo.
1019 * coff-stgo32.c: Likewise.
1020 * elf32-arm.c: Likewise.
1021 * elf32-avr.c: Likewise.
1022 * elf-m68hc1x.c: Likewise.
1023 * elf32-mcore.c: Likewise.
1024 * elf32-mep.c: Likewise.
1025 * elf32-mt.c: Likewise.
1026 * elf32-ppc.c: Likewise.
1027 * elf32-xtensa.c: Likewise.
1028 * elf64-ppc.c: Likewise.
1029 * elfxx-mips.c: Likewise.
1030 * netbsd.h: Likewise.
1031 * nlmcode.h: Likewise.
1032 * vms-alpha.c: Likewise.
1033 * po/bfd.pot: Regenerate.
1034 * po/SRC-POTFILES.in: Regenerate.
1035
4c422395
DD
10362011-06-01 DJ Delorie <dj@redhat.com>
1037
1038 * config.bfd: Add bfd_elf32_rx_be_ns_vec.
1039 * target.c: Likewise.
1040 * configure.in: Likewise.
1041 * configure.in: Regenerate.
1042 * elf32-rx.c: Add elf32-rx-be-ns target.
1043 (rx_elf_object_p): Never allow the be-ns target by default,
1044 only allow it if the user requests it.
1045
4b819e1f
L
10462011-06-01 H.J. Lu <hongjiu.lu@intel.com>
1047
1048 * elf32-i386.c (elf_i386_size_dynamic_sections): Properly warn
1049 relocation in readonly section in a shared object.
1050 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
1051
74ce8de7
NC
10522011-05-31 Nick Clifton <nickc@redhat.com>
1053
1054 * archive.c (adjust_relative_path): Fix comment to prevent it
1055 corrupting the auto-generated bfd.h.
1056
63e1a0fc
PB
10572011-05-31 Paul Brook <paul@codesourcery.com>
1058
1059 * elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion
1060 for known functions.
1061 (elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function
1062 symbols.
1063
12352d3f
PB
10642011-05-31 Paul Brook <paul@codesourcery.com>
1065
1066 * elf32-arm.c (arm_stub_is_thumb): Add
1067 arm_stub_long_branch_v4t_thumb_tls_pic.
1068 (elf32_arm_final_link_relocate): TLS stubs are always ARM.
1069 Handle Thumb stubs.
1070
c4948609
NC
10712011-05-27 Nick Clifton <nickc@redhat.com>
1072
1073 PR binutils/12710
1074 * archive.c (_bfd_get_elt_at_filepos): Set correct error value if
1075 unable to read a file pointed to by an entry in a thin archive.
1076 (adjust_relative_path): Use lrealpath to canonicalize paths.
1077 Handle the case where the reference path is above the current
1078 path in the directory tree.
1079
6769d501
L
10802011-05-26 H.J. Lu <hongjiu.lu@intel.com>
1081
1082 PR ld/12809
1083 * elf64-x86-64.c (elf_x86_64_relocate_section): Handle
1084 R_X86_64_TPOFF64 in executable.
1085
2676a7d9
AM
10862011-05-26 Alan Modra <amodra@gmail.com>
1087
1088 * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Remove most of comment.
1089 * elflink.c (_bfd_elf_symbol_refs_local_p): Expand
1090 local_protected comment.
1091
cbe79dfe
TG
10922011-05-25 Tristan Gingold <gingold@adacore.com>
1093
1094 * configure.in (bfd_elf32_ia64_big_vec, bfd_elf32_ia64_hpux_big_vec)
1095 (bfd_elf64_ia64_big_vec, bfd_elf64_ia64_hpux_big_vec)
1096 (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_vms_vec): Add elfxx-ia64.lo
1097 * Makefile.am (BFD64_BACKENDS): Add elfxx-ia64.lo
1098 (BFD64_BACKENDS_CFILES): Add elfxx-ia64.c
1099 (elf32-ia64.c): Created from elfnn-ia64.c
1100 (elf64-ia64.c): Likewise.
1101 * elfxx-ia64.h: New file.
1102 * elfxx-ia64.c: Split with elfnn-ia64.c. Keep only the following
1103 functions.Includes elfxx-ia64.h.
1104 (elfNN_ia64_reloc): Renames to ia64_elf_reloc. Adjust error message.
1105 (IA64_HOWTO): Adjust.
1106 (lookup_howto): Renames to ia64_elf_lookup_howto. Make it public.
1107 (elfNN_ia64_reloc_type_lookup): Renames to
1108 ia64_elf_reloc_type_lookup. Make it public. Adjust calls.
1109 (elfNN_ia64_reloc_name_lookup): Renames to
1110 ia64_elf_reloc_name_lookup. Make it public.
1111 (elfNN_ia64_relax_br): Renames to ia64_elf_relax_br. Make it public.
1112 (elfNN_ia64_relax_brl): Renames to ia64_elf_relax_brl. Make it
1113 public.
1114 (elfNN_ia64_relax_ldxmov): Renames to ia64_elf_relax_ldxmov.
1115 Move it and make it public. Move prototype to elfxx-ia64.h
1116 (elfNN_ia64_install_value): Renames to ia64_elf_install_value.
1117 Move prototype to elfxx-ia64.h
1118 * elfnn-ia64.c: New file, split from elfxx-ia64.c.
1119 (elfNN_ia64_info_to_howto): Adjust calls.
1120 (elfNN_ia64_relax_section): Adjust calls.
1121 (count_dyn_reloc): Fix typo.
1122 (elfNN_ia64_relocate_section): Adjust calls.
1123 (elfNN_ia64_finish_dynamic_symbol): Likewise.
1124 (bfd_elfNN_bfd_reloc_type_lookup)
1125 (bfd_elfNN_bfd_reloc_name_lookup): Adjust macros.
1126 * configure: Regenerate.
1127 * Makefile.in: Regenerate.
1128
1ce74905
DD
11292011-05-23 DJ Delorie <dj@redhat.com>
1130
1131 * elf32-rx.c (rx_elf_object_p): When reading an RX object in, undo
1132 the vma/lma swapping done in elf32_rx_modify_program_headers.
1133
997fbe36
NC
11342011-05-23 Nick Clifton <nickc@redhat.com>
1135
1136 * elf-m10300.c (mn10300_elf_mkobject): New function.
1137 (bfd_elf32_mkobject): Define.
1138
6061a67d
AM
11392011-05-23 Alan Modra <amodra@gmail.com>
1140
1141 * elf-bfd.h: Comment typo fix.
1142 * elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with
1143 struct elf_dyn_relocs throughout.
1144 * elf64-ppc.c (struct ppc_dyn_relocs): Likewise.
1145
25f53a85
AM
11462011-05-23 Alan Modra <amodra@gmail.com>
1147
1148 * elf32-frv.c: Use info->callbacks->einfo throughout file in linker
1149 functions rather than warning callback or _bfd_error_handler.
1150 * elf32-ppc.c: Likewise.
1151 * elf64-ppc.c: Likewise.
1152 * elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost
1153 arg error.
1154 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
1155
6de6a7fe
AM
11562011-05-23 Alan Modra <amodra@gmail.com>
1157
1158 PR 12763
1159 * elf.c (assign_file_positions_for_load_sections): Set sh_offset for
1160 .tbss, and page align same for all SHT_NOBITS sections.
1161
86b2281f
AM
11622011-05-21 Alan Modra <amodra@gmail.com>
1163
1164 PR 12763
1165 * elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs
1166 from PT_TLS header.
1167 (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD
1168 segment if just for .tbss.
1169 (assign_file_positions_for_load_sections): Don't report "can't
1170 allocate in segment" errors for .tbss.
1171 (assign_file_positions_for_non_load_sections): Don't set p_filesz
1172 from SHT_NOBITS section filepos.
1173
4a732032
BS
11742011-05-20 Bernd Schmidt <bernds@codesourcery.com>
1175
1176 * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for
1177 R_C6000_PCR_H16 and R_C6000_PCR_L16.
1178 (elf32_tic6x_relocate_section): Handle them.
1179
dd98f8d2
NC
11802011-05-18 Nick Clifton <nickc@redhat.com>
1181
1182 PR ld/12761
1183 * elflink.c (elf_link_add_object_symbols): Process .gnu.warning
1184 sections when building shared libraries.
1185
9c489990
NC
11862011-05-18 Rafał Krypa <r.krypa@samsung.com>
1187
1188 PR ld/12778
1189 * elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
1190 reloc pointer.
1191
5ccfed9b
TG
11922011-05-18 Tristan Gingold <gingold@adacore.com>
1193
1194 * xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols.
1195 (xcoff_sweep): Always keep dwarf sections.
1196 (xcoff_link_input_bfd): Handle dwarf symbols and sections.
1197
85645aed
TG
11982011-05-18 Tristan Gingold <gingold@adacore.com>
1199
1200 * libxcoff.h (struct xcoff_dwsect_name): New type.
1201 (XCOFF_DWSECT_NBR_NAMES): New macro.
1202 (xcoff_dwsect_names): Declare.
1203 * coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections.
1204 (styp_to_sec_flags): Ditto.
1205 (coff_new_section_hook): Ditto.
1206 (coff_slurp_symbol_table): Handle C_DWARF and C_INFO.
1207 * coff-rs6000.c (xcoff_dwsect_name): New variable.
1208
84bff83f
NC
12092011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
1210
1211 PR ld/12759
1212 * elf32-rx.c (ignore_lma): New variable.
1213 (bfd_elf32_rx_set_target_flags): Add ignore_lma parameter.
1214 (rx_modify_program_headers): Only copy the LMA into the VMA if
1215 ignore_lma is true.
1216
16d96b5b
AM
12172011-05-17 Alan Modra <amodra@gmail.com>
1218
1219 PR ld/12760
1220 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call.
1221 * elflink.c (elf_link_add_object_symbols): Likewise.
1222 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
1223
41e04eaa
AM
12242011-05-16 Alan Modra <amodra@gmail.com>
1225
1226 * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
1227
77c56f44
RS
12282011-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1229
1230 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
1231 global GOT entries for GOT_PAGE relocations against global symbols.
1232
2a616379
BS
12332011-05-13 Bernd Schmidt <bernds@codesourcery.com>
1234
1235 * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New.
1236 (tic6x-*-*): Replaced by these.
1237 * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function.
1238 (elf32_tic6x_check_relocs): Create dynamic sections if -shared.
1239 (elf_backend_relocs_compatible, elf_backend_post_process_headers):
1240 Define.
1241 (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM,
1242 TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include
1243 "elf32-target.h" two more times.
1244 * configure.in: Handle bfd_elf32_tic6x_linux_be_vec,
1245 bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and
1246 bfd_elf32_tic6x_elf_le_vec.
1247 * configure: Regenerate.
1248
3ac5406b
JB
12492011-05-13 Jan Beulich <jbeulich@novell.com>
1250
1251 * config.bfd: Add targets x86_64-*-pe and x86_64-*-pep.
1252
335e41d4
JK
12532011-05-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1254
1255 * config.in: Regenerated.
1256 * configure: Regenerated.
1257 * configure.in: New tests for HAVE_PRPSINFO_T_PR_PID,
1258 HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and
1259 HAVE_PSINFO32_T_PR_PID.
1260 * elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by
1261 HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID
1262 and HAVE_PSINFO32_T_PR_PID.
1263 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition.
1264
bc989cdc
JK
12652011-05-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1266
1267 * elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and
1268 32bit psinfo.
1269 * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid.
1270 * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
1271
fbd9ad90
PB
12722011-05-09 Paul Brook <paul@codesourcery.com>
1273
1274 * bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype.
1275 * bfd-in2.h: Regenerate.
1276 * elf32-tic6x.c: Include limits.h.
1277 (tic6x_unwind_edit_type, tic6x_unwind_table_edit,
1278 _tic6x_elf_section_data): New.
1279 (elf32_tic6x_section_data): Define.
1280 (elf32_tic6x_new_section_hook): Allocate target specific data.
1281 (elf32_tic6x_add_unwind_table_edit): New function.
1282 (get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size,
1283 elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31,
1284 elf32_tic6x_copy_exidx_entry): New functions.
1285 (elf_backend_write_section): Define.
1286
1bce6bd8
PB
12872011-05-09 Paul Brook <paul@codesourcery.com>
1288
1289 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
1290 elf32_tic6x_fake_sections): New functions.
1291 (elf_backend_fake_sections): Define.
1292
9cf0e282
PB
12932011-05-09 Paul Brook <paul@codesourcery.com>
1294
1295 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function.
1296 (elf_backend_gc_mark_extra_sections): Define.
1297
730035f7
DK
12982011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
1299
1300 PR ld/12365
1301 * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about
1302 references to symbols defined in discarded sections.
1303
88e59394
DK
13042011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
1305
1306 PR ld/12365
1307 * coffgen.c (coff_write_symbol): Assume input section is its own
1308 output section if output_section member not set.
1309 (coff_write_alien_symbol): Likewise.
1310
310fd250
L
13112011-05-07 H.J. Lu <hongjiu.lu@intel.com>
1312
1313 PR ld/12730
1314 * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY.
1315
1316 * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors
41e04eaa 1317 sections if needed.
310fd250
L
1318
1319 * section.c (SEC_ELF_REVERSE_COPY): New.
1320 * bfd-in2.h: Regenerated.
1321
70778fc7
AM
13222011-05-07 Anders Kaseorg <andersk@ksplice.com>
1323
1324 PR 12739
1325 * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
1326 * bfd-in2.h: Regenerate.
1327
8185f55c
TG
13282011-05-06 Tristan Gingold <gingold@adacore.com>
1329
1330 * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY.
1331 (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle
1332 any code section. Add comments.
1333 (alpha_vms_object_p): Use void * instead of PTR.
1334 (alpha_vms_create_eisd_for_section): Fix test for setting DZRO.
1335 (build_module_list): Guard against no DST section. Add comments.
1336 (alpha_vms_link_output_symbol): Discard undefined symbols.
1337 (alpha_vms_get_section_contents): Simply memcpy if the section was
1338 already loaded. Fix typo.
1339 (vms_new_section_hook): Use void * instead of PTR.
1340 (vms_alpha_vec): Ditto.
1341
7d24e6a6
RS
13422011-05-06 Richard Sandiford <richard.sandiford@linaro.org>
1343
1344 * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb
1345 branch to a PLT entry, redirect it to the PLT's Thumb entry point.
1346
c6a8f6e0
BS
13472011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1348
1349 * elf32-tic6x.c (elf32_tic6x_final_link): New function.
1350 (elf32_tic6x_merge_attributes): Do not warn for PID or PIC
1351 mismatch. Choose the lower of the two values.
1352 (bfd_elf32_bfd_final_link): New macro.
1353
7f41df2e
TG
13542011-04-28 Tristan Gingold <gingold@adacore.com>
1355
1356 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
1357 (bfd_xcoff_swap_aux_out): Ditto.
1358 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
1359 (bfd_xcoff64_swap_aux_out): Ditto.
1360
9507a174
AM
13612011-05-04 Alan Modra <amodra@gmail.com>
1362
1363 PR ld/12727
1364 * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
1365 was_undefined on dot-symbols.
1366
2fbb87f6
PB
13672011-05-03 Paul Brook <paul@codesourcery.com>
1368
1369
1370 * elf32-tic6x.c (elf32_tic6x_howto_table,
1371 elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
1372 elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
1373 Add R_C6000_EHTYPE.
1374
9d4057ee
AM
13752011-05-01 Alan Modra <amodra@gmail.com>
1376
1377 PR ld/12718
1378 * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
1379 creating ifunc sections.
1380 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1381
71e7aa7d
L
13822011-04-30 H.J. Lu <hongjiu.lu@intel.com>
1383
1384 * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
1385 names.
1386
b5dee4ea
TT
13872011-04-28 Tom Tromey <tromey@redhat.com>
1388
1389 * bfdio.c (memory_bstat): Pass correct size to memset.
1390
e4c93b56
MF
13912011-04-28 Mike Frysinger <vapier@gentoo.org>
1392
1393 * dwarf2.c (dwarf_debug_sections): Mark const.
1394 * elf.c (special_sections): Likewise.
1395 * libbfd-in.h (dwarf_debug_sections): Likewise.
1396 * libbfd.h: Regenerate.
1397
72b016b4
NC
13982011-04-26 Kai Tietz <ktietz@redhat.com>
1399
1400 * coffcode.h (sec_to_styp_flags): Allow linkonce for
1401 debugging sections.
1402
4964e065
TG
14032011-04-26 Tristan Gingold <gingold@adacore.com>
1404
1405 * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
1406
35ed3f94
AM
14072011-04-24 Alan Modra <amodra@gmail.com>
1408
1409 PR ld/12365
1410 PR ld/12696
1411 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
1412 * linker.c (_bfd_link_hash_newfunc): Clear bitfields.
1413 (_bfd_generic_link_add_one_symbol): Update "notice" call.
1414 * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
1415 it is a redef of an IR symbol in a real BFD.
1416
b70321a2
L
14172011-04-22 H.J. Lu <hongjiu.lu@intel.com>
1418
1419 * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
1420 in readonly section in a shared object.
1421 (elf_i386_size_dynamic_sections): Likewise.
1422 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
1423 (elf_x86_64_size_dynamic_sections): Likewise.
1424
aa715242
L
14252011-04-21 H.J. Lu <hongjiu.lu@intel.com>
1426
1427 PR ld/12694
1428 * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
1429 symbols.
1430 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
1431
f6df62c8
L
14322011-04-21 H.J. Lu <hongjiu.lu@intel.com>
1433
1434 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
1435 on dynamic symbol error.
1436 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
1437
4bbd5a24
TG
14382011-04-20 Tristan Gingold <gingold@adacore.com>
1439
1440 * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
1441
8ad17b3a
AM
14422011-04-20 Alan Modra <amodra@gmail.com>
1443
1444 * hash.c (bfd_default_hash_table_size): Make it an unsigned long.
1445 (bfd_hash_table_init_n): Overflow checking.
1446 (bfd_hash_set_default_size): Return current size. Take unsigned long
1447 arg. Add 65537 to hash_size primes.
1448 * bfd-in.h (bfd_hash_set_default_size): Update prototype.
1449 * bfd-in2.h: Regenerate.
1450
1b0df531
JK
14512011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1452
1453 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
1454 memmove elements.
1455
595213d4
AM
14562011-04-20 Alan Modra <amodra@gmail.com>
1457
9e6619e2
AM
1458 * libbfd.c (bfd_log2): Do return rounded up value.
1459 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
1460 call with expanded old round down version of the function.
1461
595213d4
AM
1462 * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
1463 * elflink.c (elf_link_add_object_symbols): Delete redundant code.
1464
02d00247
AM
14652011-04-20 Alan Modra <amodra@gmail.com>
1466
1467 PR ld/12365
1468 * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
1469 in their own common section.
1470 * elflink.c (elf_link_add_object_symbols): Likewise.
1471 * linker.c (generic_link_check_archive_element): Don't lose flags
1472 if common section is pre-existing.
1473 (_bfd_generic_link_add_one_symbol): Likewise.
1474
24f58f47
AM
14752011-04-20 Alan Modra <amodra@gmail.com>
1476
1477 PR ld/12365
1478 * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
1479 * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
1480 multiple_definition regardless of allow_multiple_definition.
1481 * simple.c (simple_dummy_multiple_definition): Update.
1482 * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
1483 calls.
1484
417236c0
TG
14852011-04-18 Tristan Gingold <gingold@adacore.com>
1486
1487 * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
1488
901f1d17
AM
14892011-04-18 Alan Modra <amodra@gmail.com>
1490
1491 PR ld/12365
1492 PR ld/12672
1493 * bfd.c (BFD_PLUGIN): Define.
1494 (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
1495 * bfd-in2.h: Regenerate.
1496 * elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
1497 * opncls.c (bfd_make_readable): Don't lose original bfd flags.
1498
63524580
JK
14992011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1500
1501 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
1502 SEC_LOAD.
1503
e21e5835
NC
15042011-04-15 Sergio Durigan Junior <sergiodj@redhat.com>
1505
1506 * elf-bfd.h (struct sdt_note): New struct.
1507 (struct elf_obj_tdata) <sdt_note_head>: New field.
1508 * elf.c (elfobj_grok_stapsdt_note_1): New function.
1509 (elfobj_grok_stapsdt_note): Likewise.
1510 (elf_parse_notes): Added code to treat SystemTap note
1511 sections.
1512
6452a567
RH
15132011-04-12 Richard Henderson <rth@redhat.com>
1514
1515 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
1516 exclude empty .got sections.
1517
2a750708
L
15182011-04-11 H.J. Lu <hongjiu.lu@intel.com>
1519
1520 * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
1521 array access for BFD_RELOC_386_IRELATIVE.
1522
2123f9ad
BS
15232011-04-11 Bernd Schmidt <bernds@codesourcery.com>
1524
1525 * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
1526
f64b2e8d
NC
15272011-04-11 Mark Wielaard <mjw@redhat.com>
1528
1529 PR 10549
1530 * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
1531 (has_gnu_symbols): Renamed from has_ifunc_symbols.
1532 * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
1533 * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
1534 also if STB_GNU_UNIQUE symbol binding was seen.
1535 * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
1536 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1537 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1538 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1539 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1540 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
1541
e57278ef
AM
15422011-04-11 Alan Modra <amodra@gmail.com>
1543
1544 * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
1545 sections.
1546 * libbfd.c (_bfd_generic_get_section_contents): Likewise.
1547 (_bfd_generic_get_section_contents_in_window): Likewise.
1548 * section.c (bfd_get_section_contents): Likewise.
1549 * compress.c (bfd_get_full_section_contents): Likewise.
1550 * elf32-rx.c (rx_final_link): Ignore rawsize.
1551 * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
1552 bfd with bfd_get_section_limit.
1553 * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
1554 os->size during final link. Update callers.
1555 * bfd-in2.h: Regenerate.
1556
e2ece73c
RS
15572011-04-10 Richard Sandiford <rdsandiford@googlemail.com>
1558
1559 PR ld/12637
1560 * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
1561 as the number of global entries when merging with the primary GOT.
1562
9f973f28
L
15632011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1564
1565 * elf32-i386.c: Update copyright year.
1566 * elf64-x86-64.c: Likewise.
1567
21e68916
KT
15682011-04-09 Kai Tietz <ktietz@redhat.com>
1569
1570 * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
1571 buffer and use rawsize for sorting.
1572 * coffcode.h (coff_compute_section_file_positions): Set rawsize
1573 before doing alignment.
1574
62d78908
L
15752011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1576
1577 * elf32-i386.c (elf_i386_relocate_section): Return relocation
1578 error on unsupported relocation.
1579 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1580
2351cae0
L
15812011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1582
1583 PR binutils/12657
1584 * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
1585 pid_t.
1586
959b0961
L
15872011-04-08 H.J. Lu <hongjiu.lu@intel.com>
1588
1589 PR ld/12654
1590 * elf32-i386.c (elf_i386_relocate_section): Check !executable
1591 instead of shared for R_386_TLS_LDO_32.
1592
33b54431
TG
15932011-04-08 Tristan Gingold <gingold@adacore.com>
1594
1595 * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
1596 * coff-pmac: Remove
1597 * xcoff-target.h: Remove
1598 * Makefile.in: Regenerate.
1599
5d8e6b4d
CC
16002011-04-07 Cary Coutant <ccoutant@google.com>
1601
1602 * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
1603
44e87ece 16042011-04-07 Paul Brook <paul@codesourcery.com>
33b54431 1605
44e87ece
PB
1606 * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
1607 pc-relative.
1608 (elf32_tic6x_howto_table_rel): Ditto.
1609 (elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
1610 (elf32_tic6x_check_relocs): Ditto.
1611
8c5fc800
JM
16122011-04-06 Joseph Myers <joseph@codesourcery.com>
1613
1614 * config.bfd (thumb-*-oabi): Don't handle in list of obsolete
1615 targets.
1616 (strongarm*, thumb*, xscale*): Remove architectures.
1617 (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
1618 thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
1619 xscale-*-coff): Remove targets.
1620
6f8027ae
TG
16212011-04-01 Tristan Gingold <gingold@adacore.com>
1622
1623 * elfxx-ia64.c: include bfd_stdint.h
1624
c89ce65c
JK
16252011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1626
1627 * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
1628 dynobj and its initialization.
1629
545f57c6
TG
16302011-03-31 Tristan Gingold <gingold@adacore.com>
1631
1632 * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
1633 * configure.com: Set BFD_HOST_64BIT_LONG_LONG and
1634 BFD_HOST_LONG_LONG to 1.
1635
083faca9
TG
16362011-03-31 Tristan Gingold <gingold@adacore.com>
1637
1638 * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
1639 (_bfd_vms_write_etir): Ditto.
1640 (_bfd_vms_slurp_etir): Avoid to use intptr_t
1641 * configure.com: Generate bfd_stdint.h
1642
ac145307
BS
16432011-03-31 Bernd Schmidt <bernds@codesourcery.com>
1644
1645 * elf32-tic6x.h (struct elf32_tic6x_params): New.
1646 (elf32_tic6x_setup): Declare.
1647 * elf32-tic6x.c: Include <limits.h>.
1648 (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
1649 (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
1650 New structures.
1651 (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
1652 (tic6x_elf_scom_section, tic6x_elf_scom_symbol,
1653 tic6x_elf_scom_symbol_ptr): New static variables.
1654 (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
1655 elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
1656 R_C6000_PCR_H16 and R_C6000_PCR_L16.
1657 (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
1658 elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
1659 elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
1660 elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
1661 elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
1662 elf32_tic6x_adjust_dynamic_symbol): New static functions.
1663 (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
1664 to weak symbols as required by the ABI.
1665 Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
1666 as needed when generating DSBT output.
1667 (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
1668 elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
1669 elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
1670 elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
1671 elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
1672 elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
1673 New static functions.
1674 (ELF_MAXPAGESIZE): Define to 0x1000.
1675 (bfd_elf32_bfd_copy_private_bfd_data,
1676 bfd_elf32_bfd_link_hash_table_create,
1677 bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
1678 elf_backend_want_got_plt, elf_backend_want_dynbss,
1679 elf_backend_plt_readonly, elf_backend_got_header_size,
1680 elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
1681 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
1682 elf_backend_check_relocs, elf_backend_add_symbol_hook,
1683 elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
1684 elf_backend_section_from_bfd_section,
1685 elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
1686 elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
1687 elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
1688
1689 * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
1690 BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
1691 * bfd/bfd-in2.h: Regenerate.
1692 * bfd/libbfd.h: Regenerate.
1693 * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
1694
53dd76d3
TG
16952011-03-31 Tristan Gingold <gingold@adacore.com>
1696
1697 * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
1698 entry on xcoff when value is C_NULL_VALUE.
1699
17002011-03-31 Tristan Gingold <gingold@adacore.com>
2040caca
TG
1701
1702 * libcoff-in.h (exec_hdr): Remove.
1703 * libcoff.h: Regenerate.
1704
3a294fa7
NC
17052011-03-30 Nick Clifton <nickc@redhat.com>
1706
1707 * po/da.po: Updated Danish translation.
1708
e117360e
RH
17092011-03-29 Richard Henderson <rth@redhat.com>
1710
1711 * elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
1712 (elf64_alpha_gc_sweep_hook): New.
1713 (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
1714 (elf_backend_can_gc_sections): New.
1715
5b806d27
NC
17162011-03-26 John Marino <binutils@marino.st>
1717
1718 * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
1719 * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
1720 * configure: Regenerate.
1721
b42adabf
NC
17222011-03-25 Michael Snyder <msnyder@vmware.com>
1723
1724 * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
1725
a283ff93
TG
17262011-03-25 Tristan Gingold <gingold@adacore.com>
1727
1728 * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
1729 of find_nearest_line on object files.
1730
cf6b8767
TG
17312011-03-25 Tristan Gingold <gingold@adacore.com>
1732
1733 * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
1734 Minor reordering.
1735 (alpha_vms_create_eisd_for_section): Make code sections read-only.
1736
663a1470
AM
17372011-03-24 Alan Modra <amodra@gmail.com>
1738
1739 * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
1740 old-style __tls_get_addr calls without marker relocs don't match
1741 their arg setup insn one for one. If such mismatches are found
1742 report the reloc and don't do any tls optimization.
1743 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
1744
dc80f6ae
EW
17452011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
1746
1747 * bfd-in2.h: Regenerate.
1748
8cc66334
EW
17492011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
1750
1751 * archures.c: Add AVR XMEGA architecture information.
1752 * cpu-avr.c (arch_info_struct): Likewise.
1753 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
1754 (elf32_avr_object_p): Likewise.
1755
34e77a92
RS
17562011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1757
1758 * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
1759 * bfd-in2.h: Regenerate.
1760 * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
1761 to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
1762 entry.
1763 (elf32_arm_howto_from_type): Update accordingly.
1764 (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
1765 (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
1766 (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
1767 with an extra noncall_refcount field.
1768 (arm_local_iplt_info): New structure.
1769 (elf_arm_obj_tdata): Add local_iplt.
1770 (elf32_arm_local_iplt): New accessor macro.
1771 (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
1772 plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
1773 Change tls_type to a bitfield and add is_iplt.
1774 (elf32_arm_link_hash_newfunc): Update accordingly.
1775 (elf32_arm_allocate_local_sym_info): New function.
1776 (elf32_arm_create_local_iplt): Likewise.
1777 (elf32_arm_get_plt_info): Likewise.
1778 (elf32_arm_plt_needs_thumb_stub_p): Likewise.
1779 (elf32_arm_get_local_dynreloc_list): Likewise.
1780 (create_ifunc_sections): Likewise.
1781 (elf32_arm_copy_indirect_symbol): Update after the changes to
1782 elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
1783 (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
1784 to get PLT information. Assert that all STT_GNU_IFUNC references
1785 are turned into PLT references.
1786 (arm_build_one_stub): Pass the symbol type to
1787 elf32_arm_final_link_relocate.
1788 (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
1789 (elf32_arm_allocate_irelocs): New function.
1790 (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
1791 all R_ARM_IRELATIVE.
1792 (elf32_arm_allocate_plt_entry): New function.
1793 (elf32_arm_populate_plt_entry): Likewise.
1794 (elf32_arm_final_link_relocate): Add an st_type parameter.
1795 Set srelgot to null for static objects. Use separate variables
1796 to record which st_value and st_type should be used when generating
1797 a dynamic relocation. Use elf32_arm_get_plt_info to find the
1798 symbol's PLT information, setting has_iplt_entry, splt,
1799 plt_offset and gotplt_offset accordingly. Check whether
1800 STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
1801 the relocation target accordingly. Broaden assert to include
1802 .iplts. Don't set sreloc for static relocations. Assert that
1803 we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
1804 and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
1805 of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
1806 symbol. Pass the symbol type to arm_type_of_stub. Conditionally
1807 resolve GOT references to the .igot.plt entry.
1808 (elf32_arm_relocate_section): Update the call to
1809 elf32_arm_final_link_relocate.
1810 (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
1811 information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
1812 relocations in shared libraries and relocatable executables.
1813 Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
1814 to get the list of dynamic relocations for a local symbol.
1815 (elf32_arm_check_relocs): Always create ifunc sections. Set isym
1816 at the same time as setting h. Use elf32_arm_allocate_local_sym_info
1817 to allocate local symbol information. Treat R_ARM_REL32 and
1818 R_ARM_REL32_NOI as call relocations in shared libraries and
1819 relocatable executables. Record PLT information for local
1820 STT_GNU_IFUNC functions as well as global functions. Count
1821 non-call PLT references. Use elf32_arm_get_local_dynreloc_list
1822 to get the list of dynamic relocations for a local symbol.
1823 (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
1824 Don't remove STT_GNU_IFUNC PLTs unless all references have been
1825 removed. Update after the changes to elf32_arm_link_hash_entry.
1826 (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
1827 entries should live in .plt or .iplt. Check whether the .igot.plt
1828 and .got entries can be combined. Use elf32_arm_allocate_plt_entry
1829 to allocate .plt and .(i)got.plt entries. Detect which .got
1830 entries will need R_ARM_IRELATIVE relocations and use
1831 elf32_arm_allocate_irelocs to allocate them. Likewise other
1832 non-.got dynamic relocations.
1833 (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
1834 and dynamic relocations for local STT_GNU_IFUNC symbols.
1835 Check whether the .igot.plt and .got entries can be combined.
1836 Detect which .got entries will need R_ARM_IRELATIVE relocations
1837 and use elf32_arm_allocate_irelocs to allocate them. Use stashed
1838 section pointers intead of strcmp checks. Handle iplt and igotplt.
1839 (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
1840 to fill in .plt, .got.plt and .rel(a).plt entries. Point
1841 STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
1842 resolve to it.
1843 (elf32_arm_output_plt_map_1): New function, split out from
1844 elf32_arm_output_plt_map. Handle .iplt entries. Use
1845 elf32_arm_plt_needs_thumb_stub_p.
1846 (elf32_arm_output_plt_map): Call it.
1847 (elf32_arm_output_arch_local_syms): Add mapping symbols for
1848 local .iplt entries.
1849 (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
1850 (elf32_arm_swap_symbol_out): Likewise.
1851 (elf32_arm_add_symbol_hook): New function.
1852 (elf_backend_add_symbol_hook): Define for all targets.
1853
35fc36a8
RS
18542011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1855
1856 * elf-bfd.h (elf_link_hash_entry): Add target_internal.
1857 * elf.c (swap_out_syms): Set st_target_internal for each
1858 Elf_Internal_Sym.
1859 * elfcode.h (elf_swap_symbol_in): Likewise.
1860 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
1861 * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
1862 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
1863 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1864 * elflink.c (elf_link_output_extsym): Likewise.
1865 (bfd_elf_final_link): Likewise.
1866 (elf_link_add_object_symbols): Copy st_target_internal
1867 to the hash table if we see a definition.
1868 (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
1869 * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
1870 a branch_type field.
1871 (a8_erratum_fix, a8_erratum_reloc): Likewise.
1872 (arm_type_of_stub): Replace actual_st_type with an
1873 actual_branch_type parameter.
1874 (arm_build_one_stub): Use branch types rather than st_types to
1875 determine the type of branch.
1876 (cortex_a8_erratum_scan): Likewise.
1877 (elf32_arm_size_stubs): Likewise.
1878 (bfd_elf32_arm_process_before_allocation): Likewise.
1879 (allocate_dynrelocs_for_symbol): Likewise.
1880 (elf32_arm_finish_dynamic_sections): Likewise.
1881 (elf32_arm_final_link_relocate): Replace sym_flags parameter with
1882 a branch_type parameter.
1883 (elf32_arm_relocate_section): Update call accordingly.
1884 (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
1885 (elf32_arm_output_map_sym): Initialize st_target_internal.
1886 (elf32_arm_output_stub_sym): Likewise.
1887 (elf32_arm_symbol_processing): Delete.
1888 (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
1889 Use st_target_internal to record the branch type.
1890 (elf32_arm_swap_symbol_out): Use st_target_internal to test for
1891 Thumb functions.
1892 (elf32_arm_is_function_type): Delete.
1893 (elf_backend_symbol_processing): Likewise.
1894 (elf_backend_is_function_type): Likewise.
1895
cbc704f3
RS
18962011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1897
1898 * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
1899 (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
1900 into the PLT block.
1901
f6e32f6d
RS
19022011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1903
1904 * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
1905 may_need_local_target_p and may_become_dynamic_p to classify
1906 the relocation type. Don't check info->symbolic or h->def_regular
1907 when deciding whether to record a potential dynamic reloc.
1908 Don't treat potential dynamic relocs as PLT references.
1909 (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
1910 try to make the PLT reference count go negative.
1911
b436d854
RS
19122011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1913
1914 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
1915 GOT entry here, rather than leaving it to finish_dynamic_symbol.
1916 Only create a dynamic relocation for local references if
1917 info->shared.
1918 (allocate_dynrelocs_for_symbol): Update dynamic relocation
1919 allocation accordingly.
1920 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
1921
47beaa6a
RS
19222011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1923
1924 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
1925 (elf32_arm_add_dynreloc): Likewise.
1926 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
1927 to allocate dynamic relocations.
1928 (elf32_arm_size_dynamic_sections): Likewise.
1929 (allocate_dynrelocs): Likewise. Rename to
1930 allocate_dynrelocs_for_symbol.
1931 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
1932 create dynamic relocations.
1933 (elf32_arm_finish_dynamic_symbol): Likewise.
1934
52bc799a
L
19352011-03-12 H.J. Lu <hongjiu.lu@intel.com>
1936
1937 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
1938 x32 GD->IE and GD->LE transitions.
1939 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
1940 and LD->LE transitions.
1941
e11840f9
AM
19422011-03-10 Alan Modra <amodra@gmail.com>
1943
1944 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
1945 for LO_DS error message and correct multiple.
1946
aa374f67
AM
19472011-03-10 Alan Modra <amodra@gmail.com>
1948
1949 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
1950 (ppc64_elf_link_just_syms): New function.
1951 (opd_entry_value): Don't assume big-endian host.
1952 (get_r2off): New function.
1953 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
1954
d59a60e9
MS
19552011-03-06 Michael Snyder <msnyder@vmware.com>
1956
4281caad
MS
1957 * compress.c (bfd_compress_section_contents): Check for out of mem.
1958
17672001
MS
1959 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
1960 that case statement falls through intentionally.
1961
d59a60e9
MS
1962 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
1963
0e29e6e8
AM
19642011-03-04 Alan Modra <amodra@gmail.com>
1965
1966 * archive.c (bsd_write_armap): Don't call stat in deterministic
1967 mode, and don't use st_mtime if stat returns error.
1968
eb00922a
MS
19692011-03-03 Michael Snyder <msnyder@vmware.com>
1970
08c13595
MS
1971 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
1972
d543c50d
MS
1973 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
1974
c38eb2a6
MS
1975 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
1976 (aout_link_write_other_symbol): Missing break statement.
1977
8ecc1f20
MS
1978 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
1979
eb00922a
MS
1980 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
1981
4a4c5f25
L
19822011-03-03 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
1985 x32 IE->LE transition.
1986 (elf_x86_64_relocate_section): Likewise.
1987
ddcf1fcf
BS
19882011-03-02 Bernd Schmidt <bernds@codesourcery.com>
1989
aa374f67
AM
1990 * elflink.c (is_reloc_section): Remove function.
1991 (get_dynamic_reloc_section_name): Construct string manually.
ddcf1fcf 1992
007d6189
KT
19932011-02-28 Kai Tietz <kai.tietz@onevision.com>
1994
1995 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
1996 (adjust_relative_path): Likewise.
1997 (_bfd_construct_extended_name_table): Likewise.
1998 * corefile.c (generic_core_file_matches_executable_p): Likewise.
1999 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
2000 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2001 * elf32-spu.c (sort_bfds): Likewise.
2002 (spu_elf_auto_overlay): Likewise.
2003 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
2004 * xcofflink.c (xcoff_set_import_path): Likewise.
2005 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
2006 (xtensa_regfile_lookup_shortname): Likewise.
2007
8616ad89
AM
20082011-02-28 Alan Modra <amodra@gmail.com>
2009
2010 PR 12513
2011 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
2012 stringsize. Properly sanity check symdef_count. Remove redundant
2013 bfd_release.
2014
80549d04
RÁE
20152011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
2016
2017 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
2018 and handle claim_file seeking. Only try to load the plugin once.
2019
93b3ac75
AS
20202011-02-22 Andreas Schwab <schwab@redhat.com>
2021
2022 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
2023 relocation read the value from the second GOT slot.
2024
6fa052f0
TG
20252011-02-15 Tristan Gingold <gingold@adacore.com>
2026
2027 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
2028
28be611c
AM
20292011-02-15 Alan Modra <amodra@gmail.com>
2030
2031 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
2032 toc relocs. Fuss over free(NULL).
2033
93252b1c
MF
20342011-02-14 Mike Frysinger <vapier@gentoo.org>
2035
2036 * elflink.c (bfd_elf_size_dynamic_sections): Add
2037 bfd_get_symbol_leading_char to the start of newname.
2038
822ce8ee
RW
20392011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2040
2041 * configure: Regenerate.
2042
425b145b
AM
20432011-02-09 Alan Modra <amodra@gmail.com>
2044
2045 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
2046 we are done. When optimising large toc, check that a global
2047 symbol on a toc reloc is defined in a kept section.
2048
82f2dbf7
NC
20492011-02-08 Nick Clifton <nickc@redhat.com>
2050
2051 PR binutils/12467
2052 * elf.c (assign_file_positions_for_load_sections): Set the program
2053 header offset and entry size to zero if there are no program
2054 headers.
2055
df22d223
AM
20562011-02-08 Alan Modra <amodra@gmail.com>
2057
2058 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
2059 local_syms when looking for local symbols in .toc.
2060
6683a28d
AM
20612011-02-01 Alan Modra <amodra@gmail.com>
2062
2063 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
2064 for toc pointer on any section having makes_toc_func_call set.
2065 (check_pasted_section): Ensure pasted .init/.fini fragments use
2066 the same toc if any has makes_toc_func_call set.
2067
5240d94d
JM
20682011-01-28 Joseph Myers <joseph@codesourcery.com>
2069
2070 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
2071 field.
2072
ed88c97e
RS
20732011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
2074
2075 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
2076 common sections too.
2077
1a0c107f
L
20782011-01-18 H.J. Lu <hongjiu.lu@intel.com>
2079
04449d86
L
2080 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
2081 Solaris target.
1a0c107f 2082
d68cd58c
NC
20832011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
2084
2085 Fix compilation for mingw64.
2086 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
2087 typecast to avoid warning.
2088 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
2089 usage.
2090 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
2091 of long for pointer to avoid warning.
2092 (elfNN_ia64_relax_brl): Idem.
2093 (elfNN_ia64_install_value): Idem.
2094 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
2095
da17376b
RS
20962011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
2097
2098 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
2099 h->needs_plt when deciding whether to record a possible dynamic reloc.
2100
1e81e12b
RS
21012011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
2102
2103 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
2104 dynamic relocs for the removed section.
2105
d1534d16
L
21062011-01-15 H.J. Lu <hongjiu.lu@intel.com>
2107
2108 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
2109 relocations.
2110
248775ba
L
21112011-01-14 H.J. Lu <hongjiu.lu@intel.com>
2112
2113 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
2114 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
2115 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
2116 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
2117 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
2118 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
2119 for ILP32.
2120
4a97a0e5
AM
21212011-01-14 Alan Modra <amodra@gmail.com>
2122
2123 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
2124 error.
2125 (_bfd_default_error_handler): Likewise.
2126 * elf.c (print_segment_map): Likewise.
2127 * libbfd.c (warn_deprecated): Likewise.
2128 * som.c (som_sizeof_headers): No need to do so here.
2129 * coff-i860.c: Replace use of printf for error messages with
2130 _bfd_error_handler.
2131 * coff-ppc.c: Likewise.
2132 * coff-sh.c: Likewise.
2133 * elf32-bfin.c: Likewise.
2134 * elf32-dlx.c: Likewise.
2135 * elf32-mep.c: Likewise.
2136 * elf32-v850.c: Likewise.
2137 * mach-o.c: Likewise.
2138 * pef.c: Likewise.
2139
82e96e07
L
21402011-01-13 H.J. Lu <hongjiu.lu@intel.com>
2141
2142 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
2143 swap_reloca_out.
2144 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
2145 (elf_x86_64_check_relocs): Align relocation section to 4 byte
2146 for 32bit.
2147 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
2148 ELF_ST_TYPE.
2149 (elf_x86_64_finish_dynamic_symbol): Updated.
2150 (elf_x86_64_finish_dynamic_sections): Don't use
2151 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
2152 bfd_elf64_swap_dyn_out.
2153
e6a6bb22
AM
21542011-01-14 J. Park <grassman@gmail.com>
2155
2156 PR ld/12339
2157 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
2158 following bfd_link_hash_warning symbol link.
2159
0855e32b
NS
21602011-01-10 Nathan Sidwell <nathan@codesourcery.com>
2161 Glauber de Oliveira Costa <glommer@gmail.com>
2162
2163 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
2164 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
2165 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
2166 relocations.
2167 * libbfd.h: Rebuilt.
2168 * bfd-in2.h: Rebuilt.
2169 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
2170 (elf32_arm_reloc_map): Likewise.
2171 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
2172 (elf32_arm_stub_long_branch_any_tls_pic,
2173 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
2174 (DEF_STUBS): Add new stubs.
2175 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
2176 (elf32_arm_local_tlsdesc_gotent): New.
2177 (GOT_TLS_GDESC): New mask.
2178 (GOT_TLS_GD_ANY): Define.
2179 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
2180 (elf32_arm_compute_jump_table_size): New.
2181 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
2182 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
2183 sgotplt_jump_table_size fields.
2184 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
2185 (elf32_arm_link_hash_table_create): Initialize new fields.
2186 (arm_type_of_stub): Check TLS desc relocs too.
2187 (elf32_arm_stub_name): TLS desc relocs can be shared.
2188 (elf32_arm_tls_transition): Determine relaxation.
2189 (arm_stub_required_alignment): Add tls stubs.
2190 (elf32_arm_size_stubs): Likewise.
2191 (elf32_arm_tls_relax): Perform TLS relaxing.
2192 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
2193 (IS_ARM_TLS_GNU_RELOC): New.
2194 (IS_ARM_TLS_RELOC): Use it.
2195 (elf32_arm_relocate_section): Perform TLS relaxing.
2196 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
2197 desc relocations.
2198 (allocate_dynrelocs): Allocate tls desc relcoations.
2199 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
2200 symbols.
2201 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
2202 got slots.
2203 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
2204 symbol.
2205 (elf32_arm_finish_dynamic_symbol): Adjust.
2206 (arm_put_trampoline): New.
2207 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
2208 trampolines.
2209 (elf_backend_always_size_sections): Define.
2210
7be86737
L
22112011-01-06 H.J. Lu <hongjiu.lu@intel.com>
2212
2213 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
2214
ae428b57 22152011-01-06 H.J. Lu <hongjiu.lu@intel.com>
3db2e7dd
L
2216
2217 PR ld/12366
2218 PR ld/12371
2219 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
2220 handle symbols marked with regular reference, but not non-GOT
2221 reference when building shared library.
2222
2223 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
2224 local and global STT_GNU_IFUNC symols when building shared
2225 library.
2226 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
2227
9689e3a3
DD
22282011-01-05 DJ Delorie <dj@redhat.com>
2229
2230 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
2231 * libbfd.h: Regenerate.
2232 * bfd-in2.h: Regenerate.
2233 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
2234
889a4d3e
L
22352011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2236
2237 * cpu-i386.c (bfd_i386_compatible): New.
2238 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
2239 with bfd_i386_compatible.
2240 (bfd_x86_64_arch_intel_syntax): Likewise.
2241 (bfd_i386_arch_intel_syntax): Likewise.
2242 (i8086_arch): Likewise.
2243 (bfd_x64_32_arch): Likewise.
2244 (bfd_x86_64_arch): Likewise.
2245 (bfd_i386_arch): Likewise.
2246
9e9e0820 2247For older changes see ChangeLog-2010
56882138
AM
2248\f
2249Local Variables:
2250mode: change-log
2251left-margin: 8
2252fill-column: 74
2253version-control: never
2254End: