2009-08-10 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a8ad78a7
AM
12009-08-10 Alan Modra <amodra@bigpond.net.au>
2
3 * elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
4
91e21fb7
AM
52009-08-10 Alan Modra <amodra@bigpond.net.au>
6
7 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear plt
8 info for STT_GNU_IFUNC.
9 * elf32-ppc.c (ppc_elf_check_relocs): Count a needed plt entry
10 on got refs in case the symbol turns out to be ifunc.
11 (ppc_elf_gc_sweep_hook): Similarly.
12 (ppc_elf_adjust_dynamic_symbol): Adjust assertion.
13 (allocate_dynrelocs): Don't specially allocate got relocs for ifunc.
14 (ppc_elf_size_dynamic_sections): Likewise.
15 (ppc_elf_relocate_section): Likewise.
16
cb88ce9f
BS
172006-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
18
19 From Mike Frysinger <michael.frysinger@analog.com>
20 * elf32-bfin.c (bfin_howto_table, bfin_reloc_map, bfin_check_relocs,
21 bfin_final_link_relocate, bfin_relocate_section, bfin_gc_sweep_hook,
22 _bfinfdpic_emit_got_relocs_plt_entries, bfinfdpic_relocate_section,
23 bfinfdpic_gc_sweep_hook, bfinfdpic_check_relocs,
24 bfin_finish_dynamic_symbol, bfd_bfin_elf32_create_embedded_relocs):
25 Adjust to match the renamed reloc definitions.
26
e7e75368
AM
272009-08-08 Alan Modra <amodra@bigpond.net.au>
28
29 PR 10494
30 * elf.c (_bfd_elf_make_section_from_shdr): When setting up section
31 LMAs, use ELF_IS_SECTION_IN_SEGMENT to match sections with headers.
32
918d9742
TT
332009-08-07 Tom Tromey <tromey@redhat.com>
34
35 * elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict
36 aliasing error.
37
7ba29e2a
NC
382009-08-06 Michael Eager <eager@eagercon.com>
39
40 * Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}.
41 * Makefile.in: Regenerate.
42 * archures.c: Add bfd_arch_microblaze.
43 * bfd-in2.h: Regenerate.
44 * config.bfd: Add microblaze target.
45 * configure.in: Add bfd_elf32_microblaze_vec target.
46 * configure: Regenerate.
47 * cpu-microblaze.c: New.
48 * elf32-microblaze.c: New.
49 * libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc().
50 * libbfd.h: Regenerate.
51 * reloc.c: Add MICROBLAZE relocations.
52 * section.c: Add struct relax_table and relax_count to section.
53 * targets.c: Add bfd_elf32_microblaze_vec.
54
e47bf690
JJ
552009-08-06 Jakub Jelinek <jakub@redhat.com>
56 Alan Modra <amodra@bigpond.net.au>
57
58 PR binutils/10492
59 * elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE
60 symbols.
61 * elf32-mips.c (mips_elf_sym_is_global): Likewise.
62 * elfn32-mips.c (mips_elf_sym_is_global): Likewise.
63
3ae046cc
NS
642009-08-06 Nathan Sidwell <nathan@codesourcery.com>
65
66 * elf32-arm.c (elf32_arm_size_stubs): Call layout_sections_again
67 at least once when fixing cortex-a8.
68
cd8d5a82
CF
692009-08-05 Chao-ying Fu <fu@mips.com>
70
71 * elf32-mips.c (mips_reloc_map): Add BFD_RELOC_MIPS_JALR.
72 * elfxx-mips.c (JAL_TO_BAL_P): New define to transform JAL to BAL
73 for CPUs. It is true for RM9000.
74 (JALR_TO_BAL_P): New define to transform JALR to BAL. It is true
75 for all CPUs.
76 (mips_elf_perform_relocation): Use JAL_TO_BAL_P and JALR_TO_BAL_P
77 to guard the transformation.
78
9cc305ec
TS
792009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
80
81 * elf32-spu.h (spu_elf_params): Add member emit_fixups.
82 (spu_elf_size_sections): Declare prototype.
83 * elf32-spu.c (spu_link_hash_table): Add member sfixup.
84 (FIXUP_RECORD_SIZE, FIXUP_GET, FIXUP_PUT): New macros.
85 (spu_elf_emit_fixup): New function.
86 (spu_elf_relocate_section): Emit fixup for each SPU_ADDR32.
87 (spu_elf_size_sections): New function.
88
eb7c4339
NS
892009-08-05 Nathan Sidwell <nathan@codesourcery.com>
90
91 * elf32-arm.c (elf32_arm_stub_type): Add arm_stub_a8_veneer_lwm.
92 (arm_build_one_stub): Build a8 veneers as a separate pass.
93 (cortex_a8_erratum_scan): Add prev_num_a8_fixes and stub_changed_p
94 parameters. Use them to check if we create a different a8 fixup
95 than the previous pass.
96 (elf32_arm_size_stubs): Move scope of stub_changed and
97 prev_num_a8_fixes into main loop.
98 (elf32_arm_build_stubs): Build a8 veneers in a second pass.
99
a9585d22
AM
1002009-08-04 Alan Modra <amodra@bigpond.net.au>
101
102 * elf32-ppc.c (ppc_elf_relax_section): Correct conditions under
103 which find_plt_ent is called. Delete redundant code.
104
45b222d6
L
1052009-08-03 H.J. Lu <hongjiu.lu@intel.com>
106
107 PR binutils/10363
108 * elf.c (bfd_elf_string_from_elf_section): Return NULL on
109 invalid string offset.
110
004fb780
L
1112009-08-03 H.J. Lu <hongjiu.lu@intel.com>
112
113 PR ld/10433
114 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Set got
115 to htab->init_got_offset and plt to htab->init_plt_offset
116 when discarding space for dynamic relocations.
117
a877a2b6
AM
1182009-08-03 Alan Modra <amodra@bigpond.net.au>
119
120 * elf32-ppc.c (struct plt_entry): Revise comments.
121 (ppc_elf_check_relocs): Don't create needless plt_entry info
122 for non-pie executables. Don't test info->pie when info->shared
123 already covers that case.
124 (ppc_elf_gc_sweep_hook): Adjust for above change.
125 (add_stub_sym): Don't test info->pie when info->shared tested.
126 (allocate_dynrelocs, ppc_elf_size_dynamic_sections): Likewise.
127 (write_glink_stub, ppc_elf_finish_dynamic_symbol): Likewise.
128 (ppc_elf_relax_section): Adjust find_plt_ent arguments.
129 (ppc_elf_relocate_section): Likewise.
130
de972ffa
AM
1312009-08-03 Alan Modra <amodra@bigpond.net.au>
132
133 * elf32-ppc.c (ppc_elf_check_relocs): Always add a plt ref count
134 for local ifunc symbols in non-pie executables, regardless of
135 reloc type. Don't specially create ifunc dyn relocs. Tidy ifunc
136 code so that it's obvious that we only do anything special for
137 local ifunc syms.
138 (ppc_elf_gc_sweep_hook): Adjust to suit check_relocs changes.
139 (allocate_dynrelocs): Correct comment for syms defined in plt.
140 Don't specially allocate ifunc dyn relocs.
141 (ppc_elf_relax_section): Relax branches to ifunc plt entries too.
142 (ppc_elf_relocate_section): Set "relocation" value for ifunc
143 syms in non-pie executables. No specially allocated dyn relocs
144 for ifunc to write. Allow for local sym on R_PPC_RELAX32_PLT.
145 (ppc_elf_finish_dynamic_symbol): Set value of ifunc symbols in
146 a non-pie executable.
147
1d85728f
L
1482009-08-02 H.J. Lu <hongjiu.lu@intel.com>
149 Jakub Jelinek <jakub@redhat.com>
150
151 PR ld/6443
152 * elf32-i386.c (elf_i386_tls_transition): Check executable
153 instead of shared for TLS when building PIE.
154 (elf_i386_check_relocs): Likewise.
155 (elf_i386_allocate_dynrelocs): Likewise.
156 (elf_i386_relocate_section): Likewise.
157
158 * elf64-x86-64.c (elf64_x86_64_tls_transition): Check executable
159 instead of shared for TLS when building PIE.
160 (elf64_x86_64_check_relocs): Likewise.
161 (elf64_x86_64_allocate_dynrelocs): Likewise.
162 (elf64_x86_64_relocate_section): Likewise.
163
5d8d4872
AG
1642009-07-31 Anthony Green <green@moxielogic.com>
165
166 * config.bfd (targ_cpu): Add moxie-uclinux support.
167
080a1b9f
HPN
1682009-07-31 Hans-Peter Nilsson <hp@bitrange.com>
169
170 * linker.c (fix_syms): Consider SEC_LOAD when choosing section.
171
25f23106
AM
1722009-07-30 Alan Modra <amodra@bigpond.net.au>
173
174 * elf32-ppc.c (ppc_elf_check_relocs): Always set up sections
175 used by indirect function support. Count dynamic relocs for
176 ifunc syms.
177 (ppc_elf_adjust_dynamic_symbol): Tweak for ifunc.
178 (allocate_dynrelocs): Allocate all non-dynamic ifunc plt entries
179 in iplt and their relocs in reliplt. Don't make ifunc syms
180 dynamic. Allocate got entry relocs for non-dynamic ifunc in
181 reliplt. Handle other dynamic relocs for ifunc.
182 (ppc_elf_size_dynamic_sections): Alloc dyn relocs for static
183 ifunc in reliplt, likewise relocs for got against local ifunc.
184 Typo fix on reliplt size adjust.
185 (ppc_elf_relocate_section): Don't use plt scheme of allocating
186 relocs 1-1 with entries for iplt, instead just add using
187 reloc_count. Write got relocs and dyn relocs for ifunc to reliplt.
188 Error on invalid ifunc dyn relocs.
189 (ppc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt
190 in iplt/reliplt.
191 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_JMP_IREL,
192 R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI, R_PPC64_REL16_HA.
193 (ppc64_elf_reloc_type_lookup): Handle new relocs.
194 (ppc64_elf_check_relocs): Likewise. Count dyn relocs for ifunc.
195 (allocate_dynrelocs): As for elf32-ppc.c above.
196 (ppc64_elf_size_dynamic_sections): Likewise.
197 (ppc_build_one_stub): Put non-dynamic ifunc plt call stubs in iplt,
198 and their relocs in reliplt. Use R_PPC64_JMP_IREL.
199 (ppc_size_one_stub): Similarly.
200 (ppc64_elf_relocate_section): As for elf32-ppc.c above. Handle new
201 relocs too.
202 (ppc64_elf_finish_dynamic_symbol): As for elf32-ppc.c above.
203
80f540b7
HPN
2042009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
205
206 * elf64-mmix.c (mmix_elf_relax_section): Revert 2009-05-27
207 change. Add note to head comment.
208
4ad4f3cb
JB
2092009-07-28 Jan Beulich <jbeulich@novell.com>
210
211 * archive.c (get_extended_arelt_filename): Remove redundant
212 range check on index.
213
d8d2f433
DK
2142009-07-27 Doug Kwan <dougkwan@google.com>
215
216 * elf32-arm.c (stub_hash_newfunc): Initialize field output_name.
217
9e675548
L
2182009-07-27 H.J. Lu <hongjiu.lu@intel.com>
219
220 * archures.c bfd_*_arch): Sorted.
221 (bfd_archures_list): Likewise.
222
86514226
SR
2232009-07-27 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
224
9e675548 225 * elf32-cr16.c (elf_cr16_final_link_relocate): Add code to handle
86514226
SR
226 to R_cr16_NUM32 relocation.
227
305f7588
MS
2282009-07-26 Michael Eager <eager@eagercon.com>
229
230 * archures.c: Add bfd_mach_ppc_405
231 * bfd-in2.h: Same.
232
b1995b01
L
2332009-07-25 H.J. Lu <hongjiu.lu@intel.com>
234
235 * cpu-i386.c (bfd_x86_64_arch): Fix comment typos.
236 * cpu-l1om.c (bfd_l1om_arch): Likewise.
237
8a9036a4
L
2382009-07-25 H.J. Lu <hongjiu.lu@intel.com>
239
240 * archures.c (bfd_architecture): Add bfd_arch_l1om.
241 (bfd_l1om_arch): New.
242 (bfd_archures_list): Add &bfd_l1om_arch.
243 * bfd-in2.h: Regenerated.
244
245 * config.bfd (targ64_selvecs): Add bfd_elf64_l1om_vec if
246 bfd_elf64_x86_64_vec is supported. Add bfd_elf64_l1om_freebsd_vec
247 if bfd_elf64_x86_64_freebsd_vec is supported.
248 (targ_selvecs): Likewise.
249
250 * configure.in: Support bfd_elf64_l1om_vec and
251 bfd_elf64_l1om_freebsd_vec.
252 * configure: Regenerated.
253
254 * cpu-l1om.c: New.
255
256 * elf64-x86-64.c (elf64_l1om_elf_object_p): New.
257 (bfd_elf64_l1om_vec): Likewise.
258 (bfd_elf64_l1om_freebsd_vec): Likewise.
259
260 * Makefile.am (ALL_MACHINES): Add cpu-l1om.lo.
261 (ALL_MACHINES_CFILES): Add cpu-l1om.c.
262 * Makefile.in: Regenerated.
263
264 * targets.c (bfd_elf64_l1om_vec): New.
265 (bfd_elf64_l1om_freebsd_vec): Likewise.
266 (_bfd_target_vector): Add bfd_elf64_l1om_vec and
267 bfd_elf64_l1om_freebsd_vec.
268
8fdcc58d
TS
2692009-07-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
270 Alan Modra <amodra@bigpond.net.au>
271
272 * reloc.c (BFD_RELOC_SPU_ADD_PIC): Define.
273 * bfd-in2.h: Regenerate.
274 * libbfd.h: Regenerate.
275 * elf32-spu.c (elf_howto_table): Add entries SPU_ADD_PIC.
276 (spu_elf_bfd_to_reloc_type): Handle SPU_ADD_PIC.
277 (spu_elf_relocate_section): Patch instructions marked by SPU_ADD_PIC.
278
9b769489
L
2792009-07-23 H.J. Lu <hongjiu.lu@intel.com>
280
281 PR ld/10434
282 * elf64-x86-64.c (elf64_x86_64_check_relocs): Check executable
283 instead of shared for R_X86_64_TPOFF32.
284 (elf64_x86_64_relocate_section): Likewise.
285
3e7a7d11
NC
2862009-07-23 Ulrich Drepper <drepper@redhat.com>
287
288 * elf-bfd.h (struct elf_link_hash_entry): Add unique_global field.
289 * elf.c (swap_out_syms): Set binding to STB_GNU_UNIQUE for symbols
290 with the BSF_GNU_UNIQUE flag bit set.
291 * elfcode.h (elf_slurp_symbol_table): Set the BSF_GNU_UNIQUE flag
292 for symbols with STB_GNU_UNIQUE binding.
293 * elflink.c (_bfd_elf_merge_symbol): Set unique_global for symbols
294 with the STB_GNU_UNIQUE binding.
295 (elf_link_add_object_symbols): Set the BSF_GNU_UNIQUE flag for
296 symbols with STB_GNU_UNIQUE binding. Set STB_GNU_UNIQUE for
297 symbols with the unique_global field set.
298 (elf_link_output_extsym): Set unique_global field for symbols with
299 the STB_GNU_UNIQUE binding.
300 * syms.c (struct bfd_symbol): Define BSF_GNU_UNIQUE flag bit.
301 (bfd_print_symbol_vandf): Print a 'u' character for BSF_GNU_UNIQUE
302 symbols.
303 (bfd_decode_symclass): Return a 'u' character for BSF_GNU_UNIQUE
304 symbols.
305 * bfd-in2.h: Regenerate.
306
5f35ea9c
L
3072009-07-22 H.J. Lu <hongjiu.lu@intel.com>
308
309 * elflink.c (elf_link_output_extsym): Revert the last change.
310
b63cc625
L
3112009-07-22 H.J. Lu <hongjiu.lu@intel.com>
312
313 PR ld/10433
314 * elflink.c (elf_link_output_extsym): Special case ifunc syms
315 when ref_regular, not def_regular.
316
2955ec4c
L
3172009-07-21 H.J. Lu <hongjiu.lu@intel.com>
318
319 PR ld/10426
320 * elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
321 from a DSO into a normal FUNC symbol.
322 (elf_link_output_extsym): Turn an undefined IFUNC symbol into
323 a normal FUNC symbol.
324
6d30f5b2
NC
3252009-07-17 Chao-ying Fu <fu@mips.com>
326
327 * elfxx-mips.c (LOAD_INTERLOCKS_P): New define.
328 (_bfd_mips_elf_size_dynamic_sections): For CPUs without load
329 interlocking, the last PLT entry needs a nop in the branch delay slot.
330 (_bfd_mips_elf_finish_dynamic_symbol): For CPUs with load itnerlocking,
331 output the last two PLT entries in reverse order.
332
1f85278f
L
3332009-07-16 H.J. Lu <hongjiu.lu@intel.com>
334
335 * elf32-i386.c (elf_i386_relocate_section): Don't get local
336 STT_GNU_IFUNC symbol for relocatable link.
337 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
338
f07749bb
L
3392009-07-10 H.J. Lu <hongjiu.lu@intel.com>
340
341 * bfdio.c (bfd_iovec): Add comments for bmmap.
342 * bfd-in2.h: Regenerated.
343
8455dd2c
L
3442009-07-10 H.J. Lu <hongjiu.lu@intel.com>
345
346 * Makefile.am: Run "make dep-am".
347 * Makefile.in: Regenerated.
348
cedfb179
DK
3492009-07-10 Doug Kwan <dougkwan@google.com>
350
351 * elf32-arm.c (stub_hash_newfunc): Initialize fields
352 target_addend and orig_insn.
353
fa8f86ff
TT
3542009-07-10 Tom Tromey <tromey@redhat.com>
355
356 * Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
357 (elf-eh-frame.lo): Likewise.
358 (elf32-bfin.lo): Likewise.
359 (elf32-frv.lo): Likewise.
360 (elf32-xc16x.lo): Likewise.
361 * Makefile.in: Rebuild.
362 * dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
363 * elf-eh-frame.c: Likewise.
364 * elf32-bfin.c: Likewise.
365 * elf32-frv.c: Likewise.
366 * elf32-xc16x.c: Likewise.
367
33c6a8fc
JB
3682009-07-10 Julian Brown <julian@codesourcery.com>
369
370 * elf32-arm.c (arm_build_one_stub): Use the hash entry of the
371 symbol a stub entry is derived from, not the entry for the stub
372 itself, in call to elf32_arm_final_link_relocate.
373
1d770845
L
3742009-07-10 H.J. Lu <hongjiu.lu@intel.com>
375
376 * elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
377 when reporting addends.
378
52cfded7
AM
3792009-07-10 Alan Modra <amodra@bigpond.net.au>
380
381 * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
382 data even when no stubs.
383 (spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust.
384
e054468f
AM
3852009-07-10 Alan Modra <amodra@bigpond.net.au>
386
387 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_IRELATIVE.
388 (ppc_elf_get_synthetic_symtab): Report addend.
389 (PLT_IFUNC): Define.
390 (struct ppc_elf_link_hash_table): Add iplt and reliplt.
391 (ppc_elf_create_glink): New function.
392 (ppc_elf_create_dynamic_sections): Use it.
393 (ppc_elf_add_symbol_hook): Set has_ifunc_symbols.
394 (update_local_sym_info): Allocate space for local_plt array.
395 Don't bump local_got_refcounts for PLT_IFUNC. Return local_plt
396 entry pointer.
397 (is_branch_reloc): New function.
398 (ppc_elf_check_relocs): Handle STT_GNU_IFUNC symbols.
399 (ppc_elf_gc_sweep_hook): Likewise.
400 (ppc_elf_adjust_dynamic_symbol): Likewise.
401 (allocate_dynrelocs): Likewise.
402 (ppc_elf_size_dynamic_sections): Likewise.
403 (ppc_elf_relocate_section): Likewise.
404 (branch_reloc_hash_match): Use is_branch_reloc.
405 (ppc_elf_tls_optimize): Adjust for local_plt.
406 (write_glink_stub): New function, extracted from..
407 (ppc_elf_finish_dynamic_symbol): ..here. Handle STT_GNU_IFUNC.
408 (ppc_elf_finish_dynamic_sections): Only write plt resolver and
409 branch table when dynamic.
410 (elf_backend_post_process_headers): Define.
411 * elf64-ppc.c (elf_backend_post_process_headers): Define.
412 (ppc64_elf_howto_raw): Add R_PPC64_IRELATIVE.
413 (ppc64_elf_get_synthetic_symtab): Report addend.
414 (struct ppc_stub_hash_entry): Add plt_ent.
415 (PLT_IFUNC): Define.
416 (struct ppc_link_hash_table): Add iplt and reliplt.
417 (create_linkage_sections): Make .iplt and .rela.iplt sections.
418 (ppc64_elf_add_symbol_hook): Set has_ifunc_symbols.
419 (update_local_sym_info): Allocate space for local_plt array.
420 Don't bump local_got_ents for PLT_IFUNC. Return local_plt
421 entry pointer.
422 (update_plt_info): Pass pointer to plt_entry rather than sym hash,
423 and don't change hash flags here.
424 (is_branch_reloc): New function.
425 (ppc64_elf_check_relocs): Handle STT_GNU_IFUNC.
426 (ppc64_elf_gc_sweep_hook): Likewise.
427 (ppc64_elf_adjust_dynamic_symbol): Likewise.
428 (allocate_dynrelocs): Likewise.
429 (ppc64_elf_size_dynamic_sections): Likewise.
430 (ppc_build_one_stub, ppc_size_one_stub): Likewise.
431 (ppc64_elf_size_stubs): Likewise.
432 (ppc64_elf_relocate_section): Likewise.
433 (get_sym_h): Adjust for local_plt.
434 (branch_reloc_hash_match): Use is_branch_reloc.
435 (ppc_type_of_stub): Pass plt_entry pointer and handle ifunc.
436 (ppc64_elf_toc): Ignore SEC_EXCLUDE sections.
437
041de40d
AM
4382009-07-10 Alan Modra <amodra@bigpond.net.au>
439
440 * elf.c (_bfd_elf_get_synthetic_symtab): Report addends.
441
7ae26bc1
AM
4422009-07-10 Alan Modra <amodra@bigpond.net.au>
443
444 * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
445 and ref_regular_nonweak comment.
446 * elflink.c (elf_link_output_extsym): Special case ifunc syms
447 when def_regular, not ref_regular.
448 (elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,..
449 * elf32-i386.c (elf_i386_check_relocs): ..set it here instead..
450 * elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here.
451
9c4d0c1f
AM
4522009-07-09 Alan Modra <amodra@bigpond.net.au>
453
454 * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
455 of malloc'd struct call_info.
456 (pasted_function): Likewise, priority too.
457
2fc6d3b0
AM
4582009-07-07 Alan Modra <amodra@bigpond.net.au>
459
460 * elf32-spu.c (spu_elf_auto_overlay): Take into account section
461 alignment when packing sections into overlays.
462
9e1f7c0e
DK
4632009-07-03 Cary Coutant <ccoutant@google.com>
464
465 * dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator.
466
4a768870
DK
4672009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
468
469 * coffcode.h (sec_to_styp_flags): Partially revert (functional
470 changes only) earlier patch:-
471
472 2009-06-25 Kai Tietz <kai.tietz@onevision.com>
473
474 * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
475 give .debug and .reloc data characteristics.
476 (DOT_RELOC): New define for .reloc section string.
477 (coff_write_object_contents): Use DOT_RELOC instead of string.
478
848f5748
TT
4792009-07-02 Tom Tromey <tromey@redhat.com>
480
481 * aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
482 * bfdwin.c (bfd_free_window): Cast to unsigned long.
483
dda46a27
L
4842009-07-01 Nick Clifton <nickc@redhat.com>
485
486 * elf-m10300.c: Remove trailing white space.
487 * reloc.c: Likewise.
488
efde2f2c
NC
4892009-07-01 Douglas B Rupp <rupp@gnat.com>
490
dda46a27 491 * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
efde2f2c 492 BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions.
dda46a27
L
493 * configure.in: Use them.
494 * configure: Regenerate.
495 * config.in: Regnerate.
496 * vmsutil.c: Include sysdep.h, remove ansidecl.h.
efde2f2c
NC
497 #define _BSD_SOURCE. Add comments.
498 (vms_file_stats_name): Calculate creation date based on available
499 runtime data. Return 1 for version instead of 0.
500
e1ec24c6
NC
5012009-07-01 Nick Clifton <nickc@redhat.com>
502
503 PR 10072
504 * elf32-arm.c (elf32_arm_final_link_relocate): Add code to handle
505 to R_ARM_THM_PC8 relocation.
506
2709f570
NC
5072009-06-29 Nick Clifton <nickc@redhat.com>
508
509 * elf-m10300.c (mn10300_elf_relax_section): Allow for the
510 different uses of the relocations addend when a symbol is in a
511 merged section.
512
83b89087
L
5132009-06-27 H.J. Lu <hongjiu.lu@intel.com>
514
515 PR ld/10337
516 * elf.c (bfd_section_from_shdr): Don't change sh_link for
517 SHT_REL/SHT_RELA sections on executable nor shared library.
518 Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF
519 as a normal section.
520
be7035c6
NC
5212009-06-25 Nick Clifton <nickc@redhat.com>
522
523 * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
524 symbols with SEC_MERGE flag.
525
bdeb4032
KT
5262009-06-25 Kai Tietz <kai.tietz@onevision.com>
527
528 * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
529 give .debug and .reloc data characteristics.
530 (DOT_RELOC): New define for .reloc section string.
531 (coff_write_object_contents): Use DOT_RELOC instead of string.
532
b32e07d7
TG
5332009-06-25 Tristan Gingold <gingold@adacore.com>
534
535 * mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound)
536 (bfd_mach_o_canonicalize_dynamic_symtab)
537 (bfd_mach_o_get_synthetic_symtab): Defines.
538 (TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry.
539 (TARGET_NAME): Use Mach-O specific functions for dynamic.
540
541 * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes
542 for scattered relocations.
543 (bfd_mach_o_i386_print_thread): New function.
544 (bfd_mach_o_print_thread): Define.
545
546 * mach-o.c (text_section_names_xlat): Add an entry for __const.
547 (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
548 New functions extracted from ...
549 (bfd_mach_o_canonicalize_reloc): ... This. Simplified.
550 (bfd_mach_o_get_dynamic_reloc_upper_bound): New function.
551 (bfd_mach_o_canonicalize_dynamic_reloc): New function.
552 (bfd_mach_o_i386_flavour_string): Adjusted after enum renaming.
553 (bfd_mach_o_ppc_flavour_string): Reindentation. Add 64 bits cases.
554 (bfd_mach_o_scan_read_dylinker): Do not create a section anymore.
555 Set name_str field.
556 (bfd_mach_o_scan_read_dylib): Ditto.
557 (bfd_mach_o_scan_read_thread): Set mdata at declaration. Add comments,
558 reindent.
559 (bfd_mach_o_scan_read_dysymtab): Set mdata at declaration. Correctly
560 decode isym and flags on little endian targets. Set dysymtab field.
561 (bfd_mach_o_scan_start_address): Adjust for enum names.
562 (bfd_mach_o_lookup_section): Do not look for segments anymore.
563 (bfd_mach_o_print_section): Display bfd section name.
564 (bfd_mach_o_print_segment): Display none if no name.
565 (bfd_mach_o_print_dysymtab): Display next index for local, external
566 and undefined symbols.
567 (bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str.
568 Display dylinker name. Display thread and unixthread commands content.
569 (bfd_mach_o_print_thread): New macro.
570
571 * mach-o.h (bfd_mach_o_mach_header_magic): Align numbers.
572 (bfd_mach_o_ppc_thread_flavour): Ditto.
573 (bfd_mach_o_i386_thread_flavour): Ditto.
574 (BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum.
575 (BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces
576 BFD_MACH_O_THREAD_STATE_NONE.
577 (bfd_mach_o_segment_command): Remove segment field.
578 (bfd_mach_o_thread_flavour): Field offset is now unsigned long.
579 (bfd_mach_o_dylinker_command): Remove section field, add name_str.
580 (bfd_mach_o_prebound_dylib_command): Ditto.
581 (bfd_mach_o_dylib_command): Ditto.
582 (bfd_mach_o_prebound_dylib_command): Remove section field.
583 (mach_o_data_struct): Add dysymtab field.
584 (bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field.
585 (bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc)
586 (bfd_mach_o_build_commands): Remove parameter names and attributes.
587 (bfd_mach_o_get_dynamic_reloc_upper_bound)
588 (bfd_mach_o_canonicalize_dynamic_reloc): New prototypes.
589
c41ba836
DK
5902009-06-25 Rafael Avila de Espindola <espindola@google.com>
591
592 * plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type
593 field of struct dirent.
594
3188b070
TG
5952009-06-23 Tristan Gingold <gingold@adacore.com>
596
597 * vms.c (vms_get_synthetic_symtab): Remove duplicate definition
598 of this macro. Fix indentation.
599
022f8312
CL
6002009-06-22 Christophe Lyon <christophe.lyon@st.com>
601
602 * elf32-arm.c (elf32_arm_size_stubs): Use PLT address as
603 destination for defined dynamic symbols when deciding whether to
604 insert a stub or not.
605 (allocate_dynrelocs): Make sure functions are not marked as Thumb
606 when actually accessed through a PLT, even when generating a
607 shared lib.
608
d297e807
TG
6092009-06-22 Tristan Gingold <gingold@adacore.com>
610
611 * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to
612 the relocs array.
613
ceaf50a2
AM
6142009-06-22 Alan Modra <amodra@bigpond.net.au>
615
616 * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch.
617 * elf32-v850.c (v850_elf_relocate_section): Warning fix.
618
983bddc8
AM
6192009-06-22 Alan Modra <amodra@bigpond.net.au>
620
621 * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning.
622
f8703194
L
6232009-06-19 H.J. Lu <hongjiu.lu@intel.com>
624
625 * elflink.c (elf_link_add_object_symbols): Avoid warning
626 from -Wjump-misses-init in gcc 4.5.0.
627
09a24cbf
L
6282009-06-19 H.J. Lu <hongjiu.lu@intel.com>
629
630 * elf32-i386.c (elf_i386_check_relocs): Properly check local
631 symbol on error.
632 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
633
4c544807
L
6342009-06-19 H.J. Lu <hongjiu.lu@intel.com>
635
636 * elf32-i386.c (elf_i386_tls_transition): Add a parameter,
637 r_symndx. Report local symbol name on error.
638 (elf_i386_check_relocs): Updated. Report local symbol name on
639 error.
640 (elf_i386_gc_sweep_hook): Updated.
641 (elf_i386_relocate_section): Likewise.
642
643 * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter,
644 r_symndx. Report local symbol name on error.
645 (elf64_x86_64_check_relocs): Updated. Report local symbol name
646 on error.
647 (elf64_x86_64_gc_sweep_hook): Updated.
648 (elf64_x86_64_relocate_section): Likewise.
649
b8674692
TG
6502009-06-19 Tristan Gingold <gingold@adacore.com>
651
652 * mach-o.c (bfd_mach_o_print_private_header): Fix format character.
653
046b007d
TG
6542009-06-19 Tristan Gingold <gingold@adacore.com>
655
656 * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Add prototype.
657 (bfd_mach_o_version): Use bfd_mach_o_get_data instead of direct access.
658 (bfd_mach_o_valid): Ditto.
659 (bfd_mach_o_wide_p): Ditto.
660 (bfd_mach_o_canonicalize_reloc): Ditto.
661 (bfd_mach_o_build_commands): Ditto.
662 (bfd_mach_o_scan_read_thread): Ditto.
663 (bfd_mach_o_flatten_sections): Ditto.
664 (bfd_mach_o_scan_start_address): Ditto.
665 (bfd_mach_o_lookup_section): Ditto.
666 (bfd_mach_o_core_fetch_environment): Ditto.
667 (bfd_mach_o_write_contents): Ditto. Handle reexport_dylib.
668 (bfd_mach_o_scan_write_relocs): Adjust for bfd_mach_o_get_data.
669 (bfd_mach_o_scan_write_symtab): Ditto.
670 Use macros instead of hard-coded values.
671 (bfd_mach_o_scan_read_symtab_symbol): Make the function static.
672 Use bfd_mach_o_get_data instead of direct access. Use macros
673 instead of hard-coded values.
674 (bfd_mach_o_scan_read_symtab_strtab): Make the function static.
675 Remove sym argument and get section from mdata.
676 Move code into the else branch.
677 (bfd_mach_o_scan_read_symtab_symbols): Make the function static.
678 Remove sym argument and get section from mdata. Adjust code.
679 (bfd_mach_o_scan_read_dylib): Move assertion into the created
680 switch (which replaces consecutive if statements).
681 (bfd_mach_o_scan_read_dysymtab): Rename seg to cmd. Load
682 module table, table of content, indirect symbols and external
683 referenced symbols.
684 (bfd_mach_o_scan_read_symtab): Renames seg to symtab. Set symtab
685 field.
686 (bfd_mach_o_scan_read_linkedit): New function.
687 (bfd_mach_o_scan_read_str): Ditto.
688 (bfd_mach_o_count_symbols): Simplify the code by using the symtab
689 field of mdata.
690 (bfd_mach_o_get_symtab_upper_bound): Remove check as
691 bfd_mach_o_count_symbols never returns an error.
692 (bfd_mach_o_canonicalize_symtab): Simplify the code by using the
693 symtab field (there might be only one symtab).
694 (bfd_mach_o_scan_read_command): Handle reexported dylib.
695 Handle sub frameworks, sub umbrella, sub library and sub client.
696 Read code signature and segment split info commands.
697 (bfd_mach_o_scan): Reindent.
698 (bfd_mach_o_xlat_name): New type.
699 (bfd_mach_o_print_flags): New function.
700 (bfd_mach_o_get_name): Ditto.
701 (bfd_mach_o_cpu_name): New variable.
702 (bfd_mach_o_filetype_name, bfd_mach_o_header_flags_name)
703 (bfd_mach_o_section_type_name)
704 (bfd_mach_o_section_attribute_name)
705 (bfd_mach_o_load_command_name): New variables.
706 (bfd_mach_o_print_private_header): New function.
707 (bfd_mach_o_print_section_map): New function extracted from
708 bfd_mach_o_print_private_bfd_data.
709 (bfd_mach_o_print_section): Ditto. Print more infos.
710 (bfd_mach_o_print_segment): Ditto.
711 (bfd_mach_o_print_dysymtab): Ditto.
712 (bfd_mach_o_bfd_print_private_bfd_data): Reworked. Handle
713 load weak dylib, reexport dylib and id dylib.
714 Handle code signature and segment_split info.
715 Handle sub frameworks, sub umbrella, sub library and sub client.
716 (bfd_mach_o_section_get_nbr_indirect): New function.
717
718 * mach-o.h (BFD_MACH_O_REFERENCE_MASK): New macro. Add comment.
719 (bfd_mach_o_header_flags): New enum to define header flags.
720 (bfd_mach_o_section_attribute): New enum to replace ...
721 (BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC,
722 BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG,
723 BFD_MACH_O_S_SELF_MODIFYING_CODE, BFD_MACH_O_S_ATTR_LIVE_SUPPORT,
724 BFD_MACH_O_S_ATTR_NO_DEAD_STRIP, BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS,
725 BFD_MACH_O_S_ATTR_NO_TOC, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): ...
726 these removed macros.
727 (BFD_MACH_O_NLIST_SIZE, BFD_MACH_O_NLIST_64_SIZE): New macros.
728 (bfd_mach_o_dylib_module): New type.
729 (BFD_MACH_O_DYLIB_MODULE_SIZE, BFD_MACH_O_DYLIB_MODULE_64_SIZE): New
730 macros.
731 (bfd_mach_o_dylib_table_of_content): New type.
732 (BFD_MACH_O_TABLE_OF_CONTENT_SIZE): New macro.
733 (bfd_mach_o_dylib_reference): New type.
734 (BFD_MACH_O_REFERENCE_SIZE): New macro.
735 (bfd_mach_o_dysymtab_command): Add fields for loaded and decoded
736 modules, toc, references and indirect syms.
737 (BFD_MACH_O_INDIRECT_SYMBOL_SIZE): New macro.
738 (bfd_mach_o_dylinker_command): Remove cmd and cmdsize fields (were
739 unused). Add comment.
740 (bfd_mach_o_dylib_command): Ditto.
741 (bfd_mach_o_prebound_dylib_command): Ditto.
742 (bfd_mach_o_linkedit_command): New type.
743 (bfd_mach_o_str_command): New type.
744 (bfd_mach_o_load_command): Add linkedit and str fields.
745 (mach_o_data_struct): Add symtab field.
746 (bfd_get_mach_o_data): Renamed to ...
747 (bfd_mach_o_get_data): ... this new macro.
748 (bfd_mach_o_scan_read_symtab_symbol,
749 bfd_mach_o_scan_read_symtab_strtab,
750 bfd_mach_o_scan_read_symtab_symbols): Prototypes removed.
751
752 * mach-o-i386.c (bfd_mach_o_i386_mkobject): Use bfd_mach_o_get_data
753 instead of direct access.
754
6d78d0b9
AM
7552009-06-19 Alan Modra <amodra@bigpond.net.au>
756
757 * elf32-ppc.c (ppc_elf_check_relocs): Allow local symbols for
758 R_PPC_PLTREL24 relocs.
759 (ppc_elf_relocate_section): Likewise.
760
3ec01793
AM
7612009-06-19 Alan Modra <amodra@bigpond.net.au>
762
763 * elf32-ppc.c (find_plt_ent): Pass pointer to plist rather than
764 pointer to sym hash. Update all uses.
765 (update_plt_info): Likewise. Don't check addend here.
766
c2e61a4e
L
7672009-06-18 H.J. Lu <hongjiu.lu@intel.com>
768
769 * elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use
770 bfd_sym_from_r_symndx.
771 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
772
87d72d41
AM
7732009-06-18 Alan Modra <amodra@bigpond.net.au>
774
775 * elf-bfd.h (struct sym_sec_cache): Delete.
776 (struct sym_cache): New.
777 (bfd_section_from_r_symndx): Delete prototype.
778 (bfd_sym_from_r_symndx): Define prototype.
779 * elf.c (bfd_section_from_r_symndx): Delete, replace with..
780 (bfd_sym_from_r_symndx): ..new function.
781 * elf32-arm.c: Update all uses of struct sym_sec_cache and
782 bfd_section_from_r_symndx to new struct and function.
783 * elf32-bfin.c: Likewise.
784 * elf32-hppa.c: Likewise.
785 * elf32-i386.c: Likewise.
786 * elf32-m32r.c: Likewise.
787 * elf32-m68hc1x.c: Likewise.
788 * elf32-m68hc1x.h: Likewise.
789 * elf32-m68k.c: Likewise.
790 * elf32-ppc.c: Likewise.
791 * elf32-s390.c: Likewise.
792 * elf32-sh.c: Likewise.
793 * elf64-ppc.c: Likewise.
794 * elf64-s390.c: Likewise.
795 * elf64-x86-64.c: Likewise.
796 * elfxx-sparc.c: Likewise.
797 * elfxx-sparc.h: Likewise.
798
14aae723
L
7992009-06-18 H.J. Lu <hongjiu.lu@intel.com>
800
801 * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf.
802 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
803
5e486aa1
NC
8042009-06-18 Nick Clifton <nickc@redhat.com>
805
806 * elflink.c (elf_link_sort_relocs): Return early if there are no
807 relocs to sort.
808
361dff73
DK
8092009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
810
32425da9
NC
811 Merge cegcc and mingw32ce target name changes from
812 CeGCC project:
361dff73 813
32425da9 814 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
361dff73
DK
815
816 * config.bfd: Add arm*-*-cegcc* target.
817
32425da9 818 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
361dff73
DK
819
820 * config.bfd: Add arm-*-mingw32ce* target.
821
e03a8ed8
L
8222009-06-17 H.J. Lu <hongjiu.lu@intel.com>
823
824 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New.
825 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise.
826 * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it.
827 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
828
8292009-06-17 H.J. Lu <hongjiu.lu@intel.com>
830
831 * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New.
832 * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise.
833 * elf32-i386.c (elf_i386_check_relocs): Use it.
834 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
835
8362009-06-17 H.J. Lu <hongjiu.lu@intel.com>
837
838 * elf-bfd.h (elf_dyn_relocs): New.
839
840 * elf32-i386.c (elf_i386_dyn_relocs): Removed.
841 (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with
842 elf_dyn_relocs.
843 (elf_i386_copy_indirect_symbol): Likewise.
844 (elf_i386_check_relocs): Likewise.
845 (elf_i386_gc_sweep_hook): Likewise.
846 (elf_i386_allocate_dynrelocs): Likewise.
847 (elf_i386_readonly_dynrelocs): Likewise.
848 (elf_i386_size_dynamic_sections): Likewise.
849
850 * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed.
851 (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs
852 with elf_dyn_relocs.
853 (elf64_x86_64_copy_indirect_symbol): Updated.
854 (elf64_x86_64_check_relocs): Likewise.
855 (elf64_x86_64_gc_sweep_hook): Likewise.
856 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
857 (elf64_x86_64_allocate_dynrelocs): Likewise.
858 (elf64_x86_64_readonly_dynrelocs): Likewise.
859 (elf64_x86_64_size_dynamic_sections): Likewise.
860
64e77c6d
L
8612009-06-17 H.J. Lu <hongjiu.lu@intel.com>
862
863 * elf32-arm.c (create_got_section): Get existing .rela.got
864 section.
865 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
866 * elf32-lm32.c (create_got_section): Likewise.
867 * elf32-m32r.c (create_got_section): Likewise.
868 * elf32-ppc.c (ppc_elf_create_got): Likewise.
869 * elf32-s390.c (create_got_section): Likewise.
870 * elf32-sh.c (create_got_section): Likewise.
871 * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
872 * elf64-s390.c (create_got_section): Likewise.
873 * elfxx-sparc.c (create_got_section): Likewise.
874
875 * elflink.c (_bfd_elf_create_got_section): Properly initialize
876 the GOT size.
877
d2149d72
L
8782009-06-16 H.J. Lu <hongjiu.lu@intel.com>
879
880 * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New.
881
882 * elf32-i386.c (elf_i386_local_hash): Removed.
883 (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
884 (elf_i386_get_local_sym_hash): Likewise.
885
886 * elf64-x86-64.c (elf64_x86_64_local_hash): Removed.
887 (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
888 (elf64_x86_64_get_local_sym_hash): Likewise.
889 * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise.
890 (get_local_sym_hash): Likewise.
891
cc3bd654
L
8922009-06-16 H.J. Lu <hongjiu.lu@intel.com>
893
894 * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec,
895 rel_got_sec and plt_sec.
896 (elfNN_ia64_relax_section): Updated.
897 (elfNN_ia64_create_dynamic_sections): Likewise.
898 (get_got): Likewise.
899 (allocate_dynrel_entries): Likewise.
900 (elfNN_ia64_size_dynamic_sections): Likewise.
901 (set_got_entry): Likewise.
902 (elfNN_ia64_choose_gp): Likewise.
903 (elfNN_ia64_relocate_section): Likewise.
904 (elfNN_ia64_finish_dynamic_symbol): Likewise.
905 (elfNN_ia64_finish_dynamic_sections): Likewise.
906
be3e406d
UW
9072009-06-16 Ulrich Weigand <uweigand@de.ibm.com>
908
909 * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits
910 also for calls.
911
6de2ae4a
L
9122009-06-16 H.J. Lu <hongjiu.lu@intel.com>
913
914 * configure.in (elf): Add elf-ifunc.lo.
915
916 * configure: Regenerated.
917 * Makefile.in: Likewise.
918
919 * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt,
920 srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc.
921
922 * elf32-i386.c (elf_i386_link_hash_table): Remove sgot,
923 sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
924 irelifunc.
925 (elf_i386_link_hash_table_create): Likewise.
926 (elf_i386_create_dynamic_sections): Likewise.
927 (elf_i386_check_relocs): Likewise.
928 (elf_i386_allocate_dynrelocs): Likewise.
929 (elf_i386_size_dynamic_sections): Likewise.
930 (elf_i386_relocate_section): Likewise.
931 (elf_i386_finish_dynamic_symbol): Likewise.
932 (elf_i386_finish_dynamic_sections): Likewise.
933 (elf_i386_create_got_section): Removed.
934
935 * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot,
936 sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
937 irelifunc.
938 (elf64_x86_64_compute_jump_table_size): Updated.
939 (elf64_x86_64_link_hash_table_create): Likewise.
940 (elf64_x86_64_create_dynamic_sections): Likewise.
941 (elf64_x86_64_check_relocs): Likewise.
942 (elf64_x86_64_allocate_dynrelocs): Likewise.
943 (elf64_x86_64_size_dynamic_sections): Likewise.
944 (elf64_x86_64_relocate_section): Likewise.
945 (elf64_x86_64_finish_dynamic_symbol): Likewise.
946 (elf64_x86_64_finish_dynamic_sections): Likewise.
947 (elf64_x86_64_create_got_section): Removed.
948
949 * elflink.c (_bfd_elf_create_got_section): Use log_file_align
950 for pointer alignment. Set up section pointers.
951 (_bfd_elf_create_dynamic_sections): Likewise.
952 (_bfd_elf_create_ifunc_sections): Moved to ...
953 * elf-ifunc.c: Here. New.
954
955 * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo.
956 (BFD32_BACKENDS_CFILES): Add elf-ifunc.c.
957 Run "make dep-am".
958
81694485
NC
9592009-06-16 Doug Kwan <dougkwan@google.com>
960
6de2ae4a
L
961 * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset
962 to bfd_signed_vma. Cast constant operands which are used in
963 offset related expressions to bfd_signed_vma type as appropriate.
81694485 964
6db7e006
MR
9652009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
966
967 * elf32-vax.c (elf_vax_plt_sym_val): New function.
968 (elf_backend_plt_sym_val): Define.
969
9b90d8fd
MR
9702009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
971
972 * elf32-vax.c (elf_vax_reloc_type_class): New function.
973 (elf_backend_reloc_type_class): Define.
974
04981bc1
MR
9752009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
976
977 * elf32-vax.c (elf_vax_relocate_section): For symbol references
978 from an executable to a shared library treat R_VAX_PC32
979 relocations as R_VAX_PLT32 ones.
980
886815b2
MR
9812009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
982
983 * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local
984 symbols in GOT space calculation.
985 (elf_vax_relocate_section): Adjust accordingly.
986
6c4fb25a
MR
9872009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
988
989 * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to
990 include <R11:R2>.
991
7b6021f1
MR
9922009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
993
994 * elf32-vax.c (elf_vax_check_relocs): Handle the visibility
995 attribute.
996 (elf_vax_relocate_section): Likewise.
997
188dbb07
L
9982009-06-15 H.J. Lu <hongjiu.lu@intel.com>
999
1000 * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
1001 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
1002
048cbda4
L
10032009-06-15 H.J. Lu <hongjiu.lu@intel.com>
1004
1005 * elf32-i386.c (elf_i386_check_relocs): Reformat.
1006 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
1007
482c6ce9
L
10082009-06-15 H.J. Lu <hongjiu.lu@intel.com>
1009
1010 * Makefile.am: Run "make dep-am".
1011 * Makefile.in: Regenerated.
1012
eba077f2
L
10132009-06-15 H.J. Lu <hongjiu.lu@intel.com>
1014
1015 * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo.
1016 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
1017
ec68b083
NC
10182009-06-15 Nick Clifton <nickc@redhat.com>
1019
1020 * po/ru.po: New Russian translation.
1021 * configure.in (ALL_LINGUAS): Add ru.
1022 * configure: Regenerate.
1023
b80ee1aa
L
10242009-06-14 H.J. Lu <hongjiu.lu@intel.com>
1025
1026 * elf32-i386.c: Remove duplicated comments.
1027
44c4ea11
L
10282009-06-14 H.J. Lu <hongjiu.lu@intel.com>
1029
1030 PR ld/10270
1031 * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow
1032 dynamic IFUNC pointer in non-shared object. Use .got.plt
1033 for IFUNC definition in PIE.
1034 (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in
1035 PIE locally.
1036
1037 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow
1038 dynamic IFUNC pointer in non-shared object. Use .got.plt
1039 for IFUNC definition in PIE.
1040 (elf64_x86_64_relocate_section): Resolve IFUNC definition in
1041 PIE locally.
1042
8b7e2992
L
10432009-06-13 H.J. Lu <hongjiu.lu@intel.com>
1044
1045 * elf32-i386.c (elf_i386_check_relocs): Properly report
1046 local symbol for unhandled relocation against STT_GNU_IFUNC
1047 symbol.
637fa7af 1048 (elf_i386_relocate_section): Likewise.
8b7e2992 1049 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
637fa7af 1050 (elf64_x86_64_relocate_section): Likewise.
8b7e2992 1051
c25bc9fc
L
10522009-06-13 H.J. Lu <hongjiu.lu@intel.com>
1053
1054 PR ld/10269
1055 * elf32-i386.c: Include "objalloc.h" and "hashtab.h".
1056 (elf_i386_link_hash_table): Add loc_hash_table and
1057 loc_hash_memory.
1058 (elf_i386_local_hash): New.
1059 (elf_i386_local_htab_hash): Likewise.
1060 (elf_i386_local_htab_eq): Likewise.
1061 (elf_i386_get_local_sym_hash): Likewise.
1062 (elf_i386_link_hash_table_free): Likewise.
1063 (elf_i386_allocate_local_dynrelocs): Likewise.
1064 (elf_i386_finish_local_dynamic_symbol): Likewise.
1065 (bfd_elf64_bfd_link_hash_table_free): Likewise.
1066 (elf_i386_link_hash_table_create): Create loc_hash_table and
1067 loc_hash_memory.
1068 (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols.
1069 (elf_i386_size_dynamic_sections): Likewise.
1070 (elf_i386_relocate_section): Likewise.
1071 (elf_i386_finish_dynamic_sections): Likewise.
1072 (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym
1073 isn't NULL.
1074
1075 * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h".
1076 (elf64_x86_64_link_hash_table): Add loc_hash_table and
1077 loc_hash_memory.
1078 (elf64_x86_64_local_hash): New.
1079 (elf64_x86_64_local_htab_hash): Likewise.
1080 (elf64_x86_64_local_htab_eq): Likewise.
1081 (elf64_x86_64_get_local_sym_hash): Likewise.
1082 (elf64_x86_64_link_hash_table_free): Likewise.
1083 (elf64_x86_64_allocate_local_dynrelocs): Likewise.
1084 (elf64_x86_64_finish_local_dynamic_symbol): Likewise.
1085 (bfd_elf64_bfd_link_hash_table_free): Likewise.
1086 (elf64_x86_64_link_hash_table_create): Create loc_hash_table
1087 and loc_hash_memory.
1088 (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC
1089 symbols.
1090 (elf64_x86_64_size_dynamic_sections): Likewise.
1091 (elf64_x86_64_relocate_section): Likewise.
1092 (elf64_x86_64_finish_dynamic_sections): Likewise.
1093 (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if
1094 sym isn't NULL.
1095
dec9d5df
PB
10962009-06-10 Philip Blundell <philb@gnu.org>
1097
1098 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
1099 elf_sec->this_hdr == NULL.
1100
92bc0e80
TG
11012009-06-12 Tristan Gingold <gingold@adacore.com>
1102
1103 * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
1104 * bfd-in2.h: Regenerated.
1105 * libbfd.h: Regenerated.
1106
1107 * mach-o.c (FILE_ALIGN): New macro.
1108 (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
1109 (bfd_mach_o_print_symbol): Ditto.
1110 (bfd_mach_o_scan_write_thread): Adjust type of variable offset.
1111 (bfd_mach_o_get_reloc_upper_bound): New function.
1112 (bfd_mach_o_canonicalize_reloc): Ditto.
1113 (bfd_mach_o_scan_write_relocs): Ditto.
1114 (bfd_mach_o_scan_write_section_32): Remove offset argument.
1115 (bfd_mach_o_scan_write_section_64): Ditto.
1116 (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data
1117 written for load command. Do not compute section file offset.
1118 (bfd_mach_o_scan_write_segment_64): Ditto.
1119 (bfd_mach_o_scan_write_symtab): Compute file offset first.
1120 Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to
1121 Mach-O to ...
1122 (bfd_mach_o_mangle_symbols): ... this new function.
046b007d 1123 (bfd_mach_o_write_contents): Be sure to have load commands built.
92bc0e80
TG
1124 Call bfd_mach_o_mangle_symbols.
1125 (bfd_mach_o_build_commands): Adjust for filelen field.
1126 Use FILE_ALIGN macro. Clear section file offset if section is empty.
1127 Do not set symtab file offset anymore here.
1128 (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
1129 (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
1130 Set reloc_count and rel_filepos section fields.
1131 (bfd_mach_o_scan_read_section_32): Type of argument offset is now
1132 unsigned int.
1133 (bfd_mach_o_scan_read_section_64): Ditto.
1134 (bfd_mach_o_scan_read_section): Ditto.
1135 (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
1136 bfd_mach_o_asymbol. Use unsigned int for file offset type.
1137 (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
1138 Handle weak-ref symbols.
1139 (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
1140 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
1141 (bfd_mach_o_scan): Remove assignment to removed field.
1142 (bfd_mach_o_mkobject_init): Ditto.
1143 (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
1144 (bfd_mach_o_bfd_reloc_type_lookup): New macro.
1145 (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
1146 (bfd_mach_o_swap_reloc_in): Ditto.
1147 (bfd_mach_o_swap_reloc_out): Ditto.
1148
1149 * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
1150 (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
1151 (BFD_MACH_O_REFERENCE_FLAG_DEFINED)
1152 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
1153 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
1154 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
1155 (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
1156 (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
1157 (BFD_MACH_O_N_WEAK_DEF): New macros.
1158 Add comments.
1159 (bfd_mach_o_section_type): Add new enumeration values.
1160 (BFD_MACH_O_S_SELF_MODIFYING_CODE)
1161 (BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
1162 (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
1163 (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
1164 macros.
1165 (BFD_MACH_O_GENERIC_RELOC_VANILLA)
1166 (BFD_MACH_O_GENERIC_RELOC_PAIR)
1167 (BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
1168 (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
1169 (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
1170 (BFD_MACH_O_RELENT_SIZE): Ditto.
1171 (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
1172 (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
1173 (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
1174 (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
1175 (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
1176 (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
1177 (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
1178 (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
1179 (bfd_mach_o_reloc_info): New struct.
1180 (bfd_mach_o_asymbol): New struct.
1181 (bfd_mach_o_symtab_command): The symbols field is now of type
1182 bfd_mach_o_asymbol.
1183 (bfd_mach_o_load_command): The offset and len fields are now of type
1184 unsigned int.
1185 (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
1186 Add a filelen field. Add comments.
1187 (bfd_mach_o_backend_data): New struct.
1188 (bfd_mach_o_get_backend_data): New macro.
1189 (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
1190 bfd_mach_o_asymbol.
1191 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
1192 (bfd_mach_o_get_reloc_upper_bound): New prototype.
1193 (bfd_mach_o_canonicalize_reloc): Ditto.
1194
1195 * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
1196 duplicated macro. Now defined to _bfd_generic_is_local_label.
1197 (TARGET_NAME_BACKEND): New macro...
1198 (TARGET_NAME_BACKEND): ... used to name a new variable.
1199 (TARGET_NAME): Define relocs table using bfd_mach_o, reference
1200 Mach-O backend data.
1201
1202 * mach-o-i386.c (i386_howto_table): New variable.
1203 (bfd_mach_o_i386_swap_reloc_in): New function.
1204 (bfd_mach_o_i386_swap_reloc_out): Ditto.
1205 (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
1206 (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
1207 (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
1208 (bfd_mach_o_bfd_reloc_type_lookup)
1209 (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
1210
8c7d38e8
NC
12112009-06-11 Eric Paris <eparis@redhat.com>
1212 Nick Clifton <nickc@redhat.com>
1213
1214 * opncls.c (_maybe_make_executable): New function. Gives execute
1215 permission to an executable bfd that was opened for writing
1216 provided that it is a regular file. Replaces common code found in...
1217 (bfd_close): here and ...
1218 (bfd_close_all_done): here.
1219
f865a31d
AG
12202009-06-11 Anthony Green <green@moxielogic.com>
1221
1222 * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL.
1223 * bfd-in2.h: Rebuilt.
1224 * libbfd.h: Rebuilt.
1225 * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10
1226 relocation support.
1227 (moxie_reloc_map): Ditto.
1228 Clean up copyright notice.
1229
25b88f33
PP
12302009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com>
1231
1372b818 1232 * bfd-in2.h: bfd_mmap prototype.
25b88f33
PP
1233 * bfdio.c (bfd_mmap): New function.
1234 * libbfd.h (bfd_iovec): Add bmmap.
1372b818 1235 * cache.c (cache_bmmap): New function.
25b88f33
PP
1236 (cache_iovec): Initialize bmmap member.
1237 * opencls.c (opncls_bmmap): New function.
1238 (opncls_iovec): Initialize bmmap member.
1239
c2f09c75
TG
12402009-06-09 Tristan Gingold <gingold@adacore.com>
1241
1242 * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
1243 and stabstr_segment fields.
1244 (mach_o_be_vec, mach_o_le_vec): Removed
1245 (bfd_mach_o_version): New prototype.
1246
1247 * mach-o.c (bfd_mach_o_version): Make this function public.
1248 (mach_o_wide_p): New function.
1249 (bfd_mach_o_wide_p): Ditto.
1250 (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
1251 weird names.
1252 (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
1253 Search in the list only if the name starts with a dot.
1254 (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
1255 test. Check bfd_seek status.
1256 (bfd_mach_o_scan_write_thread): Check bfd_seek status.
1257 (bfd_mach_o_scan_write_section_32): Ditto.
1258 (bfd_mach_o_scan_write_section_64): Ditto.
1259 (bfd_mach_o_scan_write_section): Removed.
1260 (bfd_mach_o_scan_write_segment): Split into ...
1261 (bfd_mach_o_scan_write_segment_32): ... this and ...
1262 (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status.
1263 (bfd_mach_o_scan_write_symtab_symbols): Moved into ...
1264 (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD
1265 symbol table. Now returns a boolean.
1266 (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status.
1267 Adjust for status type.
1268 (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
1269 test. Write symbol table. Numbers the sections.
1270 (bfd_mach_o_read_header): Check bfd_seek status.
1271 Use mach_o_wide_p instead of hard-coded test.
1272 (bfd_mach_o_scan_read_section_32): Check bfd_seek status.
1273 (bfd_mach_o_scan_read_section_64): Ditto.
1274 (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status.
1275 Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly
1276 handled common symbols.
1277 (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
1278 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
1279 (bfd_mach_o_scan_read_dylinker): Ditto.
1280 (bfd_mach_o_scan_read_dylib): Ditto.
1281 (bfd_mach_o_scan_read_thread): Ditto.
1282 (bfd_mach_o_scan_read_symtab): Ditto.
1283 Do not create a section for the stabs.
1284 (bfd_mach_o_scan_read_uuid): Check bfd_seek status.
1285 (bfd_mach_o_scan_read_segment): Ditto.
1286 (bfd_mach_o_scan_read_command): Ditto.
1287 (bfd_mach_o_scan_start_address): Ditto.
1288 (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
1289 (bfd_mach_o_archive_p): Check bfd_seek status.
1290 (bfd_mach_o_core_fetch_environment): Ditto.
1291
1292 * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
1293
2a81c24a
L
12942009-06-06 H.J. Lu <hongjiu.lu@intel.com>
1295
1296 * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
1297 (elf_i386_link_hash_table_create): Initialize irelifunc.
1298 (elf_i386_check_relocs): Updated. Set up irelifunc for
1299 shared objects.
1300 (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
1301 relocation for non-GOT reference of STT_GNU_IFUNC symbol in
1302 shared objects.
1303 (elf_i386_relocate_section): Likewise.
1304
1305 * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
1306 (elf64_x86_64_link_hash_table_create): Initialize irelifunc.
1307 (elf64_x86_64_check_relocs): Updated. Set up irelifunc for
1308 shared objects.
1309 (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
1310 relocation for non-GOT reference of STT_GNU_IFUNC symbol in
1311 shared objects.
1312 (elf64_x86_64_relocate_section): Likewise.
1313
1314 * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
1315 ...
1316 (_bfd_elf_create_ifunc_sections): This.
1317
c2f09c75 1318 * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to
2a81c24a
L
1319 ...
1320 (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc
1321 for shared objects.
1322
710ab287
L
13232009-06-06 H.J. Lu <hongjiu.lu@intel.com>
1324
1325 * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
1326 relocation for R_386_32 against STT_GNU_IFUNC symbol when
1327 building shared object. Check info->executable instead of
1328 !info->shared when setting non_got_ref.
1329 (elf_i386_allocate_dynrelocs): Allocate dynamic relocation
1330 for non-GOT reference of STT_GNU_IFUNC symbol in shared
1331 object. Allocate GOT relocation agsinst STT_GNU_IFUNC
1332 symbol if needed.
1333 (elf_i386_relocate_section): Output dynamic relocation for
1334 R_386_32 against STT_GNU_IFUNC symbol to get the real
1335 function address when building shared object.
1336 (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
1337 relocation for STT_GNU_IFUNC symbol in shared object.
1338
1339 * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
1340 dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
1341 symbol when building shared object. Check info->executable
1342 instead of !info->shared when setting non_got_ref.
1343 (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
1344 for non-GOT reference of STT_GNU_IFUNC symbol in shared
1345 library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
1346 if needed.
1347 (elf64_x86_64_relocate_section): Output dynamic relocation
1348 for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
1349 function address when building shared object.
1350 (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
1351 relocation for STT_GNU_IFUNC symbol in shared object.
1352
9e93c730
JK
13532009-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 * Makefile.am: Run "make dep-am".
1356 (BFD32_BACKENDS): Add mach-o-i386.lo.
1357 (BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
1358 * Makefile.in: Regenerate.
1359
74681fc4
AM
13602009-06-06 Alan Modra <amodra@bigpond.net.au>
1361
1362 * elf32-spu.c (spu_elf_relocate_section): Match overlay number
1363 when looking for soft-icache stubs.
1364
154a1ee5
TG
13652009-06-05 Tristan Gingold <gingold@adacore.com>
1366
1367 * mach-o.h: Update copyright year.
1368 (bfd_mach_o_mach_header_magic): New enum.
1369 (bfd_mach_o_cpu_subtype): Now an enum.
1370 (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
1371 (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
1372 (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
1373 (bfd_mach_o_load_command): Field type_required is now a boolean.
1374 Reindent prototypes.
1375 (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
1376 (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
1377 (bfd_mach_o_bfd_copy_private_section_data): Ditto.
1378 (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
1379 (bfd_mach_o_get_symtab_upper_bound): Ditto.
1380 (bfd_mach_o_canonicalize_symtab): Ditto.
1381 (bfd_mach_o_get_symbol_info): Ditto.
1382 (bfd_mach_o_print_symbol): Ditto.
1383 (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
1384 (bfd_mach_o_make_empty_symbol): Ditto.
1385 (bfd_mach_o_write_contents): Ditto.
1386
1387 * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
1388 bfd_mach_o_mkobject): Defines.
1389 (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
1390 Do not check with target vector but with flavour.
1391 (struct mach_o_section_name_xlat): New declaration.
1392 (dwarf_section_names_xlat): Ditto.
1393 (text_section_names_xlat): Ditto.
1394 (data_section_names_xlat): Ditto.
1395 (struct mach_o_segment_name_xlat): Ditto.
1396 (segsec_names_xlat): Ditto.
1397 (bfd_mach_o_convert_section_name_to_bfd): New function.
1398 (bfd_mach_o_convert_section_name_to_mach_o): Ditto.
1399 (bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
1400 (bfd_mach_o_bfd_copy_private_section_data): Ditto.
1401 (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
1402 Accept any input and output flavour. Do not share private data
1403 anymore.
1404 (bfd_mach_o_count_symbols): Add a comment.
1405 (bfd_mach_o_get_symtab_upper_bound): Make it public.
1406 (bfd_mach_o_canonicalize_symtab): Ditto.
1407 (bfd_mach_o_get_symbol_info): Ditto.
1408 (bfd_mach_o_print_symbol): Ditto.
1409 (bfd_mach_o_write_header): Now returns a boolean instead of an int.
1410 Use constants instead of hard-coded values.
1411 (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
1412 values.
1413 (bfd_mach_o_scan_write_section_64): Ditto.
1414 (bfd_mach_o_scan_write_segment): Ditto.
1415 Do not copy sections anymore.
1416 (bfd_mach_o_write_contents): Make it public.
1417 Remove dead code. Rewrite typeflag assignment.
1418 (bfd_mach_o_build_commands): New function.
1419 (bfd_mach_o_set_section_contents): Ditto.
1420 (bfd_mach_o_make_empty_symbol): Make it public.
1421 (bfd_mach_o_read_header): Make it static.
1422 Convert to bfd_boolean.
1423 Use constants instead of hard-coded values.
1424 (bfd_mach_o_make_bfd_section): Call
1425 bfd_mach_o_convert_section_name_to_bfd to create name.
1426 (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
1427 values.
1428 (bfd_mach_o_scan_read_section_64): Ditto.
1429 (bfd_mach_o_scan_read_segment): Do not create a bfd section for
1430 a segment anymore. Use constants instead of hard-coded values.
1431 (bfd_mach_o_scan_read_command): Fix style.
1432 (bfd_mach_o_scan): Use constants instead of hard-coded values.
1433 Get rid of BFD_IO_FUNCS.
1434 (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
1435 (bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
1436 (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
1437 (bfd_mach_o_object_p): Removed.
1438 (bfd_mach_o_gen_core_p): New function, replaces ...
1439 (bfd_mach_o_core_p): ... deleted.
1440 (bfd_mach_o_bfd_print_private_bfd_data): Make it public.
1441
1442 * mach-o-i386.c: New file.
1443 * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
1444 * configure.in (TDEFINES): Add mach_o_i386_vec.
1445 * configure: Regenerated.
1446 * targets.c: Add mach_o_i386_vec.
1447
1448 * mach-o.c: Update copyright years.
1449 (BFD_IO_FUNCS): Remove (was not used).
1450 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
1451 bfd_mach_o_slurp_extended_name_table,
1452 bfd_mach_o_construct_extended_name_table,
1453 bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
1454 bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
1455 bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
1456 bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
1457 bfd_mach_o_get_section_contents_in_window,
1458 bfd_mach_o_bfd_is_local_label_name,
1459 bfd_mach_o_bfd_is_target_special_symbol,
1460 bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
1461 bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
1462 bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
1463 bfd_mach_o_minisymbol_to_symbol,
1464 bfd_mach_o_bfd_get_relocated_section_contents,
1465 bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
1466 bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
1467 bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
1468 bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
1469 bfd_mach_o_bfd_merge_private_bfd_data,
1470 bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
1471 bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
1472 bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
1473 bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
1474 bfd_mach_o_bfd_copy_private_header_data,
1475 bfd_mach_o_core_file_matches_executable_p): Move these defines ...
1476 * mach-o-target.c: ... here.
1477 Update copyright years.
1478
a1ef399e
AM
14792009-06-04 Alan Modra <amodra@bigpond.net.au>
1480
1481 * dep-in.sed: Don't use \n in replacement part of s command.
1482 * Makefile.am (DEP1): LC_ALL for uniq.
1483 Run "make dep-am".
1484 * Makefile.in: Regenerate.
1485
2e75bb35
L
14862009-06-03 H.J. Lu <hongjiu.lu@intel.com>
1487
1488 * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
1489 h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
1490 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
1491
0018b0a3
L
14922009-06-03 H.J. Lu <hongjiu.lu@intel.com>
1493
1494 * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
1495 GOT entry for STT_GNU_IFUNC symbol with pointer equality.
1496 (elf_i386_relocate_section): Adjust R_386_GOT32 relocation
1497 against STT_GNU_IFUNC symbols for static executables.
1498 (elf_i386_finish_dynamic_symbol): Load GOT entry with
1499 PLT entry for STT_GNU_IFUNC symbol with pointer equality.
1500
1501 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
1502 GOT entry for STT_GNU_IFUNC symbol with pointer equality.
1503 (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
1504 PLT entry for STT_GNU_IFUNC symbol with pointer equality.
1505
94313f36
RS
15062009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1507
1508 * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
1509 symbols to be left unimported when linking statically.
1510 * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
1511 code when linking statically.
1512
7afd84dc
L
15132009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1514
1515 * elf32-i386.c (elf_i386_check_relocs): Increment
1516 got.refcount for R_386_GOT32/R_386_GOTOFF relocations
1517 against STT_GNU_IFUNC symbol.
1518 (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
1519 local STT_GNU_IFUNC definition is used.
1520 (elf_i386_relocate_section): Handle got.offset != -1 for
1521 R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
1522 symbol.
1523
1524 * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
1525 got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
1526 relocations against STT_GNU_IFUNC symbol.
1527 (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
1528 local STT_GNU_IFUNC definition is used.
1529 (elf64_x86_64_relocate_section): Handle got.offset != -1
1530 for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
1531 STT_GNU_IFUNC symbol.
1532
cbe950e9
L
15332009-06-01 H.J. Lu <hongjiu.lu@intel.com>
1534
1535 PR ld/10205
1536 * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
1537 (elf_i386_reloc_type_lookup): Likewise.
1538 (R_386_tls): Removed.
1539 (R_386_irelative): New.
1540 (R_386_vt_offset): Updated.
1541 (elf_i386_rtype_to_howto): Likewise.
1542 (elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
1543 (elf_i386_link_hash_table_create): Initialize igotplt,
1544 iplt and irelplt.
1545 (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
1546 (elf_i386_adjust_dynamic_symbol): Likewise.
1547 (elf_i386_allocate_dynrelocs): Likewise.
1548 (elf_i386_relocate_section): Likewise.
1549 (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
1550 sections.
1551 (elf_i386_finish_dynamic_symbol): When building a static
1552 executable, use .iplt, .igot.plt and .rel.iplt sections for
1553 STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for
1554 locally defined STT_GNU_IFUNC symbol.
1555
1556 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
1557 (x86_64_reloc_map): Likewise.
1558 (R_X86_64_standard): Updated.
1559 (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
1560 (elf64_x86_64_link_hash_table_create): Initialize igotplt,
1561 iplt and irelplt.
1562 (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
1563 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1564 (elf64_x86_64_allocate_dynrelocs): Likewise.
1565 (elf64_x86_64_relocate_section): Likewise.
1566 (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
1567 sections.
1568 (elf64_x86_64_finish_dynamic_symbol): When building a static
1569 executable, use .iplt, .igot.plt and .rela.iplt sections for
1570 STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation
1571 for locally defined STT_GNU_IFUNC symbol.
1572
1573 * reloc.c (BFD_RELOC_386_IRELATIVE): New.
1574 (BFD_RELOC_X86_64_IRELATIVE): Likewise.
1575
1576 * bfd-in2.h: Regenerated.
1577 * libbfd.h: Likewise.
1578
3aa14d16
L
15792009-06-01 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
1582 (_bfd_elf_make_ifunc_reloc_section): Removed.
1583 (_bfd_elf_is_ifunc_symbol): Likewise.
1584 (_bfd_elf_create_static_ifunc_sections): New.
1585
1586 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
1587 symbol check to ...
1588 (elf_link_add_object_symbols): Here.
1589 (_bfd_elf_link_hash_hide_symbol): Don't clean plt on
1590 STT_GNU_IFUNC symbol.
1591 (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
1592 if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
1593 (IFUNC_INFIX): Removed.
1594 (get_ifunc_reloc_section_name): Likewise.
1595 (_bfd_elf_make_ifunc_reloc_section): Likewise.
1596 (_bfd_elf_is_ifunc_symbol): Likewise.
1597 (_bfd_elf_create_static_ifunc_sections): New.
1598
eb4ff4d6
L
15992009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1600
1601 * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
1602 (create_got_section): Likewise.
1603 (allocate_dynrelocs): Likewise.
1604 (readonly_dynrelocs): Likewise.
1605 (set_tls_module_base): Likewise.
1606 (dtpoff_base): Likewise.
1607 (tpoff): Likewise.
1608 (elf_i386_link_hash_table_create): Updated.
1609 (elf_i386_create_dynamic_sections): Likewise.
1610 (elf_i386_check_relocs): Likewise.
1611 (elf_i386_size_dynamic_sections): Likewise.
1612 (elf_i386_relocate_section): Likewise.
1613
1614 * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
1615 (create_got_section): Likewise.
1616 (allocate_dynrelocs): Likewise.
1617 (readonly_dynrelocs): Likewise.
1618 (set_tls_module_base): Likewise.
1619 (dtpoff_base): Likewise.
1620 (tpoff): Likewise.
1621 (elf64_x86_64_link_hash_table_create): Updated.
1622 (elf64_x86_64_create_dynamic_sections): Likewise.
1623 (elf64_x86_64_check_relocs): Likewise.
1624 (elf64_x86_64_size_dynamic_sections): Likewise.
1625 (elf64_x86_64_relocate_section): Likewise.
1626
fc579192
NC
16272009-05-28 Nick Clifton <nickc@redhat.com>
1628
1629 * targets.c (_bfd_target_vector): Only include plugin target in
1630 all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.
1631
5ebe2858
UW
16322009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
1633
1634 * elf32-spu.c (struct call_info): New member broken_cycle.
1635 (remove_cycle): Instead of physically removing call_info structures
1636 to break call graph cycles, mark them using the broken_cycle flag.
1637 (mark_overlay_section): Respect broken_cycle flag.
1638 (unmark_overlay_section): Likewise.
1639 (collect_lib_sections): Likewise.
1640 (collect_overlays): Likewise.
1641 (sum_stack): Likewise.
1642
34ad4cb0
UW
16432009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
1644
1645 * elf32-spu.c (insert_callee): Accumulate incoming callee->count.
1646 (mark_functions_via_relocs): Initialize callee->count to 1.
1647 (pasted_function): Likewise.
1648 (spu_elf_auto_overlay): Honor call counts when determining number
1649 of stubs required in software i-cache mode.
1650
fc579192
NC
16512009-05-27 Rafael Avila de Espindola <espindola@google.com>
1652
1653 * plugin.c (program_name): Remove.
1654 (plugin_program_name): New.
1655 (bfd_plugin_set_program_name): New.
1656 (try_load_plugin): Use plugin_program_name.
1657 * plugin.h (bfd_plugin_set_program_name): New.
1658
16592009-05-27 Rafael Avila de Espindola <espindola@google.com>
5691d22d
NC
1660
1661 * aclocal.m4: Include ../config/plugins.m4.
1662 * configure.in: Use AC_PLUGINS.
1663 * configure: Regenerate.
1664 * Makefile.in: Regenerate.
1665 * doc/Makefile.in: Regenerate.
1666
c8a1f254
NS
16672009-05-27 Nathan Sidwell <nathan@codesourcery.com>
1668
1669 * elf32-ppc.c (ppc_elf_relax_section): Work with a partial
1670 link.
1671 * bout.c (b_out_bfd_relax_section): Reject relocatable links.
1672 * elf32-m10300.c (mn10300_elf_relax_section): Likewise.
1673 * elf32-avr.c (elf32_avr_relax_section): Likewise.
1674 * elf32-frv.c (elf32_avr_relax_section): Likewise.
1675 * elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
1676 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1677 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1678 * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
1679 * reloc.c (bfd_generic_relax_section): Likewise.
1680 * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
1681 * vms.c (vms_bfd_relax_section): Likewise.
1682
68d7e96a
L
16832009-05-26 H.J. Lu <hongjiu.lu@intel.com>
1684
1685 * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.
1686
1687 * elf32-i386.c (is_indirect_symbol): Renamed to ...
1688 * elflink.c (_bfd_elf_is_ifunc_symbol): This.
1689
1690 * elf32-i386.c (allocate_dynrelocs): Updated.
1691 (elf_i386_relocate_section): Likewise.
1692 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1693 (elf64_x86_64_relocate_section): Likewise.
1694
1695 * elf64-x86-64.c (is_indirect_symbol): Removed.
1696
f12e7348
NC
16972009-05-26 Nick Clifton <nickc@redhat.com>
1698
1699 * po/id.po: Updated Indonesian translation.
1700
ce3c775b
NC
17012009-05-26 Rafael Avila de Espindola <espindola@google.com>
1702
1703 * Makefile.am: Run "make dep-am".
1704 (AM_CPPFLAGS): New.
1705 (LIBDL): New.
1706 (ALL_MACHINES): Add cpu-plugin.lo.
1707 (ALL_MACHINES_CFILES): Add cpu-plugin.c.
1708 (BFD32_BACKENDS): Add plugin.lo.
1709 (BFD32_BACKENDS_CFILES): Add plugin.c.
1710 (libbfd_la_LIBADD): Add LIBDL
1711 * archures.c (bfd_architecture): Add bfd_arch_plugin.
1712 (bfd_plugin_arch): Declare.
1713 * bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
1714 * bfd.c (bfd): Add plugin_data.
1715 * config.bfd: Handle the plugin target.
1716 * configure.in: Check for --enable-plugins.
1717 (LT_INIT): Use the dlopen option.
1718 * cpu-plugin.c: New.
1719 * plugin.c: New.
1720 * plugin.h: New.
1721 * targets.c (plugin_vec): Declare.
1722 (_bfd_target_vector): Add plugin_vec.
1723 * Makefile.in: Regenerate.
1724 * bfd-in2.h: Regenerate.
1725 * configure: Regenerate.
1726
9e097a72
AM
17272009-05-26 Alan Modra <amodra@bigpond.net.au>
1728
1729 * dep-in.sed: Don't modify .o to .lo here. Output one filename
1730 per line with all lines having continuation backslash. Prefix
1731 first line with "A", following lines with "B".
1732 * Makefile.am (DEP): Don't use dep.sed here.
1733 (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use
1734 dep.sed here on dependencies, sort and uniq.
1735 * Makefile.in: Regenerate.
1736
d5acff2f
TG
17372009-05-25 Tristan Gingold <gingold@adacore.com>
1738
1739 * makefile.vms: Add verilog.obj to object list OBJS.
1740
5c93f09b
AM
17412009-05-24 Alan Modra <amodra@bigpond.net.au>
1742
1743 * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
1744 for BFD_IN_MEMORY is cleared.
1745 (bfd_bwrite): Zero excess memory allocated.
1746
48229727
JB
17472009-05-22 Julian Brown <julian@codesourcery.com>
1748
1749 * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
1750 macros.
1751 (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
1752 (elf32_arm_stub_a8_veneer_blx): New stub sequences.
1753 (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
1754 arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
1755 (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
1756 (a8_erratum_fix, a8_erratum_reloc): New structs.
1757 (elf32_arm_link_hash_table): Add a8_erratum_fixes,
1758 num_a8_erratum_fixes, fix_cortex_a8 fields.
1759 (elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
1760 (elf32_arm_add_stub): Split into two parts, creating...
1761 (elf32_arm_create_or_find_stub_sec): New function.
1762 (elf32_arm_final_link_relocate): Add forward declaration.
1763 (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
1764 relocations, multiple relocations per stub.
1765 (find_stub_size_and_template): New (using parts of arm_size_one_stub).
1766 (arm_size_one_stub): Use find_stub_size_and_template.
1767 (a8_reloc_compare): New.
1768 (find_thumb_glue): Add forward declaration.
1769 (cortex_a8_erratum_scan): New.
1770 (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
1771 (bfd_elf32_arm_set_cortex_a8_fix): New.
1772 (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
1773 (arm_map_one_stub): Add THUMB32_TYPE support.
1774 (a8_branch_to_stub_data): New.
1775 (make_branch_to_a8_stub): New.
1776 (elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
1777 * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
1778 (bfd_elf32_arm_set_target_relocs): Add argument for controlling
1779 Cortex-A8 erratum workaround.
1780 * bfd-in2.h: Regenerate.
1781
2b3decb5
AM
17822009-05-22 Alan Modra <amodra@bigpond.net.au>
1783
1784 * Makefile.am: Run "make dep-am".
1785 * Makefile.in: Regenerate.
1786 * po/SRC-POTFILES.in: Regenerate.
1787
930e005c
AM
17882009-05-21 Alan Modra <amodra@bigpond.net.au>
1789
1790 * elflink.c (elf_link_input_bfd): Correct *pindex change in last
1791 commit.
1792
6e0b88f1
AM
17932009-05-21 Alan Modra <amodra@bigpond.net.au>
1794
1795 * elf-bfd.h (struct elf_backend_data
1796 <elf_backend_link_output_symbol_hook>): Return an int.
1797 * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop
1798 symbols on deleted .opd entries.
1799 * elflink.c (elf_link_output_sym): Return without outputting sym
1800 if output_symbol_hook returns 2.
1801 (elf_link_output_extsym): Don't assign h->indx when symbol discarded.
1802 Abort if we must not discard sym.
1803 (elf_link_input_bfd): Similarly, don't set finfo->indices for
1804 local syms.
1805 (bfd_elf_final_link): Adjust elf_link_output_sym calls.
1806 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for
1807 elf_backend_link_output_symbol_hook return type change.
1808 * elf32-arm.c (output_arch_syminfo): Likewise.
1809 (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise.
1810 (elf32_arm_output_arch_local_syms): Likewise.
1811 * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise.
1812 * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise.
1813 (bfd_score_elf_link_output_symbol_hook): Likewise.
1814 * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
1815 * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
1816 * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise.
1817 * elf32-spu.c (spu_elf_output_symbol_hook): Likewise.
1818 * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
1819 * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
1820 * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
1821 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
1822 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
1823 * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
1824 * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
1825
5ef11c02
AM
18262009-05-21 Alan Modra <amodra@bigpond.net.au>
1827
1828 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on
1829 out of range .opd symbols.
1830
ebf12fbe
DK
18312009-05-21 Dave Korn <dave.korn.cygwin@gmail.com>
1832
1833 * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
1834 fprintf_vma directly.
1835 * peXXigen.c (pe_print_edata): Likewise.
1836 (pe_print_pdata): Likewise.
1837 (_bfd_XX_print_ce_compressed_pdata): Likewise.
1838 (_bfd_XX_print_private_bfd_data_common): Likewise.
1839
c1711530
DK
18402009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
1841
1842 * cofflink.c (process_embedded_commands): Ignore "-aligncomm".
1843
22a8f80e 18442009-05-15 Andrew Stubbs <ams@codesourcery.com>
164e7efc 1845 Paul Brook <paul@codesourcery.com>
22a8f80e
PB
1846
1847 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
1848 fix discarded sections.
1849
335bd8f2
UW
18502009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1851
1852 * elf32-spu.c (mark_overlay_section): Move .init and .fini
1853 sections into the software icache.
1854
cdc83fba
UW
18552009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1856
1857 * elf32-spu.c (build_stub): Always build "compact" sofware
1858 i-cache stubs.
1859
97fc8d84
UW
18602009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1861
1862 * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2.
1863 (spu_elf_setup): Initialize it.
1864 (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache.
1865 Update to new-sytle cache manager data structures.
1866 (spu_elf_build_stubs): Generate new-style cache manager data
1867 structures and symbols.
1868 (spu_elf_auto_overlay): Update size computation.
1869
452de53c
UW
18702009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1871
1872 * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY
1873 segments first amongst the program headers.
1874
d342a8b1
UW
18752009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1876
1877 * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index
1878 into addresses for relocation types that look at high bits. Remove
1879 special handling of relocation overflow warnings.
1880
cc210763
UW
18812009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1882
1883 * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the
1884 control flow graph between fragments of a function.
1885
c1ea05bb
UW
18862009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1887
1888 * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
1889 generate only a 16-byte .toe section.
1890 (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
1891
bbb0fc04
AM
18922009-05-14 Alan Modra <amodra@bigpond.net.au>
1893
1894 * elf32-spu.c (spu_elf_size_stubs): Split out section placement to..
1895 (spu_elf_place_overlay_data): ..here. New function.
1896 * elf32-spu.h (spu_elf_place_overlay_data): Declare.
1897
6e6718a3
AJ
18982009-05-13 Andrew Jenner <andrew@codesourcery.com>
1899
1900 * elf32-arm.c: Move sysdep.h to start of file.
1901
77ae44b0
AM
19022009-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1903
1904 * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as
1905 start of overlays.
1906 (spu_elf_build_stubs): Don't define __icache_tagbase. Define
1907 __icache_tag_array and __icache_tag_array_size.
1908
51408ec2
AM
19092009-05-11 Masaki Muranaka <monaka@monami-software.com>
1910
1911 * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary
1912 ATTRIBUTE_UNUSED.
1913 (bfinfdpic_link_omit_section_dynsym): Likewise.
1914 (elf32_bfinfdpic_finish_dynamic_sections): Likewise.
1915
2468f9c9
PB
19162009-05-05 Paul Brook <paul@codesourcery.com>
1917
1918 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
1919 * bfd-in2.h: Regenerate.
1920 * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
1921 (_arm_elf_section_data): Add text and exidx fields.
1922 (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
1923 insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
1924 copy_exidx_entry): New functions.
1925 (elf32_arm_write_section): Fixup .ARM.exidx contents.
1926
738a79f6
CL
19272009-05-05 Christophe lyon <christophe.lyon@st.com>
1928
1929 * elf32-arm.c (DEF_STUBS): New helper define.
1930 (DEF_STUB): Likewise.
1931 (stub_def): New type.
1932 (stub_definitions): New array, containing stub template pointers
1933 and sizes.
1934 (arm_size_one_stub): Make use of stub_definitions.
1935
09e2aba4
DK
19362009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
1937
1938 * elflink.c (find_version_for_sym): Remove from here, ...
1939 * linker.c (bfd_find_version_for_sym): ... rename, replace
1940 here, make public and update all callers.
1941 * bfd-in2.h: Regenerate.
1942
d8045f23
NC
19432009-04-30 Nick Clifton <nickc@redhat.com>
1944
1945 * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
1946 section pointer.
1947 (struct elf_obj_data): Add has_ifunc_symbols boolean.
1948 * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
1949 into a STT_GNU_IFUNC symbol type.
1950 (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
1951 type.
1952 (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
1953 the binary contains ifunc symbols.
1954 * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
1955 symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
1956 * elf32-i386.c (is_indirect_function): New function.
1957 (elf_i386_check_relocs): Create an ifunc output section.
1958 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
1959 section if necessary.
1960 (elf_i386_relocate_section): Emit a reloc against an ifunc symbol
1961 if necessary.
1962 (elf_i386_add_symbol_hook): New function. Set the
1963 has_ifunc_symbols field of the elf_obj_data structure if an ifunc
1964 symbol is encountered.
1965 (elf_backend_post_process_headers): Define.
1966 (elf_backend_add_symbol_hook): Define.
1967 (elf_i386_post_process_headers): Rename to
1968 elf_i388_fbsd_post_process_headers.
1969 * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
1970 (is_indirect_function): New function.
1971 (elf64_x86_64_check_relocs): Create an ifunc output section.
1972 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
1973 section if necessary.
1974 (elf64_x86_64_relocate_section): Emit a reloc against an ifunc
1975 symbol if necessary.
1976 (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
1977 elf_obj_data structure if an ifunc symbol is encountered.
1978 (elf_backend_post_process_headers): Define.
1979 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
1980 if we have ifunc symbols to handle.
1981 (get_ifunc_reloc_section_name): New function. Computes the name
1982 for an ifunc section.
1983 (_bfd_elf_make_ifunc_reloc_section): New function. Creates a
1984 section to hold ifunc relocs.
1985 * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
1986 (bfd_print_symbol_vandf): Handle ifunc symbols.
1987 (bfd_decode_symclass): Likewise.
1988 * bfd-in2.h: Regenerate.
1989
96c23d59
JM
19902009-04-30 Joseph Myers <joseph@codesourcery.com>
1991
1992 * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
1993 MOVW and MOVT relocations in a shared library link.
1994
c067354b
NC
19952009-04-27 Anthony Green <green@moxielogic.com>
1996
1997 * verilog.c: New file.
1998 * Makefile.am (BFD32_LIBS): Add verilog.c.
1999 (BFD32_LIBS_CFILES): Add verilog.c.
2000 (verilog.lo): New build rule.
2001 * Makefile.in: Rebuilt.
2002 * targets.c: Add verilog support.
2003 * bfd.c (tdata union): Add Verilog private data field.
2004 * bfd-in2.h: Regenerate.
2005
325c681d
L
20062009-04-27 H.J. Lu <hongjiu.lu@intel.com>
2007
2008 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
2009 copy pe_opthdr.
2010
ba775898
DK
20112009-04-23 Matthias Klose <doko@ubuntu.com>
2012
2e28a5fc 2013 * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.
ba775898 2014
155d87d7
CL
20152009-04-22 Christophe Lyon <christophe.lyon@st.com>
2016
2017 PR9743
2018 * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
2019 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
2020 (elf32_arm_size_stubs): Likewise.
2021 (record_thumb_to_arm_glue): Deleted unused function.
2022 (bfd_elf32_arm_process_before_allocation): No longer handle
2023 R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
2024 (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
2025 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
2026
3e6b1042
DJ
20272009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
2028
2029 * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
2030 (elf32_arm_write_section): Declare early.
2031 (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
2032 (arm_allocate_glue_section_space): Exclude empty sections.
2033 (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
2034 (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
2035 BFD.
2036 (elf32_arm_output_glue_section, elf32_arm_final_link): New.
2037 (elf32_arm_merge_eabi_attributes): Skip the stub BFD.
2038 (elf32_arm_size_dynamic_sections): Allocate interworking
2039 sections here.
2040 (bfd_elf32_bfd_final_link): Define.
2041
4f360784
L
20422009-04-21 H.J. Lu <hongjiu.lu@intel.com>
2043
2044 * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
154a1ee5 2045
4f360784
L
2046 * coffcode.h (coff_compute_section_file_positions): Clear
2047 D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
2048
2049 * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
2050 force_minimum_alignment.
2051
2052 * libcoff.h: Regenerated.
2053
2054 * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
2055 (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.
2056
2057 * peicode.h (pe_mkobject): Don't set force_minimum_alignment
2058 nor target_subsystem.
2059
2060 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
2061 force_minimum_alignment nor target_subsystem.
2062
e48570bb
DK
20632009-04-21 Kai Tietz <kai.tietz@onevision.com>
2064
2065 * coff-x86_64.c (PEI_HEADERS): Protect includes.
2066 (bfd_pe_print_pdata): Remove #ifdef PE variation.
2067 * pei-x86_64.c (PEI_HEADERS): Define to prevent double
2068 include in coff-x86_64.c of headers.
2069 (PDATA_ROW_SIZE): New define.
2070 (pex_regs[]): New static array.
2071 (pex64_get_runtime_function): New static function.
2072 (pex64_get_unwind_info): Likewise.
2073 (pex64_get_scope_entry): Likewise.
2074 (pex64_xdata_print_uwd_codes): Likewise.
2075 (pex64_get_section_by_rva): Likewise.
2076 (pex64_dump_xdata): Likewise.
2077 (pex64_bfd_print_pdata): Likewise.
2078 (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
2079 * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
2080 * libpei.h (_bfd_pex64_print_pdata): Removed declaration.
2081
383c383f 20822009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com>
4f360784
L
2083 Alan Modra <amodra@bigpond.net.au>
2084 Dave Korn <dave.korn.cygwin@gmail.com>
383c383f
AM
2085
2086 * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
2087 long names and non-NUL-terminated strings.
2088
b6b450f1
L
20892009-04-17 H.J. Lu <hongjiu.lu@intel.com>
2090
2091 * bfd-in2.h: Regenerated.
2092
d9118602
L
20932009-04-17 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
2096 IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
2097
92dd4511
L
20982009-04-17 H.J. Lu <hongjiu.lu@intel.com>
2099
2100 PR binutils/10074
2101 * coffcode.h (bfd_pei_p): New.
2102
2103 * config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
2104 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
2105 bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
2106 bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
2107 bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
2108 i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
2109
2110 * configure.in: Remove bfd_efi_bsdrv_ia32_vec,
2111 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
2112 bfd_efi_rtdrv_x86_64_vec,
2113 bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
2114 bfd_efi_ia64_vec with bfd_pei_ia64_vec.
2115 * targets.c: Likewise.
2116
2117 * configure: Regenerated.
2118 * libcoff.h: Likewise.
2119 * Makefile.in: Likewise.
2120
2121 * efi-app-ia32.c: Removed.
2122 * efi-app-x86_64.c: Likewise.
2123 * efi-bsdrv-ia32.c: Likewise.
2124 * efi-bsdrv-ia64.c: Likewise.
2125 * efi-bsdrv-x86_64.c: Likewise.
2126 * efi-rtdrv-ia32.c: Likewise.
2127 * efi-rtdrv-ia64.c: Likewise.
2128 * efi-rtdrv-x86_64.c: Likewise.
2129 * efi-rtdrv-ia32.c: Likewise.
2130
2131 * efi-app-ia64.c: Moved to ...
2132 * pei-ia64.c: This.
2133 (TARGET_SYM): Set to bfd_pei_ia64_vec.
2134 (TARGET_NAME): Set to pei-ia64.
2135
2136 * libpei.h (bfd_target_pei_p): Removed.
2137 (bfd_target_pei_arch): Likewise.
2138 (bfd_target_efi_app_p): Likewise.
2139 (bfd_target_efi_app_arch): Likewise.
2140 (bfd_target_efi_bsdrv_p): Likewise.
2141 (bfd_target_efi_bsdrv_arch): Likewise.
2142 (bfd_target_efi_rtdrv_p): Likewise.
2143 (bfd_target_efi_rtdrv_arch): Likewise.
2144 (bfd_pe_executable_p): Likewise.
2145
2146 * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
2147 efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
2148 (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
2149 and efi-rtdrv-ia32.c.
2150 (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
2151 efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
2152 efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
2153 (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
2154 efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
2155 efi-rtdrv-x86_64.c. Add pei-ia64.c.
2156 (efi-app-ia64.lo): Removed.
2157 (efi-bsdrv-ia32.lo): Likewise.
2158 (efi-rtdrv-ia32.lo): Likewise.
2159 (efi-app-ia64.lo): Likewise.
2160 (efi-bsdrv-ia64.lo): Likewise.
2161 (efi-rtdrv-ia64.lo): Likewise.
2162 (efi-app-x86_64.lo): Likewise.
2163 (efi-bsdrv-x86_64.lo): Likewise.
2164 (efi-rtdrv-x86_64.lo): Likewise.
2165 (pei-ia64.lo): New.
2166
2167 * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
2168 with bfd_pei_p.
2169 (arch_type): Removed.
2170 (pe_arch): Likewise.
2171 (pe_bfd_object_p): Just return coff_object_p.
2172
2173 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
2174 bfd_pe_executable_p with bfd_pei_p.
2175
69c5861e
CL
21762009-04-17 Christophe Lyon <christophe.lyon@st.com>
2177
2178 * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
2179 PLT entries to an undefined symbol when generating a shared
2180 library.
2181
e9cd0660
NC
21822009-04-17 Nick Clifton <nickc@redhat.com>
2183
2184 PR 9909
2185 * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
2186
3023e3f6
RS
21872009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
2188
2189 * aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
2190 * aout-target.h (MY_bfd_define_common_symbol): Likewise.
2191 * aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
2192 * binary.c (binary_bfd_define_common_symbol): Likewise.
2193 * bout.c (b_out_bfd_define_common_symbol): Likewise.
2194 * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
2195 * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
2196 * coffcode.h (coff_bfd_define_common_symbol): Likewise.
2197 * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
2198 * i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
2199 * i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
2200 * ieee.c (ieee_bfd_define_common_symbol): Likewise.
2201 * ihex.c (ihex_bfd_define_common_symbol): Likewise.
2202 * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
2203 * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
2204 * mmo.c (mmo_bfd_define_common_symbol): Likewise.
2205 * nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
2206 * oasys.c (oasys_bfd_define_common_symbol): Likewise.
2207 * pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
2208 * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
2209 * som.c (som_bfd_define_common_symbol): Likewise.
2210 * srec.c (srec_bfd_define_common_symbol): Likewise.
2211 * tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
2212 * versados.c (versados_bfd_define_common_symbol): Likewise.
2213 * vms.c (vms_bfd_define_common_symbol): Likewise.
2214 * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
2215 * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
2216 * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
2217 (pmac_xcoff_vec): Likewise.
2218 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2219 (aix5coff64_vec): Likewise.
2220 * linker.c (bfd_generic_define_common_symbol): New function.
2221 * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
2222 (_bfd_define_common_symbol): New field.
2223 * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
2224 * xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
2225 (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
2226 symbols here.
2227 * bfd-in2.h: Regenerate.
2228 * libbfd.h: Likewise.
2229 * libcoff.h: Likewise.
2230
20135e4c
NC
22312009-04-15 Anthony Green <green@moxielogic.com>
2232
2233 * targets.c: Add moxie support.
2234 * Makefile.am: Ditto.
2235 * Makefile.in: Rebuilt.
2236 * cpu-moxie.c, elf32-moxie.c: New files.
2237 * archures.c: Add moxie support.
2238 * configure.in: Add moxie support.
2239 * configure: Rebuilt.
2240 * config.bfd, archures.c: Add moxie support.
2241 * bfd-in2.h: Rebuilt.
2242
82b5c97a
CL
22432009-04-15 Christophe Lyon <christophe.lyon@st.com>
2244
2245 * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
2246 branch to an undef weak symbol into a jump to next instruction if
2247 a PLT entry will be created.
2248
0408dee6
DK
22492009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
2250
2251 * coffgen.c (make_a_section_from_file): Set the backend long
2252 section names enable if long section names found on input.
2253 * coffcode.h: Extend long section names documentation to match.
2254
a0c402a5
L
22552009-04-08 H.J. Lu <hongjiu.lu@intel.com>
2256
2257 * elflink.c (elf_link_add_object_symbols): Warn alternate ELF
2258 machine code.
2259
4d28413b
DD
22602009-04-07 DJ Delorie <dj@redhat.com>
2261
2262 * archures.c: Add bfd_mach_mep_c5.
2263 * bfd-in2.h: Likewise.
2264 * cpu-mep.c: Add bfd_c5_arch.
2265 * elf32-mep.c: Support it.
2266
bb6198d2
L
22672009-04-07 H.J. Lu <hongjiu.lu@intel.com>
2268
2269 * elflink.c (_bfd_elf_section_already_linked): Add `\n' for
2270 info->callbacks->einfo.
2271 * linker.c (_bfd_generic_section_already_linked): Likewise.
2272
bcb012d3
DD
22732009-04-06 DJ Delorie <dj@redhat.com>
2274
2275 * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
2276
db1fe6e9
L
22772009-04-06 H.J. Lu <hongjiu.lu@intel.com>
2278
2279 * coff-x86_64.c (bfd_pe_print_pdata): Defined to
2280 _bfd_pex64_print_pdata only if PE is defined.
2281
2282 * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
2283 (_bfd_pex64_print_pdata): This.
2284
2285 * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
2286 (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64
2287 is defined.
2288
c7c7219d
KT
22892009-04-05 Kai Tietz <kai.tietz@onevision.com>
2290
2291 * coff-x86_64.c (bfd_pe_print_pdata): Define as
2292 _bfd_pep_print_x64_pdata.
2293 * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
2294 * peXXigen.c (_bfd_pep_print_x64_pdata): New.
2295
3df502ae
SA
22962009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
2297
154a1ee5 2298 * elf32-xtensa.c (relax_property_section): Always set r_offset
3df502ae
SA
2299 to zero.
2300
d3626fb0
CL
23012009-04-02 Christophe Lyon <christophe.lyon@st.com>
2302
2303 * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
2304 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
2305 branch stubs.
2306 (elf32_arm_stub_type): New enum values for the two new stubs.
2307 (arm_type_of_stub): Make use of the two new stubs.
2308 (arm_size_one_stub): Handle the two new stubs.
2309
fe723c87
MT
23102009-04-01 Matt Thomas <matt@netbsd.org>
2311
2312 * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
2313 hidden symbols into the GOT or PLT.GOT.
154a1ee5 2314 (elf_vax_relocate_section): Do not emit a PCREL reloc
fe723c87
MT
2315 into a shared object if it is against a hidden symbol.
2316
ee698300
RS
23172009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2318
2319 * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
2320 and know_contains_shared_object_p.
2321 (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
2322 Cache the result in the archive_info table.
2323 (xcoff_auto_export_p): Add an "info" parameter and update the
2324 call to xcoff_archive_contains_shared_object_p.
2325 (xcoff_mark_auto_exports): Update accordingly.
2326 (xcoff_post_gc_symbol): Likewise.
2327
54e2dbe0
RS
23282009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2329
2330 * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
2331 rather than C_EXT.
2332
2e470849
RS
23332009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2334
2335 * coff-rs6000.c (member_layout): New structure.
2336 (archive_iterator): Likewise.
2337 (member_layout_init): New function.
2338 (archive_iterator_begin): Likewise.
2339 (archive_iterator_next): Likewise.
2340 (xcoff_write_armap_old): Use the new iterator functions.
2341 (do_shared_object_padding): Delete.
2342 (xcoff_write_armap_big): Use the new iterator functions. Simplify
2343 handling of arch_info.
2344 (xcoff_write_archive_contents_old): Allocate arelt_data in the
2345 first loop rather than the second. Allocate a member header if
2346 there isn't one, then work out the stat information and length
2347 in the first loop too. Use the new iterators for the second loop.
2348 (xcoff_write_archive_contents_big): Likewise.
2349
24c611d1
RS
23502009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2351
2352 * bfd-in.h (bfd_xcoff_split_import_path): Declare.
2353 (bfd_xcoff_set_archive_import_path): Likewise.
2354 * bfd-in2.h: Regenerate.
2355 * xcofflink.c: Include libiberty.h.
2356 (xcoff_archive_info): New structure.
2357 (xcoff_archive_info_hash): New function.
2358 (xcoff_archive_info_eq): Likewise.
2359 (xcoff_get_archive_info): Likewise.
2360 (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
2361 (bfd_xcoff_split_import_path): New function.
2362 (bfd_xcoff_set_archive_import_path): Likewise.
2363 (xcoff_set_import_path): Move earlier in file.
2364 (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
2365 object to the the directory part of the bfd's filename. Get the
2366 import path and filename of an archive object from the archive's
2367 xcoff_tdata, initializing it if necessary. Update use of
2368 import_file_id.
2369 (bfd_link_input_bfd): Update use of import_file_id.
2370 (xcoff_write_global_symbol): Likewise.
2371
d286971a
RS
23722009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2373
2374 * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
2375
23762009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2377
2378 * xcofflink.c (xcoff_link_create_extra_sections): Don't create
2379 a .loader section for relocatable links.
2380 (xcoff_need_ldrel_p): New function.
2381 (xcoff_mark): Use it.
2382 (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
2383 a loader section.
2384 (xcoff_build_ldsym): New function, split out from...
2385 (xcoff_build_ldsyms): ...here. Rename to...
2386 (xcoff_post_gc_symbol): ...this. Only export symbols, and only
2387 call xcoff_build_ldsym, if there's a loader section.
2388 (xcoff_build_loader_section): New function, extracted verbatim from...
2389 (bfd_xcoff_size_dynamic_sections): ...here. Only call it if
2390 there's a loader section. Only add an __rtinit loader symbol
2391 if there's a loader section. Update after above name change.
2392 (xcoff_symbol_section, xcoff_create_ldrel): New functions.
2393 (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
2394 and xcoff_create_ldrel.
2395 (xcoff_write_global_symbol): Use xcoff_create_ldrel.
2396 (xcoff_reloc_link_order): Likewise, but only call it if there's
2397 a loader section. Use xcoff_symbol_section.
2398 (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
2399 if there's a loader section.
2400
8707bb87
RS
24012009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
2402
2403 * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
2404
e780aef2
CL
24052009-04-01 Christophe Lyon <christophe.lyon@st.com>
2406
2407 * elf32-arm.c (group_sections): Rewrite loops for better
2408 readability.
2409
c301e700
DD
24102009-03-30 DJ Delorie <dj@redhat.com>
2411
2412 * elflink.c (elf_link_input_bfd): Don't try to resolve complex
2413 relocs when doing a relocatable link.
2414
3895f852
MM
24152009-03-28 Mark Mitchell <mark@codesourcery.com>
2416
2417 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
2418 "ERROR:", in error messages.
2419 * cpu-arm.c (bfd_arm_merge_machines): Likewise.
2420 * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
2421 * elf32-arm.c (tag_cpu_arch_combine): Likewise.
2422 (elf32_arm_merge_eabi_attributes): Likewise.
2423 (elf32_arm_merge_private_bfd_data): Likewise.
2424
ea882e87
NC
24252009-03-27 Nick Clifton <nickc@redhat.com>
2426
2427 * section.c (bfd_get_section_contents): Detect and handle the case
2428 where a section has the SEC_IN_MEMORY flag set but no actual
2429 contents allocated.
2430
9433b9b1
AM
24312009-03-26 Alan Modra <amodra@bigpond.net.au>
2432
2433 PR 6494
2434 * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
2435 p_filesz and p_memsz are equal. Use p_memsz as the segment size.
2436 (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
2437 if we don't find matching PT_LOAD when copying.
2438
dc1aa734
SR
24392009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
2440
2441 * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
2442 the reloc descriptions.
2443
34d3d6b9
HPN
24442009-03-25 Hans-Peter Nilsson <hp@axis.com>
2445
2446 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
2447 <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
2448 <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
2449
34274ccc
L
24502009-03-24 H.J. Lu <hongjiu.lu@intel.com>
2451
2452 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
2453 (bfd_i386_arch_intel_syntax): Likewise.
2454 (i8086_arch): Likewise.
2455 (bfd_x86_64_arch): Likewise.
2456
019c5a2e
HPN
24572009-03-24 Hans-Peter Nilsson <hp@axis.com>
2458
6718f446
HPN
2459 * elf32-cris.c (cris_elf_relocate_section): <case
2460 R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
2461 symbols for non-allocated sections. Don't check whether to
2462 generate R_CRIS_DTPMOD for non-allocated sections.
2463 (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
2464 handle relocation GC:ing if applied to non-allocated section.
2465 (cris_elf_check_relocs): Similar.
2466
019c5a2e
HPN
2467 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
2468 <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
2469 when emitting a known TP offset in the GOT.
2470
ffcfec52
AM
24712009-03-23 Alan Modra <amodra@bigpond.net.au>
2472
2473 * elf64-ppc.c (synthetic_opd): Delete.
2474 (compare_symbols): Look for .opd name rather than section match.
2475 (ppc64_elf_get_synthetic_symtab): Likewise.
2476
c6dd29ce
AM
24772009-03-21 Alan Modra <amodra@bigpond.net.au>
2478
2479 * elf32-ppc.c (is_pic_glink_stub): Delete.
2480 (is_nonpic_glink_stub): New function.
2481 (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
2482 than first pic one.
2483 (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
2484
8c21ca21
AK
24852009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2486 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2487
2488 * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
4f360784 2489 macros for visibilty and locality checks.
8c21ca21
AK
2490 (elf_s390_adjust_dynamic_symbol): Likewise.
2491 (allocate_dynrelocs): Likewise.
2492 (elf_s390_relocate_section): Likewise.
2493 (elf_s390_finish_dynamic_symbol): Likewise.
2494 * elf64-s390.c (elf_s390_check_relocs): Likewise.
2495 (elf_s390_adjust_dynamic_symbol): Likewise.
2496 (allocate_dynrelocs): Likewise.
2497 (elf_s390_relocate_section): Likewise.
2498 (elf_s390_finish_dynamic_symbol): Likewise.
2499
156621f3
KT
25002009-03-19 Kai Tietz <kai.tietz@onevision.com>
2501
2502 * bfd-in2.h: Regenerated.
2503 * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
2504 for debugging sections and map memory read/write dependent on
2505 SEC_COFF_NOREAD.
2506 (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
2507 without memory read flags set.
2508 * section.c: Add SEC_COFF_NOREAD to section flags.
2509
d1fa68d3
AS
25102009-03-19 Andreas Schwab <schwab@linux-m68k.org>
2511
2512 * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
2513 for format string.
2514
ad2adbc8
AM
25152009-03-19 Alan Modra <amodra@bigpond.net.au>
2516
2517 * elf32-spu.c (spu_elf_find_overlays): Separate error return from
2518 "no overlays" return. If there are overlays, create overlay
2519 manager entry symbols here, so that..
2520 (spu_elf_build_stubs): ..we don't need to set them up here.
2521 Simplify entry symbol tests.
2522 * elf32-spu.h (spu_elf_find_overlays): Update prototype.
2523
67cc5033
MK
25242009-03-18 Mark Kettenis <kettenis@gnu.org>
2525
d1fa68d3 2526 * elf.c (elfcore_grok_openbsd_procinfo)
67cc5033
MK
2527 (elfcore_grok_openbsd_note): New functions.
2528 (elf_parse_notes): Handle notes from OpenBSD ELF core files.
2529
8d25cc3d
AM
25302009-03-18 Alan Modra <amodra@bigpond.net.au>
2531
3889c459 2532 * vms-hdr.c: Don't include alloca.h.
8d25cc3d
AM
2533 * elf32-m68hc1x.c: Include alloca-conf.h.
2534 * xsym.c: Likewise.
2535 * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
2536 * som.c: Likewise.
2537 * Makefile.am: Run "make dep-am".
2538 * Makefile.in: Regenerate.
2539
a89e6478
DJ
25402009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2541
2542 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
2543
a7e11ee1
AM
25442009-03-17 Alan Modra <amodra@bigpond.net.au>
2545
2546 * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
2547 Add compact_stub.
2548 (emum _ovly_flavour): Delete ovly_compact, ovly_none.
2549 * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
2550 ovly_return fields with ovly_entry[2]. Adjust all users.
2551 (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
2552 when soft-icache.
2553 (spu_elf_build_stubs): Likewise.
2554 (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
2555 ovly_flavour changes. Update all callers.
2556 (ovl_stub_size_log2): New function.
2557 (build_stub): Handle compact icache stubs. Use different manager
2558 entry point for stubs in non-icache area.
2559 (spu_elf_size_stubs): Don't allocate space for indirect branch
2560 descriptors.
2561 (spu_elf_build_stubs): And don't built them.
2562
607a83c9
AS
25632009-03-16 Andrew Stubbs <ams@codesourcery.com>
2564
2565 * dwarf2.c (read_section): Always use rawsize, if available.
2566
588f62fc
AM
25672009-03-16 Alan Modra <amodra@bigpond.net.au>
2568
2569 * simple.c (bfd_simple_get_relocated_section_contents): Use larger
2570 of rawsize and size for buffer.
2571
a14c90c1
UW
25722009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2573
2574 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
2575 parameter just because fixed sections fit into local store.
2576 (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
2577 generating overlays if fixed sections plus reserved stack
2578 and heap space fit into local store.
2579
30c665df
AM
25802009-03-15 Alan Modra <amodra@bigpond.net.au>
2581
2582 * elf32-spu.c (build_stub): Correct icache set_id.
2583 (spu_elf_relocate_section): Likewise.
2584
f95942a3
RS
25852009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2586
2587 * xcofflink.c (xcoff_link_check_archive_element): Only free the
2588 symbol table if it was created by the current call.
2589
670562e9
RS
25902009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2591
2592 * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
2593 class XMC_DS rather than XMC_UA.
2594
b64232cc
RS
25952009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2596
2597 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
2598 bfd_boolean export_defineds parameter with an unsigned int
2599 auto_export_flags parameter.
2600 * bfd-in2.h: Regenerate.
2601 * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
2602 split out from xcoff_build_ldsyms.
2603 (xcoff_covered_by_expall_p): New function.
2604 (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
2605 but with extra code to handle -bexpfull and -bexpall.
2606 (xcoff_mark_auto_exports): New function.
2607 (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
2608 a function should be automatically exported.
2609 (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
2610 parameter with an auto_export_flags parameter. Update ldinfo
2611 accordingly. Use xcoff_mark_auto_exports to mark all automatically-
2612 exported symbols.
2613
7d504122
RS
26142009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2615
2616 * xcofflink.c (xcoff_mark_symbol_by_name): New function.
2617 (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
2618 init and fini functions. Do garbage collection for objects
2619 without an entry point too.
2620
8602d4fe
RS
26212009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2622
2623 * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
2624 check whether a symbol has csect information.
2625 (coff_print_aux): Likewise.
2626 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
2627 information for C_AIX_WEAKEXT too.
2628 (_bfd_xcoff_swap_aux_out): Likewise.
2629 (xcoff_reloc_type_br): Handle defweak symbols too.
2630 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
2631 information for C_AIX_WEAKEXT too.
2632 (_bfd_xcoff64_swap_aux_out): Likewise.
2633 (xcoff64_reloc_type_br): Handle defweak symbols too.
2634 * coffgen.c (coff_print_symbol): Handle auxillary function
2635 information for C_AIX_WEAKEXT too.
2636 * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
2637 instead of BSF_GLOBAL if the L_WEAK flag is set.
2638 (xcoff_dynamic_definition_p): New function.
2639 (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
2640 defines h. Don't change h if ldsym isn't the definition. Otherwise,
2641 always take the symbol class from the ldsym. Use weak bfd symbol
2642 types for weak ldsyms.
2643 (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
2644 Fix the check for whether a definition is from a shared object.
2645 Allow redefinitions of weak symbols.
2646 (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
2647 (xcoff_keep_symbol_p): Likewise.
2648 (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
2649 (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
2650 Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
2651 but mark them as L_WEAK.
2652 (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
2653 instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
2654
5b49f6dc
RS
26552009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2656
2657 * xcofflink.c (xcoff_mark): When walking the relocations,
2658 only mark the target symbol or the target section, not both.
2659 (xcoff_final_definition_p): New function.
2660 (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
2661 symbol is a valid definition of the associated output symbol.
2662 Use XCOFF_ALLOCATED to stop the same hash table entry having
2663 two output symbols.
2664 (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
2665 keeping a symbol.
2666 (xcoff_link_input_bfd): Use xcoff_final_definition_p.
2667
c4037431
RS
26682009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2669
2670 * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
2671 symbols as XMC_XO.
2672
3df13c4a
RS
26732009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2674
2675 * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
2676 * libcoff.h: Regenerate.
2677 * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
2678 line-number counts in the bfd's lineno_counts field.
2679 Don't keep per-csect line-number counts.
2680 (xcoff_sweep): Don't update per-csect line-number counts.
2681 (bfd_xcoff_size_dynamic_sections): Count the number of line-number
2682 entries in each output section.
2683 (xcoff_link_input_bfd): Get the number of line numbers from
2684 the bfd's lineno_counts field, rather than recalculating it
2685 from scratch. Fix the range check when updating C_BINCL and
2686 C_EINCL symbols.
2687 (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
2688 here. Don't expect csects to have line-number counts.
2689
e450936a
RS
26902009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2691
2692 * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
2693 * libcoff.h: Regenerate.
2694 * xcofflink.c (xcoff_keep_symbol_p): New function, using the
2695 "skip" logic from xcoff_link_input_bfd.
2696 (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
2697 objects in a dynamic link, rather than checking whether csectpp
2698 is null. Always allocate debug_index for other objects,
2699 and always go through the loop. Update the type of debug_index
2700 after the change above. Read the auxillary csect information
2701 and use xcoff_keep_symbol_p to decide whether a symbol should
2702 be kept. Set its debug_index to -2 if not.
2703 (xcoff_link_input_bfd): Update the type of debug_index after
2704 the change above and always expect it to be nonnull. Use it to
2705 test whether a symbol should be stripped, rather than making the
2706 decision here. Postpone all symbol creation to the second pass.
2707
47dfb2ca
RS
27082009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2709
2710 * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
2711 creating a descriptor.
2712 (xcoff_sweep): Don't mark toc_section unless it's needed.
2713 (bfd_xcoff_size_dynamic_sections): Skip the toc_section
2714 when marking every bfd.
2715 (xcoff_link_input_bfd): Skip all TOC anchors.
2716 (xcoff_toc_section_p, xcoff_find_tc0): New functions.
2717 (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
2718 to -1; call xcoff_find_tc0 instead.
2719
4cc02a02
RS
27202009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2721
2722 * libcoff-in.h (xcoff_section_tdata): Update commentary.
2723 * libcoff.h: Regenerate.
2724 * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
2725 symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
2726 the previous symbol's csect. Treat last_symndx as an inclusive value
2727 and simplify its handling.
2728 (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
2729 symbols with the right csect. Don't mark rsec when processing
d1fa68d3 2730 relocations against undefined or absolute sections.
4cc02a02
RS
2731 (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
2732 of bfd_und_section_ptr.
2733 (xcoff_link_input_bfd): Likewise.
2734
858ef0ce
RS
27352009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2736
2737 * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
2738 against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
2739 flag is set. Assert that all undefined symbols are either
2740 imported or defined by a dynamic object.
2741 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
2742 * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
2743 handling to all relocations. Only set XCOFF_CALLED for function
2744 symbols.
2745 (xcoff_find_function): New function, split out from...
2746 (bfd_xcoff_export_symbol) ...here.
2747 (xcoff_set_import_path): New function, split out from...
2748 (bfd_xcoff_import_symbol): ...here. Remove assertion for old
2749 meaning of XCOFF_CALLED.
2750 (xcoff_mark_symbol): If we mark an undefined and unimported
2751 symbol, find some way of defining it. If the symbol is a function
2752 descriptor, fill in its definition automatically. If the symbol
2753 is a function, mark its descriptor and allocate room for global
2754 linkage code. Otherwise mark the symbol as implicitly imported.
2755 Move the code for creating function descriptors from...
d1fa68d3 2756 (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
858ef0ce
RS
2757 check for symbols that were implicitly defined.
2758 (xcoff_mark): Don't count any dynamic relocations against
2759 function symbols.
2760 (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
2761 in the xcoff link info.
2762 (xcoff_link_input_bfd): Remove handling of undefined and
2763 unexported symbols.
2764
12b2cce9
RS
27652009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2766
2767 * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
2768 if the target is absolute. Fix comment typo.
2769 (xcoff_ppc_relocate_section): Remove FIXME.
2770 * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
2771 if the target is absolute.
2772
0e3212ad
RS
27732009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2774
2775 * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
2776 R_POS and R_NEG relocations against absolute symbols to the
2777 .loader section.
2778
d19d97e9
RS
27792009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2780
2781 * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
2782 to 2 for bfd_mach_ppc_620.
2783
e5231592
RS
27842009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2785
2786 * config.bfd: Treat AIX 6+ in the same way as AIX 5.
2787 * configure.in: Likewise.
2788 * configure: Regenerate.
2789
3516e984
L
27902009-03-13 H.J. Lu <hongjiu.lu@intel.com>
2791
2792 PR binutils/9945
2793 * elf.c (assign_section_numbers): Generate symbol table if there
2794 is any relocation in output.
2795 (_bfd_elf_compute_section_file_positions): Likewise.
2796
ce98a316
NC
27972009-03-13 Nick Clifton <nickc@redhat.com>
2798
2799 PR 9934
2800 * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
2801 * elflink.c (elf_link_read_relocs_from_section): Use
2802 NUM_SHDR_ENTRIES. Gracefully handle the case where there are
2803 relocs but no symbol table.
2804 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
2805
c4fb387b
L
28062009-03-12 H.J. Lu <hongjiu.lu@intel.com>
2807
2808 PR ld/9938
2809 * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
2810 to check ___tls_get_addr.
2811
2812 * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
2813 strncmp to check __tls_get_addr.
2814
53638231
AS
28152009-03-12 Andrew Stubbs <ams@codesourcery.com>
2816
2817 * dwarf2.c (read_section): Always check the offset, even when the
2818 section has been read before.
2819
09e8c3bf
L
28202009-03-11 H.J. Lu <hongjiu.lu@intel.com>
2821
2822 * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
2823 comments.
2824
36e4dce6
CD
28252009-03-11 Chris Demetriou <cgd@google.com>
2826
2827 * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
2828 * bfd-in2.h: Regenerate.
2829 * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
2830 flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
2831 mode.
2832 (bsd_write_armap): Likewise.
2833 (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
2834 flag is set, do nothing.
2835 (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
2836 for timestamp.
2837
9b175a76
UW
28382009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2839
2840 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
2841 used to update stack pointer.
2842
f501de17
DA
28432009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2844
2845 PR binutils/9921
2846 * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
2847 for unknown symbols in absolute section.
2848
d11fd249
NC
28492009-03-06 Nick Clifton <nickc@redhat.com>
2850
2851 * po/es.po: Updated Spanish translation.
2852
8cd931b7
CL
28532009-03-05 Christophe Lyon <christophe.lyon@st.com>
2854
2855 * elf32-arm.c (group_sections): Take next section size into
2856 account before accepting to group it.
2857
5fa9e92f
CL
28582009-03-05 Christophe Lyon <christophe.lyon@st.com>
2859
2860 * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
2861 PLT entries.
2862 (elf32_arm_final_link_relocate): Likewise.
2863
b92997d6
AM
28642009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
2865
2866 PR 9923
2867 * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
2868
727fc41e
AM
28692009-03-04 Alan Modra <amodra@bigpond.net.au>
2870
2871 * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
2872 * section.c (struct bfd_section): Add has_tls_get_addr_call.
2873 (BFD_FAKE_SECTION): Init new flag.
2874 * ecoff.c (bfd_debug_section): Likewise.
2875 * bfd-in2.h: Regenerate.
2876 * libbfd.h: Regenerate.
2877 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
2878 (ppc_elf_reloc_type_lookup): Handle new relocs.
2879 (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
2880 without marker relocs.
2881 (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
2882 if section has no old-style calls.
2883 (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
2884 Don't try to optimize new-style __tls_get_addr call when handling
2885 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
2886 relocs.
2887 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
2888 (ppc64_elf_reloc_type_lookup): Handle new relocs.
2889 (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
2890 without marker relocs.
2891 (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
2892 if section has no old-style calls. Set toc_ref for new relocs as
2893 appropriate.
2894 (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
2895 Don't try to optimize new-style __tls_get_addr call when handling
2896 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
2897 relocs.
2898
51dec227
AM
28992009-03-04 Alan Modra <amodra@bigpond.net.au>
2900
2901 PR 6768
2902 * configure.in: Test for ld --as-needed support. Link shared
2903 libbfd against libm.
2904 * configure: Regenerate.
2905
a1f7ca36
AM
29062009-03-03 Alan Modra <amodra@bigpond.net.au>
2907
2908 * Makefile.am: Run "make dep-am".
2909 * Makefile.in: Regenerate.
2910
c3b7224a
NC
29112009-03-02 Qinwei <qinwei@sunnorth.com.cn>
2912
2913 * elf32-score7.c: New file.
2914 * elf32-score.h: New file.
2915 * elf32-score.c: Add code to support score 7. Set score7 as the
2916 default.
2917 * cpu-score.c: Add score7 architecure.
2918 (compatibile): New function.
2919 * Makefile.am: Add rules for building elf32-score7 object.
2920 * Makefile.in: Regenerate.
2921 * configure.in: Add elf32-score7 object to score vectors.
2922 * configure: Regenerate.
2923 * reloc.c: Add score7 relocs.
2924 * archures.c: Add score3 and score7 machine numbers.
2925 * bfd-in2.h: Regenerate.
2926 * libbfd.h: Regenerate.
2927
58e24671
RW
29282009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2929
2930 * configure: Regenerate.
2931
5887528b
DA
29322009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2933
d45b7d74
DA
2934 * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
2935 (elf32_hppa_check_relocs): Use it.
2936
5887528b
DA
2937 * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
2938 elf64-hppa.c.
2939 (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
2940 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2941 (elf_hppa_is_dynamic_loader_symbol): Likewise.
2942 (elf_hppa_record_segment_addrs): Likewise.
2943 (elf_hppa_final_link): Likewise.
2944 (elf_hppa_relocate_insn): Likewise.
2945 (elf_hppa_final_link_relocate): Likewise.
2946 (elf64_hppa_relocate_section): Likewise.
2947 * elf64-hppa.c: Insert above.
2948
a03bd320
DA
29492009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2950
2951 * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
2952 (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
2953 (elf_hppa_relocate_section): Likewise.
2954 * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
2955 from struct elf_link_hash_entry. Add count field.
2956 (struct elf64_hppa_dyn_hash_table): Delete.
2957 (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
2958 (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
2959 (hppa_elf_hash_entry, eh_name): Define.
2960 (elf64_hppa_new_dyn_hash_entry): Delete.
2961 (elf64_hppa_dyn_hash_lookup): Delete.
2962 (elf64_hppa_dyn_hash_traverse): Delete.
2963 (get_dyn_name): Delete.
2964 (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
2965 of struct elf64_hppa_dyn_hash_entry *.
2966 (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
2967 allocate_global_data_plt, allocate_global_data_stub,
2968 allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
2969 Likewise.
2970 (hppa64_link_hash_newfunc): New.
2971 (elf64_hppa_hash_table_create): Rework.
2972 (count_dyn_reloc): Likewise.
2973 (hppa64_elf_local_refcounts): New.
2974 (elf64_hppa_check_relocs): Rework using standard technique for recording
2975 local DLT, PLT and OPD reference counts.
2976 (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
2977 elf_link_hash_entry *.
2978 (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
2979 allocate_global_data_plt, allocate_global_data_stub,
2980 allocate_global_data_opd, allocate_dynrel_entries,
2981 elf64_hppa_adjust_dynamic_symbol,
2982 elf64_hppa_mark_milli_and_exported_functions): Likewise.
2983 (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
2984 Use hppa_link_hash_table. Rework.
2985 (elf64_hppa_link_output_symbol_hook): Rework.
2986 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
2987 elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
2988 elf64_hppa_finish_dynamic_sections): Likewise.
2989
ebe24dd4
CL
29902009-02-26 Christophe Lyon <christophe.lyon@st.com>
2991
2992 * elf32-arm.c (stub_reloc_type): Removed.
2993 (insn_sequence): Renamed reloc_type field to r_type.
2994 (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
2995 (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
2996 (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
2997 (elf32_arm_stub_type): Add new enum entries for the new stubs.
2998 (arm_stub_is_thumb): Catch new stubs.
2999 (arm_type_of_stub): Handle new stubs.
3000 (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
3001 (bfd_elf32_arm_process_before_allocation): Remove useless
3002 condition.
3003
b9d678e0
L
30042009-02-25 H.J. Lu <hongjiu.lu@intel.com>
3005
3006 * elf.c (elf_find_function): Use is_function_type to check
3007 function symbol.
3008
56fb3749
SA
30092009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
3010
3011 * xtensa-modules.c: Revert to previous version 1.11 due
3012 to inadvertant commit.
3013
658ff993
SA
30142009-02-24 Sterling Augustine <sterling@tensilica.com>
3015
3016 * elf32-xtensa.c (text_action_add): Separate test for action
3017 type. Break if saved action is ta_widen_insn at same offset.
3018
cf3eccff
DJ
30192009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
3020
3021 * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
3022 to elf32_arm_stub_long_branch_any_arm_pic.
3023 (elf32_arm_stub_long_branch_any_thumb_pic): New.
3024 (enum elf32_arm_stub_type, arm_type_of_stub)
3025 (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
3026 separately.
3027
07d72278
DJ
30282009-02-24 Joseph Myers <joseph@codesourcery.com>
3029
3030 * elf32-arm.c (PREV_SEC): Update comment.
3031 (group_sections): Rename argument to stubs_always_after_branch.
3032 Reverse the list and place stubs at the end of input sections.
3033 Undefine NEXT_SEC.
3034 (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
3035
4e31c731
DJ
30362009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3037
3038 * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
3039 Fix formatting.
3040 (arm_size_one_stub): Remove unnecessary break.
3041 (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
3042
30432009-02-23 Christophe Lyon <christophe.lyon@st.com>
461a49ca
DJ
3044
3045 * elf32-arm.c (stub_insn_type): New type.
3046 (stub_reloc_type): Likewise.
3047 (insn_sequence): Likewise.
3048 (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
3049 (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
3050 (elf32_arm_stub_long_branch_thumb_only): Likewise.
3051 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
3052 (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
3053 (elf32_arm_stub_long_branch_any_any_pic): Likewise.
3054 (elf32_arm_stub_hash_entry): Add new helper fields.
3055 (stub_hash_newfunc): Initialize these new fields.
3056 (arm_build_one_stub): Encode Arm and Thumb instructions separately
3057 to take endianness into account.
3058 (arm_size_one_stub): Compute size of stubs using insn_sequence.
3059 (arm_map_one_stub): Code is now more generic, thanks to
3060 insn_sequence.
3061
c2b4a39d
CL
30622009-02-23 Christophe Lyon <christophe.lyon@st.com>
3063
3064 * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
3065 code.
3066 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
3067 (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
3068 BLX is not available. Fix typo in warning message. Add comments
3069 and improve formatting.
3070 (arm_build_one_stub): Adjust to new
3071 elf32_arm_stub_long_branch_v4t_thumb_arm stub.
3072 (arm_map_one_stub): Likewise.
3073
0c376465 30742009-02-23 Tristan Gingold <gingold@adacore.com>
a60a89d6
TG
3075 Eric Botcazou <ebotcazou@adacore.com>
3076 Douglas B Rupp <rupp@gnat.com>
0c376465
TG
3077
3078 * vms.h: Update copyright year, fix comments, reorder declarations.
3079 (_bfd_save_vms_section): Remove the prototype.
3080 (EGPS_S_V_NO_SHIFT): New constant.
3081 (bfd_vms_set_section_flags): New prototype.
3082 (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
3083 constants.
3084 (EGSY_S_W_FLAGS): Ditto.
3085 (EGSY_S_V_QUAD_VAL): Ditto.
3086 (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
3087 (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
3088 EGST_S_B_NAMLNG): Ditto.
3089 (ESRF_S_B_NAMLNG): Ditto.
3090 (ETIR_S_C_HEADER_SIZE): Ditto.
3091 (EGPS_S_V_ALLOC_64BIT): Ditto.
3092 (DST_S_C_EPILOG): Ditto.
3093 (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
3094 (DST_S_C_SRC_INCRLNUM_B): Ditto.
3095 (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
3096 (DST_S_L_PCLINE_UNSLONG): Ditto.
3097 (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
3098 (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
3099 (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
3100 (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
3101 (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
3102 (DST_S_B_SRC_UNSBYTE): Ditto.
3103 (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
3104 Add prototypes.
3105 (vms_section, vms_reloc): Remove types.
3106 (hdr_struc): Replaced by ...
3107 (hdr_struct): ... new type.
3108 (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
3109 (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
3110 (EMH_DATE_LENGTH): Ditto.
3111 (eom_struc): Replaced by ...
3112 (eom_struct): ... new type.
3113 (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
3114 (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
3115 (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
3116 (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
3117 (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
3118 (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
3119 (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
3120 (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
3121 (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
3122 (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
3123 (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
3124 (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
3125 (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
3126 (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
3127 (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
3128 (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
3129 (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
3130 (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
3131 (DBG_S_C_DMT_PSECT_SIZE): Ditto.
3132 (enum file_type_enum): New type.
3133 (struct location_struct): Removed.
3134 (struct fileinfo, struct srecinfo, struct lineinfo): New types.
3135 (struct funcinfo, struct module): Ditto.
3136 (struct vms_private_data_struct): Update fields.
3137 (struct vms_section_data_struct): New type.
3138
3139 * vms.c: Update copyright year, fix comments,
3140 Fix includes for DECC, add prototypes.
3141 (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
3142 some initializers.
3143 Use flavour to set is_vax, location_stack is removed.
3144 (struct pair): Declare.
3145 (fill_section_ptr): Initialize variables at declaration.
3146 Add guard to set SECTION_SYM flag, handlde und section.
3147 (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
3148 (_bfd_vms_slurp_object_records): New function, replaces previous
3149 vms_object_p.
3150 (vms_slurp_module): New function.
3151 (vms_slurp_image): Ditto.
3152 (vms_object_p): Complete rewrite.
3153 (vms_mkobject): Use is_vax field to slect architecture.
3154 (free_reloc_stream): New function.
3155 (vms_convert_to_var): Ditto.
3156 (vms_convert_to_var_1): Ditto.
3157 (vms_convert_to_var_unix_filename): Ditto.
3158 (vms_close_and_cleanup): Call free_reloc_stream, convert file to
3159 VAR format on VMS.
3160 (vms_new_section_hook): Set alignment to 0, allocate private data.
3161 (vms_get_section_contents): Load content.
3162 (vms_get_symbol_info): Handle undefined section.
3163 (vms_find_nearest_line): Handle.
3164 (alloc_reloc_stream): New function.
3165 (vms_slurp_reloc_table): Ditto.
3166 (vms_get_reloc_upper_bound): Make it real.
3167 (vms_canonicalize_reloc): Do the real work.
3168 (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
3169 ALPHA_R_BOH.
3170 (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
3171 (vms_set_arch_mach): Check arch.
3172 (vms_set_section_contents): Copy the content after allocation.
3173 (vms_alpha_vec): Update object flags.
3174
3175 * vms-tir.c: Update copyright year, fix comments,
3176 add prototypes for new functions.
3177 (dst_define_location): New function.
3178 (dst_restore_location): New function.
3179 (dst_retrieve_location): New function.
3180 (dst_check_allocation): New function.
3181 (image_dump): Call dst_check_allocation.
3182 (image_write_b): Ditto.
3183 (image_write_w): Ditto.
3184 (image_write_l): Ditto.
3185 (image_write_q): Ditto.
3186 (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
3187 STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
3188 CTL_STKDL.
3189 Call error handler instead of abort if name is not known.
3190 (etir_sta): Add quarter_relocs argument and set it.
3191 Fix cast.
3192 (etir_sto): Ditto.
3193 (etir_opr): Ditto, return FALSE in case of error.
3194 (etir_ctl): Add quarter_relocs argument and set it, fix cast.
3195 Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
3196 (etir_stc): Add quarter_relocs argument and set it, fix cast.
3197 Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
3198 Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
3199 Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
3200 Return FALSE in case of error.
3201 (tir_sta): Change sign of psect.
3202 (tir_ctl): Ditto.
3203 (tir_cmd): Fix cast. Makes tir_table static const.
3204 (etir_cmd): Add quarter_relocs argument, makes etir_table const,
3205 add argument to explain.
3206 (analyze_etir): Initialize maxptr, add quarter_relocs
3207 declaration, move some declarations into inner scopes.
3208 Handle quarter_relocs and STO_IMM.
3209 (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
3210 (_bfd_vms_slurp_relocs): New function.
3211 (_bfd_vms_decode_relocs): New function.
3212 (sto_imm): Rewritten.
3213 (start_first_etbt_record): New function.
3214 (start_another_etbt_record): Ditto.
3215 (etir_output_check): Ditto.
3216 (defer_reloc_p): Ditto.
3217 (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
3218 a for-loop. Correctly deals with contents, deals with .vmsdebug,
3219 rewritte relocations handling.
3220 (_bfd_vms_write_tbt): Removed.
3221 (_bfd_vms_write_dbg): Ditto.
3222
3223 * vms-misc.c: Update copyright year, Fix comments.
3224 (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
3225 (maybe_adjust_record_pointer_for_object): New function.
3226 (_bfd_vms_get_first_record): New function, replaces ...
3227 (_bfd_vms_get_record): .. removed.
3228 (_bfd_vms_get_object_record): New function.
3229 (_bfd_vms_get_object_record): New function.
3230 (vms_get_remaining_object_record): New function, replaces ...
3231 (_bfd_vms_get_next_record): ... removed.
3232 (add_new_contents): Removed.
3233 (_bfd_save_vms_section): Removed.
3234 (_bfd_get_vms_section): Removed.
3235 (_bfd_vms_output_flush): Write in VAR format.
3236 (new_symbol): Don't make UND section.
3237
3238 * vms-hdr.c: Update copyright year, update list of record handled.
3239 (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
3240 (_bfd_vms_write_hdr): Strip vms and unix patches,
3241 add comments, truncate module name at 31 characters,
3242 use constants instead of hard-coded value,
3243 write BFD version instead of a fixed string.
3244 (_bfd_vms_slurp_ihd): New function.
3245 (_bfd_vms_slurp_isd): Ditto.
3246 (_bfd_vms_slurp_ihs): Ditto.
3247 (new_module): Ditto.
3248 (parse_module): Ditto
3249 (build_module_list): Ditto.
3250 (module_find_nearest_line): Ditto.
3251 (_bfd_vms_find_nearest_dst_line): Ditto.
3252 (vms_slurp_debug): Ditto.
3253 (_bfd_vms_slurp_dbg): Ditto.
3254 (_bfd_vms_slurp_tbt): Ditto.
3255 (_bfd_vms_write_dbg): Ditto.
3256 (_bfd_vms_write_tbt): Ditto.
3257
3258 * vms-gsd.c: Update copyright year, update list of records handled.
3259 (EVAX_LITERALS_NAME): New macro.
3260 (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
3261 (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
3262 (register_universal_symbol): New function and prototype.
3263 (_bfd_vms_slurp_gsd): Fix indentations and casts,
3264 improve debug messages,
3265 use constants instead of hard-coded value,
3266 fix missing endianness conversion,
3267 handle global symbol (SYMG).
3268 (bfd_vms_set_section_flags): New function.
3269 (_bfd_vms_write_gsd): Don't write .vmsdebug section,
3270 handle section literals,
3271 fix indentation,
3272 handle section bfd and vms flags,
3273 don't output LIB$INITIALIZE symbol,
3274 fix handling of weak symbols,
3275 fix evax vs vax procedure descriptor,
3276 handle absolute symbols.
3277
3278 * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
3279 BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
3280
3281 * makefile.vms (DEFS): Fix flags for VMS.
3282
3283 * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
3284
3285 * bfd-in2.h: Regenerated.
3286 * libbfd.h: Regenerated.
3287
47149254
CC
32882009-02-20 Cary Coutant <ccoutant@google.com>
3289
3290 * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
3291 in struct stat.
3292
6b1cecf3
DK
32932009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
3294
3295 PR gas/7059
3296 * coffcode.h (coff_write_object_contents): Don't let the string
3297 table offset overflow the s_name field when using long section names.
3298
88183869
DK
32992009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
3300
3301 * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
3302 control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
3303 * coff-mips.c (mips_ecoff_backend_data): Likewise.
3304 * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
3305 control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
3306 (bfd_pmac_xcoff_backend_data): Likewise.
3307 * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
3308 (bfd_xcoff_aix5_backend_data): Likewise.
3309 (xcoff64_write_object_contents): Delete unused long_section_names
3310 local variable.
3311 * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
3312 name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
3313 struct non-const.
3314 * coffcode.h (documentation): Update to describe long section names.
3315 (COFFLONGSECTIONCATHELPER): New helper macro.
3316 (BLANKOR1TOODD): Likewise.
3317 (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
3318 (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
3319 (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
3320 (bfd_coff_set_long_section_names_allowed): New function.
3321 (bfd_coff_set_long_section_names_disallowed): Likewise.
3322 (struct bfd_coff_backend_data): Add new backend hook function
3323 pointer _bfd_coff_set_long_section_names.
3324 (bfd_coff_set_long_section_names): New backend hook.
3325 (coff_write_object_contents): Only generate long section names if
3326 bfd_coff_long_section_names() indicates they are currently enabled.
3327 (bfd_coff_std_swap_table): Make non-const, and initialise long
3328 section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
3329 (ticoff0_swap_table): Likewise to both.
3330 (ticoff1_swap_table): Again, likewise to both.
3331 * coffgen.c (make_a_section_from_file): Allow long section names
3332 as inputs even if not currently allowed for outputs.
3333 * ecoff.c (_bfd_ecoff_no_long_sections): New function.
3334 * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
3335 * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
3336 * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
3337 * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
3338 * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
3339 * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
3340 * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
3341 * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
3342 * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
3343 * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
3344 * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
3345 * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
3346 * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
3347 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
3348 * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
3349 * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
3350 * libcoff-in.h: Update copyright year to cause updated copyright
3351 year in generated libcoff.h, and fix typo.
3352 * libcoff.h: Regenerated.
3353 * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
3354 (_bfd_ecoff_no_long_sections): Add prototype.
3355 * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
3356 * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
3357 defined by an including .c file.
3358 * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
3359 long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
3360 (ticoff1_swap_table): Likewise to both.
3361
90d8a22c
CL
33622009-02-18 Christophe Lyon <christophe.lyon@st.com>
3363
3364 * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
3365 stub. Catch default case error.
3366 (arm_map_one_stub): Add missing Thumb mapping symbol.
3367
12123067
NC
33682009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
3369
3370 PR 9841
3371 * elf32-avr.c: Handle case where no local symbos exist correctly.
3372
fea2b4d6
CL
33732009-02-16 Christophe Lyon <christophe.lyon@st.com>
3374
3375 bfd/
3376 * elf32-arm.c (arm_long_branch_stub,
3377 arm_thumb_v4t_long_branch_stub,
3378 arm_thumb_thumb_long_branch_stub,
3379 arm_thumb_arm_v4t_long_branch_stub,
3380 arm_thumb_arm_v4t_short_branch_stub,
3381 arm_pic_long_branch_stub):
3382 Renamed to elf32_arm_stub_long_branch_any_any,
3383 elf32_arm_stub_long_branch_v4t_arm_thumb,
3384 elf32_arm_stub_long_branch_thumb_only,
3385 elf32_arm_stub_long_branch_v4t_thumb_arm,
3386 elf32_arm_stub_short_branch_v4t_thumb_arm,
3387 elf32_arm_stub_long_branch_any_any_pic.
3388 (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
3389 arm_thumb_thumb_stub_long_branch,
3390 arm_thumb_arm_v4t_stub_long_branch,
3391 arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
3392 Renamed to arm_stub_long_branch_any_any,
3393 arm_stub_long_branch_v4t_arm_thumb,
3394 arm_stub_long_branch_thumb_only,
3395 arm_stub_long_branch_v4t_thumb_arm,
3396 arm_stub_short_branch_v4t_thumb_arm,
3397 arm_stub_long_branch_any_any_pic.
3398
13e0a874
DA
33992009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3400
3401 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
3402 in branch offset check.
3403
3a71aa26
AM
34042009-02-15 Alan Modra <amodra@bigpond.net.au>
3405
3406 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
3407 add toc.symndx and toc.add.
3408 (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
3409 Set up toc.add.
3410 (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
3411 callers.
3412 (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
3413 (branch_reloc_hash_match): New function, extracted from..
3414 (ppc64_elf_tls_optimize): ..here.
3415 (ppc64_elf_relocate_section): Properly set addends when optimizing
3416 tls sequences. Avoid unnecessary reading and writing of insns.
3417 Only redo reloc when symbol changed. Bypass symbol checks when
3418 using tlsld_got.
3419 * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
3420 (branch_reloc_hash_match): New function, extracted from..
3421 (ppc_elf_tls_optimize): ..here.
3422 (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
3423 Don't clear addend on zapped __tls_get_addr reloc.
3424
2c2b4ed4
NC
34252009-02-12 Nick Clifton <nickc@redhat.com>
3426
3427 PR 9827
3428 * elflink.c (bfd_elf_final_link): When counting the relocations,
3429 if the header size has not been set yet then assume that it will
3430 match the output section's reloc type.
3431
453f5985
NS
34322009-02-12 Nathan Sidwell <nathan@codesourcery.com>
3433
3434 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
3435 relocatable link.
3436
3209bffa
AM
34372009-02-09 Alan Modra <amodra@bigpond.net.au>
3438
3439 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
3440 (find_function): Likewise.
3441 (pasted_function): Don't error if no prior function found.
3442 (discover_functions): Revert 2008-12-10 change. Extend first
3443 function range to start of section.
3444
813c8a3c
DA
34452009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3446
3447 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
3448 functions to C90.
3449 * elf64-hppa.h: Likewise.
3450
2d0f9ad9
JM
34512009-02-06 Joseph Myers <joseph@codesourcery.com>
3452
3453 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
3454 .sbss handling.
3455
50e00962
AM
34562009-02-04 Alan Modra <amodra@bigpond.net.au>
3457
3458 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
3459 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
3460
52b6b6b9
JM
34612009-02-03 Sandip Matte <sandip@rmicorp.com>
3462
3463 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
3464 * archures.c (bfd_mach_mips_xlr): Define.
3465 * bfd-in2.h: Regenerate.
3466 * cpu-mips.c (I_xlr): Define.
3467 (arch_info_struct): Add XLR entry.
3468 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
3469 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
3470 (mips_mach_extensions): Add XLR entry.
3471
654c3c9f
EW
34722009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
3473
3474 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
3475
31dd3154
JM
34762009-02-03 Carlos O'Donell <carlos@codesourcery.com>
3477
3478 * configure.in: AC_SUBST pdfdir.
d1fa68d3 3479 * Makefile.am: Add install-pdf, install-pdf-am
31dd3154
JM
3480 and install-pdf-recursive targets. Define pdfdir.
3481 * doc/Makefile.am: Define pdf__strip_dir. Add
3482 install-pdf and install-pdf-am targets.
d1fa68d3 3483 * po/Make-in: Add install-pdf target.
31dd3154
JM
3484 * configure: Regenerate.
3485 * Makefile.in: Regenerate
3486 * doc/Makefile.in: Regenerate.
3487
cf869cce
NC
34882009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
3489
3490 * bfd-in2.h: Regenerate.
3491 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
3492 fields from n_entries to n_slots where appropriate, update comments.
3493 (HOWTO): Add TLS relocations.
3494 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
3495 (enum elf_m68k_got_offset_size): New enum.
3496 (struct elf_m68k_got_entry.type): Move field to ...
3497 (struct elf_m68k_got_entry_key): ... here. Update all uses.
3498 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
3499 functions.
3500 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
3501 functions.
3502 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
3503 fields into n_entries array. Update comments.
3504 (elf_m68k_init_got): Simplify, update all uses.
3505 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
3506 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
3507 GOT entries; update name, update all uses.
3508 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
3509 (elf_m68k_get_got_entry): Update.
3510 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
3511 simplify.
3512 (elf_m68k_remove_got_entry_type): Simplify.
3513 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
3514 (elf_m68k_can_merge_gots): Update.
3515 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
3516 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
3517 GOT entries, simplify.
3518 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
3519 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
3520 field, remove obsoleted local_n_entries field.
3521 (elf_m68k_partition_multi_got_2): New static function.
3522 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
3523 update.
3524 (elf_m68k_remove_got_entry_type): Update.
3525 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
d1fa68d3 3526 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
cf869cce
NC
3527 update of sgot->size and srelgot->size.
3528 (elf_m68k_gc_sweep_hook): Update.
3529 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
3530 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
3531 TLS relocations.
3532 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
3533 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
3534
c1a0a41f
DD
35352009-02-02 DJ Delorie <dj@redhat.com>
3536
3537 * elf32-mep.c (config_names): Regenerate configuration.
3538
72a80a16
AM
35392009-02-02 Alan Modra <amodra@bigpond.net.au>
3540
3541 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
3542 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
3543 * elf.c (bfd_elf_get_str_section): Make static.
3544 (bfd_elf_find_section): Delete.
3545 * libbfd.h: Regenerate.
3546
273f4430
JK
35472009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3548
3549 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
3550 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
3551
010e5ae2
AM
35522009-01-31 Alan Modra <amodra@bigpond.net.au>
3553
3554 * elflink.c (on_needed_list): New function.
3555 (elf_link_add_object_symbols): Link in --as-needed libs if they
3556 satisfy undefined symbols in other libs.
3557
33a7ffc2
JM
35582009-01-30 Julian Brown <julian@codesourcery.com>
3559
3560 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
3561 EXEC_P or DYNAMIC flags, and skip sections which are being linked
3562 with --just-symbols (-R).
3563
13d72a14
AN
35642009-01-29 Adam Nemet <anemet@caviumnetworks.com>
3565
3566 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
3567 high_pc in order to properly sign-extend VMAs.
3568
d334575b 35692009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
d1fa68d3
AS
3570 Mark Shinwell <shinwell@codesourcery.com>
3571 Catherine Moore <clm@codesourcery.com>
d334575b
JM
3572
3573 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
3574
528aeb62
CM
35752009-01-28 Catherine Moore <clm@codesourcery.com>
3576
3577 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
3578 SEC_LOAD for dynamic relocation sections.
3579
f6f05983
HPN
35802009-01-27 Hans-Peter Nilsson <hp@axis.com>
3581
3582 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
3583 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
3584 the size of local TLS data.
3585
27cc28f9
AS
35862009-01-27 Andreas Schwab <schwab@suse.de>
3587
3588 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
3589 architectures in the archive.
3590
b3bf42d8
HPN
35912009-01-27 Hans-Peter Nilsson <hp@axis.com>
3592
f551b6f0
HPN
3593 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
3594 <R_CRIS_32_DTPREL>: Correct relocation value.
3595
b3bf42d8
HPN
3596 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
3597 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
3598 symbols with non-default visibility.
3599
9bc4e62b
NS
36002009-01-26 Nathan Sidwell <nathan@codesourcery.com>
3601
3602 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
3603 describing the trampolines.
3604 (ppc_elf_relocate_section): Update relocs to describe the
3605 trampolines.
3606
aeaf6540
DA
36072009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3608
3609 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
3610 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
3611 and R_PARISC_PCREL12F relocations.
3612
1e8fa21e
AM
36132009-01-24 Alan Modra <amodra@bigpond.net.au>
3614
3615 PR 6022
3616 * elflink.c (find_version_for_sym): New function split out from,
3617 but without export_dynamic test, ..
3618 (_bfd_elf_link_assign_sym_version): ..here.
3619 (_bfd_elf_export_symbol): Use it.
3620
28caa186
AM
36212009-01-23 Alan Modra <amodra@bigpond.net.au>
3622
3623 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
3624 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
3625 * elflink.c: ..here, somewhat modified.
3626 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
3627 _bfd_elf_link_find_version_dependencies,
3628 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
3629 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
3630 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
3631 declare..
3632 * elflink.c: ..and make static here.
3633 (_bfd_elf_link_find_version_dependencies): Adjust for removal
3634 of output_bfd from struct elf_find_verdep_info.
3635 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
3636 struct elf_info_failed.
3637 (bfd_elf_size_dynamic_sections): Adjust.
3638
be04437d
AM
36392009-01-22 Alan Modra <amodra@bigpond.net.au>
3640
3641 PR 6832
3642 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
3643 after comp_unit_find_line call.
3644
58f9615c
NC
36452009-01-21 Nick Clifton <nickc@redhat.com>
3646
3647 PR 9769
3648 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
3649 tm_gmtoff field in struct tm.
3650
fb266b8b
AM
36512009-01-21 Alan Modra <amodra@bigpond.net.au>
3652
3653 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
3654 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
3655 sections in soft-icache lines unless non_ia_text. Don't add
3656 rodata if doing so would exceed line size.
3657
451ffe63
HPN
36582009-01-19 Hans-Peter Nilsson <hp@axis.com>
3659
3660 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
3661 types than bfd_link_hash_indirect, before early return, call
3662 _bfd_elf_link_hash_copy_indirect.
3663
5aa6ff7c
AS
36642009-01-19 Andrew Stubbs <ams@codesourcery.com>
3665
3666 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
3667 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
3668 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
3669 (elf_backend_obj_attrs_order): New define.
3670 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
3671 (elfNN_bed): Add elf_backend_obj_attrs_order.
3672
3483fe2e
AS
36732009-01-19 Andrew Stubbs <ams@codesourcery.com>
3674
3675 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
3676 (obj_attr_size): Likewise.
3677 (write_obj_attribute): Likewise.
3678 (_bfd_elf_copy_obj_attributes): Likewise.
3679 (_bfd_elf_parse_attributes): Likewise.
3680 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
3681 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
3682 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
3683 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
3684 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
3685 with macros.
3686
2d0bb761
AS
36872009-01-19 Andrew Stubbs <ams@codesourcery.com>
3688
3689 * elf-attrs.c (is_default_attr): Support defaultless attributes.
3690 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
3691 (bfd_elf_add_obj_attr_string): Likewise.
3692 (bfd_elf_add_obj_attr_int_string): Likewise.
3693 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
3694 * elf-bfd.h (struct obj_attribute): Document new flag bit.
3695 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
3696 Tag_nodefaults has no default value.
3697 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
3698 comment to reflect the new state.
3699
a77e83b7
AM
37002009-01-19 Alan Modra <amodra@bigpond.net.au>
3701
3702 PR 9695
3703 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
3704 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
3705 (adjust_z_magix): Delete dead code handling QMAGIC.
3706
f6d29e26
KT
37072009-01-16 Kai Tietz <kai.tietz@onevision.com>
3708
3709 * coffcode.h (styp_to_sec_flags): Correct interpretation of
3710 IMAGE_SCN_MEM_DISCARDABLE.
3711
29670fb9
AM
37122009-01-16 Alan Modra <amodra@bigpond.net.au>
3713
3714 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
3715 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
3716 * configure.in (commonbfdlib): Delete.
3717 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
3718 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
3719 is available, not just for linux.
3720 * po/SRC-POTFILES.in: Regenerate.
3721 * Makefile.in: Regenerate.
3722 * configure: Regenerate.
3723
91e22acd
AS
37242009-01-15 Andrew Stubbs <ams@codesourcery.com>
3725 Julian Brown <julian@codesourcery.com>
3726
3727 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
3728 ARM attributes in ABI 2.07.
3729 * elf32-arm.c (get_secondary_compatible_arch): New function.
3730 (set_secondary_compatible_arch): New function.
3731 (tag_cpu_arch_combine): New function.
3732 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
3733 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
3734 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
3735 make it fit with order_01243.
3736 Add support for Tag_also_compatible_with,
3737 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
3738 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
3739 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
3740 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
3741 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
3742 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
3743 Rework the way unknown attributes are handled.
3744 Defer errors until all attributes have been processed.
3745
7b86a9fa
AS
37462009-01-15 Andrew Stubbs <ams@codesourcery.com>
3747
3748 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
3749 bfd_elf_add_obj_attr_int_string.
3750 Read Tag_compatibility from its new location in the attribute array,
3751 rather than the attribute list.
3752 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
3753 bfd_elf_add_obj_attr_int_string.
3754 (_bfd_elf_parse_attributes): Likewise.
3755 (_bfd_elf_merge_object_attributes): There's now only one
3756 Tag_compatibility, and it's in the array, not the list.
3757 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
3758 Tag_compatibility.
3759 (bfd_elf_add_obj_attr_compat): Rename to
3760 bfd_elf_add_obj_attr_int_string.
3761 (bfd_elf_add_proc_attr_compat): Rename to
3762 bfd_elf_add_proc_attr_int_string.
3763 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
3764 Tag_compatibility.
3765
01e1a5bc
NC
37662009-01-15 Douglas B Rupp <rupp@gnat.com>
3767
3768 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
3769 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
3770 (vmsutil.lo): Add dependency rule.
3771 * Makefile.in: Regenerate.
3772 * config.bfd (ia64*-*-*vms*): Add case.
3773 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
3774 * configure: Regenerate.
3775 * vmsutil.c: New file.
3776 * vmsutil.h: New file.
3777 * elf-bfd.h (struct bfd_elf_special_section): Change type of
3778 attr to bfd_vma.
3779 * elfxx-ia64.c (elfNN_vms_post_process_headers,
3780 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
3781 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
3782 elfNN_vms_object_p): New functions
3783 * targets.c (bfd_elf64_ia64_vms_vec): New target.
3784
a33dafc3
L
37852009-01-14 H.J. Lu <hongjiu.lu@intel.com>
3786
3787 PR ld/9727
3788 * elflink.c (elf_gc_sweep): Exclude the group section if the
3789 first member of the section group is excluded.
3790
13c0e967
AM
37912009-01-14 Alan Modra <amodra@bigpond.net.au>
3792
3793 PR 9735
3794 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
3795 saved filename, use bfd_alloc rather than bfd_malloc for it.
3796
460e679b
AM
37972009-01-13 Alan Modra <amodra@bigpond.net.au>
3798
3799 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
3800
25076afa
AM
38012009-01-13 Alan Modra <amodra@bigpond.net.au>
3802
3803 * elf32-spu.c (remove_cycles): Always set call->max_depth.
3804
37107878
AM
38052009-01-12 Alan Modra <amodra@bigpond.net.au>
3806
3807 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
3808
cd4a7468
AM
38092009-01-12 Alan Modra <amodra@bigpond.net.au>
3810
3811 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
3812 num_lines_log2.
3813 (struct got_entry): Add br_addr.
3814 (struct call_info): Add priority.
3815 (struct function_info): Add lr_store and sp_adjust.
3816 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
3817 (spu_elf_find_overlays): For soft-icache, mark any section within cache
3818 area as an overlay, and check that no other overlays exist. Look up
3819 icache overlay manager entry sym.
3820 (BRA_STUBS, BRA, BRASL): Define.
3821 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
3822 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
3823 in branch insn.
3824 (count_stub, build_stub): Support soft-icache.
3825 (build_spuear_stubs, process_stubs): Adjust build_stub call.
3826 (spu_elf_size_stubs): Size soft-icache stubs.
3827 (overlay_index): New function.
3828 (spu_elf_build_stubs): Make static. Support soft-icache.
3829 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
3830 (find_function_stack_adjust): Save lr store and stack adjust insn
3831 offsets.
3832 (maybe_insert_function): Adjust find_function_stack_adjust call.
3833 (mark_functions_via_relocs): Retrieve priority.
3834 (remove_cycles): Only warn about pruned arcs when stack_analysis.
3835 (sort_calls): Sort by priority first.
3836 (mark_overlay_section): Ignore .ovl.init.
3837 (sum_stack): Only print when stack_analysis.
3838 (print_one_overlay_section): New function, extracted from..
3839 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
3840 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
3841 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
3842 analysis. Call spu_elf_build_stubs.
3843 (spu_elf_relocate_section): For soft-icache encode overlay index
3844 into addresses.
3845 (spu_elf_output_symbol_hook): Support soft-icache.
3846 (spu_elf_modify_program_headers: Likewise.
37107878 3847
cd4a7468
AM
3848 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
3849 num_regions to num_lines. Add line_size and max_branch.
3850 (enum _ovly_flavour): Add ovly_soft_icache.
3851 (spu_elf_build_stubs): Delete.
3852
80c29487
JK
38532009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3854
3855 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
3856 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
3857
1bc86aea
HPN
38582009-01-07 Hans-Peter Nilsson <hp@axis.com>
3859
3860 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
3861 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
3862 the program, the known offset starts at the negative size of the
3863 TLS section.
3864 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
3865 Similar.
3866
3baa454d 38672009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
75606e85 3868
3baa454d 3869 * config.bfd: Add lm32-*-rtems*.
75606e85 3870
9dbe8890
L
38712009-01-03 H.J. Lu <hongjiu.lu@intel.com>
3872
3873 * coff-ppc.c: Add 2009 to Copyright.
3874 * elf32-cris.c: Likewise.
3875 * elflink.c: Likewise.
3876
0bdf8d40
HPN
38772009-01-03 Hans-Peter Nilsson <hp@axis.com>
3878
3879 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
3880 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
3881
54ac0771
L
38822009-01-02 H.J. Lu <hongjiu.lu@intel.com>
3883
3884 PR ld/9679
3885 * elflink.c (elf_merge_st_other): New.
3886 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
3887 hide them if needed.
3888 (elf_link_add_object_symbols): Updated.
3889
d8880531
L
38902009-01-02 H.J. Lu <hongjiu.lu@intel.com>
3891
3892 PR ld/9676
3893 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
3894 ref_dynamic and dynamic_def fields when setting def_regular
3895 to 1.
3896
b70b5c14
NC
38972009-01-02 Curtis Mackie <curtmackevo@gmail.com>
3898
3899 PR 9682
3900 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
3901 literal.
3902
d8880531 3903For older changes see ChangeLog-2008
56882138
AM
3904\f
3905Local Variables:
3906mode: change-log
3907left-margin: 8
3908fill-column: 74
3909version-control: never
3910End:
This page took 0.867741 seconds and 4 git commands to generate.