]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
bfd:
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3d3e6f9a
JM
12007-06-26 Joseph Myers <joseph@codesourcery.com>
2
3 * elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
4
b314ec0e
RS
52007-06-25 Richard Sandiford <richard@codesourcery.com>
6
7 * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
8 to be used for calls from MIPS16 code.
9
0d4a1476
AS
102007-06-23 Andreas Schwab <schwab@suse.de>
11
12 * configure.in (--with-separate-debug-dir): New option.
13 * configure: Regenerate.
14 * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR.
15 * Makefile.in: Regenerate.
16 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to
17 bfd_follow_gnu_debuglink.
18 (_bfd_dwarf2_find_line): Likewise.
19
0d161102
NC
202007-06-22 Nick Clifton <nickc@redhat.com>
21
22 * dwarf2.c: Add support for reading in debug information via a
23 .gnu_debuglink section:
24 (struct dwarf2_debug): Add bfd field to record the bfd containing
25 the debug info.
26 (parse_comp_unit): Remove ABFD parameter. Instead use the bfd
27 field in the dwarf2_debug structure.
28 (_bfd_dwarf2_find_nearest_line): If a debug info section could not
29 be found in the current bfd call bfd_follow_gnu_debuglink to see
30 if another file contains the debug information. If it does, open
31 it and continue.
32 (_bfd_dwarf2_find_line): Likewise.
33
293a0124
L
342007-06-19 H.J. Lu <hongjiu.lu@intel.com>
35
36 PR ld/4590
37 * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset
38 when removing duplicated entries.
39 (get_dyn_sym_info): Initialize the got_offset field to -1.
40 Update call to sort_dyn_sym_info.
41 (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort
42 array of addend and remove duplicates.
43
dc1f3d8a
L
442007-06-18 H.J. Lu <hongjiu.lu@intel.com>
45
46 * libpei.h (_bfd_XXi_final_link_postscript): Remove
47 duplication.
48 (bfd_target_pei_p): New.
49 (bfd_target_pei_arch): New
50 (bfd_target_efi_p): Likewise.
51 (bfd_target_efi_arch): New
52 (bfd_pe_executable_p): Use bfd_target_pei_p and
53 bfd_target_efi_p.
54
55 * peicode.h (arch_type): New enum.
56 (pe_arch): New function.
57 (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
58 if there is an EFI/PE target.
59
79887925
L
602007-06-14 H.J. Lu <hongjiu.lu@intel.com>
61
62 * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config.
63
64 * acinclude.m4: Don't include m4 files. Remove libtool
65 kludge.
66
67 * Makefile.in: Regenerated.
79887925
L
68 * aclocal.m4: Likewise.
69 * configure: Likewise.
70
99ded152
BW
712007-06-11 Sterling Augustine <sterling@tensilica.com>
72 Bob Wilson <bob.wilson@acm.org>
73
74 * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed
75 XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
76 (extend_ebb_bounds_backward, compute_text_actions): Likewise.
77 (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise.
78 (xtensa_get_property_predef_flags): Likewise.
79 (compute_removed_literals): Pass new arguments to is_removable_literal.
80 (is_removable_literal): Add sec, prop_table and ptblsize arguments.
81 Do not remove literal if the NO_TRANSFORM property flag is set.
82
cbf2cba4
RS
832007-05-31 Richard Sandiford <rsandifo@nildram.co.uk>
84
85 * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
86 type (3) single-GOT entry, read tls_type from the hash table entry
87 rather than the GOT entry.
88
a9a4c53e
AM
892007-06-01 Alan Modra <amodra@bigpond.net.au>
90
91 * simple.c (bfd_simple_get_relocated_section_contents): Init
92 input_bfds_tail.
93
02bf8d82
AM
942007-05-30 Alan Modra <amodra@bigpond.net.au>
95
42bb2e33
AM
96 * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
97 created by objcopy --only-keep-debug.
98 (_bfd_elf_init_private_section_data): Only change elf_section_type
99 if it is SHT_NULL.
100
02bf8d82
AM
101 * elf.c (assign_file_positions_for_load_sections): Correct sh_type
102 to SHT_NOBITS earlier. Base actions in rest of function on sh_type
103 and sh_flags instead of bfd section flags. Delete voff and code
104 keeping nobits segments aligned.
105
4e591bc1
EC
1062007-05-25 Eric Christopher <echristo@apple.com>
107
108 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
109 Check that sym_sec isn't NULL before accessing.
110
37ad9514
SE
1112007-05-24 Steve Ellcey <sje@cup.hp.com>
112
113 * Makefile.in: Regnerate.
114 * configure: Regenerate.
115 * aclocal.m4: Regenerate.
116 * doc/Makefile.in: Regenerate.
117
91a5743d
PB
1182007-05-22 Paul Brook <paul@codesourcery.com>
119
120 * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
121 with sec and sec_shndx.
122 (elf32_arm_ouput_plt_map_sym): Use them.
123 (elf32_arm_output_arch_local_syms): Output mapping symbols for
124 interworking glue.
125
26079076
PB
1262007-05-18 Paul Brook <paul@codesourcery.com>
127
128 * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
129 (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
130 (record_arm_to_thumb_glue): Add v5t non-pic glue.
131 (elf32_arm_create_thumb_stub): Ditto.
132
91ac5911
L
1332007-05-16 H.J. Lu <hongjiu.lu@intel.com>
134 Alan Modra <amodra@bigpond.net.au>
135
136 * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
137 section to the minimum alignment.
138
027297b7
L
1392007-05-15 H.J. Lu <hongjiu.lu@intel.com>
140 Alan Modra <amodra@bigpond.net.au>
141
142 PR ld/4504
143 * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
144 * elflink.c (_bfd_elf_adjust_dynamic_copy): New.
145
146 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
147 _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
148 bss section.
149 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
150 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
151 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
152 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
153 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
154 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
155 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
156 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
157 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
158 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
159 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
160 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
161 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
162 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
163 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
164 * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
165 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
166
5c18022e
RS
1672007-05-15 Richard Sandiford <richard@codesourcery.com>
168
169 * elfxx-mips.c (mips_elf_create_local_got_entry): Remove
170 input_section argument. Create .rela.dyn relocations against
171 symbol 0 rather than the section symbol.
172 (mips_elf_local_got_index): Remove input_section argument.
173 Update call to mips_elf_create_local_got_entry.
174 (mips_elf_got_page, mips_elf_got16_entry): Likewise.
175 (mips_elf_calculate_relocation): Update calls to
176 mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.
177
a00a1f35
MS
1782007-05-15 Mark Shinwell <shinwell@codesourcery.com>
179
180 * elf32-arm.c (elf32_arm_final_link_relocate): Correctly
181 handle the Thumb-2 JUMP19 relocation.
182
0414f35b
AM
1832007-05-15 Alan Modra <amodra@bigpond.net.au>
184
185 PR 4479
186 * elf.c (elf_fake_sections): Don't allow backend to change
187 SHT_NOBITS if called for strip/objcopy --only-keep-debug.
188 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
189 fix from here.
190
74f2e02b
AM
1912007-05-14 Alan Modra <amodra@bigpond.net.au>
192
193 * elf.c (bfd_elf_string_from_elf_section): Return NULL on
194 invalid shstrndx.
195 (bfd_elf_get_str_section): Likewise.
196
f137a54e
AM
1972007-05-12 Alan Modra <amodra@bigpond.net.au>
198
199 PR 4497
200 * elf-eh-frame.c (struct cie): Add "local_personality". Make
201 "personality" a union.
202 (cie_eq): Compare local_personality too. Adjust personality
203 comparison.
204 (_bfd_elf_discard_section_eh_frame): Check binding on personality
205 reloc sym to allow for bad symtab. Use stashed local syms rather
206 than reading personality local sym. Handle discarded sections.
207
4f4416b5
AM
2082007-05-12 Alan Modra <amodra@bigpond.net.au>
209
210 * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
211
016687f8
AM
2122007-05-11 Alan Modra <amodra@bigpond.net.au>
213
214 * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
215 (enum ppc_elf_plt_type): Move from..
216 * elf32-ppc.c: ..here.
217 (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
218 (struct ppc_elf_link_hash_table): Reorder. Add old_bfd. Delete
219 can_use_new_plt. Make is_vxworks a bitfield.
220 (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
221 (ppc_elf_check_relocs): Update setting of reloc flags. Set old_bfd.
222 (ppc_elf_select_plt_layout): Modify parameters. Use bfd reloc
223 flags to better detect object files needing old bss-style plt.
224 Allow secure plt to be used without rel16 relocs being detected.
225 Warn if secure plt request cannot be allowed.
226
ece5ef60
AM
2272007-05-11 Alan Modra <amodra@bigpond.net.au>
228
229 * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
230 * elf-bfd.h (struct elf_backend_data): Change return type of
231 elf_backend_relocate_section to int.
232 * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
233 R_SPU_PPU64.
234 (spu_elf_bfd_to_reloc_type): Convert new relocs.
235 (spu_elf_count_relocs): New function.
236 (elf_backend_count_relocs): Define.
237 (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
238 R_SPU_PPU64 relocs.
239 * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
240 returns 2.
241 * bfd-in2.h: Regenerate.
242 * libbfd.h: Regenerate.
243
d3753b85
RS
2442007-05-10 Richard Sandiford <richard@codesourcery.com>
245
246 * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
247 for R_ARM_ABS12 relocs.
248 (elf32_arm_finish_dynamic_symbol): Fix the loop that creates
249 non-shared VxWorks PLT entries.
250
ef8c95ad
AM
2512007-05-11 Alan Modra <amodra@bigpond.net.au>
252
253 PR 4454
254 * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
255 (_bfd_elf_discard_section_eh_frame): Handle local syms on
256 personality relocation.
257
8c252fd9
RS
2582007-05-10 Richard Sandiford <richard@codesourcery.com>
259
260 * elf.c (assign_file_positions_for_load_sections): Use p_memsz
261 rather than p_filesz to calculate the LMA of the end of a segment.
262
b186458a
JJ
2632007-05-10 Jakub Jelinek <jakub@redhat.com>
264
265 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
266 processing if symbol is defined in the executable.
267
88571279
AO
2682007-05-10 Alexandre Oliva <aoliva@redhat.com>
269
270 * elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
271 (frvfdpic_elf_discard_info): New.
272 (elf_backend_discard_info): Define for FDPIC.
273
2e6030b9
MS
2742007-05-09 Mark Shinwell <shinwell@codesourcery.com>
275
276 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
277 attempt to scan if the bfd doesn't correspond to an ELF image.
278 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
279
0d4cc892
AO
2802007-05-08 Alexandre Oliva <aoliva@redhat.com>
281
282 * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
283 for which _bfd_elf_section_offset returns -1.
284
d0249648
AM
2852007-05-08 Alan Modra <amodra@bigpond.net.au>
286
287 * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
288 (mark_functions_via_relocs): Likewise.
289
1182cb93
AM
2902007-05-07 Alan Modra <amodra@bigpond.net.au>
291
292 * elflink.c (bfd_elf_final_link): Correct reloc handling for
293 elf_backend_count_relocs.
294 (bfd_elf_discard_info): Print an error if we can't read syms.
295
b16f296e
AM
2962007-05-07 Alan Modra <amodra@bigpond.net.au>
297
298 * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
299 invalid reloc code.
300 (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
301 (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
302 define.
303
7c928300
AM
3042007-05-07 Alan Modra <amodra@bigpond.net.au>
305
306 * elf.c (assign_file_positions_for_load_sections): Don't check
307 core segment.
308
fc66a176
L
3092007-05-04 H.J. Lu <hongjiu.lu@intel.com>
310
311 * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
312 and .rel.dyn aren't present.
313
3410fea8
NC
3142007-05-04 Nick Clifton <nickc@redhat.com>
315
316 * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
317 sections are present examine the indirect sections in an attempt
318 to compute the correct relocation size. If there is any
319 ambiguity, produce an error and refuse to sort.
320
7bdca076
SL
3212007-05-03 Sandra Loosemore <sandra@codesourcery.com>
322
323 * elf32-arm.c (allocate_dynrelocs): Fix typo in comment.
324
22184a77
NC
3252007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr>
326 Nick Clifton <nickc@redhat.com>
327
328 PR gas/3041
329 * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
330 in the same way as relocs against external symbols.
331
627b32bc
AM
3322007-05-02 Alan Modra <amodra@bigpond.net.au>
333
334 * elf.c (assign_file_positions_for_load_sections): Set sh_offset
335 here. Set sh_type to SHT_NOBITS if we won't be allocating
336 file space. Don't bump p_memsz for non-alloc sections. Adjust
337 section-in-segment check.
338 (assign_file_positions_for_non_load_sections): Don't set sh_offset
339 here for sections that have already been handled above.
340
49fa1e15
AM
3412007-04-30 Alan Modra <amodra@bigpond.net.au>
342
343 * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis
344 and emit_stack_syms bitfields.
345 (get_sym_h): Read all symbols if stack analysis will be done.
346 (spu_elf_create_sections): Add stack_analysis and emit_stack_syms
347 params, and stash in hash table.
348 (is_hint): Split off from..
349 (is_branch): ..here. Adjust callers.
350 (spu_elf_size_stubs): Add stack_analysis param. Arrange to read
351 and keep all syms.
352 (write_one_stub): Fix mem leak.
353 (find_function_stack_adjust): New function.
354 (sort_syms_syms, sort_syms_psecs): New vars.
355 (sort_syms): New function.
356 (struct call_info, struct function_info): New.
357 (struct spu_elf_stack_info): New.
358 (alloc_stack_info, maybe_insert_function, func_name): New functions.
359 (is_nop, insns_at_end, check_function_ranges): Likewise.
360 (find_function, insert_callee, mark_functions_via_relocs): Likewise.
361 (pasted_function, interesting_section, discover_functions): Likewise.
362 (mark_non_root, call_graph_traverse, build_call_tree): Likewise.
363 (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise.
364 (bfd_elf32_bfd_final_link): Define.
365 * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field.
366 (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes.
367
9ddf8309
TS
3682007-04-28 Sergey Rogozhkin <rogozhkin@niisi.msk.ru>
369
370 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access
371 memory which we might not own.
372
95147441
BW
3732007-04-27 Bob Wilson <bob.wilson@acm.org>
374
375 * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function.
376 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise.
377 (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local.
378
bcc2cc8e
BW
3792007-04-27 Bob Wilson <bob.wilson@acm.org>
380
381 * elf32-xtensa.c (xtensa_read_table_entries): Step through table
382 contents and relocs in parallel.
4e591bc1 383
f29f96b6
BW
3842007-04-27 Bob Wilson <bob.wilson@acm.org>
385
386 * elf32-xtensa.c (relax_property_section): Remove extra irel increment.
387
2ce18a16
AM
3882007-04-27 Alan Modra <amodra@bigpond.net.au>
389
390 * cpu-rs6000.c: Write Mimi's name in ASCII.
391 * coff-rs6000.c: Likewise.
392 * rs6000-core.c: Likewise.
393
eddc20ad
AM
3942007-04-27 Alan Modra <amodra@bigpond.net.au>
395
396 * sysdep.h: Include config.h first.
397 Many files: Include sysdep.h before bfd.h.
398 * Makefile.am: Run "make dep-am".
399 * Makefile.in: Regenerate.
400
495443d4
AM
4012007-04-25 Alan Modra <amodra@bigpond.net.au>
402
403 * sysdep.h: Revert last change.
404
40b1c6c5
NC
4052007-04-24 Nick Clifton <nickc@redhat.com>
406
407 * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
408 * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
409
64be1553
AM
4102007-04-24 Alan Modra <amodra@bigpond.net.au>
411
412 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
413 eh_frame_hdr table won't be created.
414
d5efd9fc
AM
4152007-04-24 Alan Modra <amodra@bigpond.net.au>
416
417 * acinclude.m4: Include config/stdint.m4.
418 * configure.in: Invoke GCC_HEADER_STDINT.
419 * sysdep.h: Don't include ansidecl.h here.
420 * configure: Regenerate.
421 * config.in: Regenerate.
422 * Makefile.in: Regenerate.
423
9a2e615a
NS
4242007-04-23 Nathan Sidwell <nathan@codesourcery.com>
425
426 * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
427 bfd_mach_mcf_isa_c_emac): New.
428 * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
429 elf_isac_plt_entry, elf_isac_plt_info): New.
430 (elf32_m68k_object_p): Add ISA_C.
431 (elf32_m68k_print_private_bfd_data): Print ISA_C.
432 (elf32_m68k_get_plt_info): Detect ISA_C.
433 * cpu-m68k.c (arch_info): Add ISAC.
434 (m68k_arch_features): Likewise,
435 (bfd_m68k_compatible): ISAs B & C are not compatible.
436
1b0b5b1b
NC
4372007-04-21 Nick Clifton <nickc@redhat.com>
438
439 * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
440 (ecoff_link_add_archive_symbols): Likewise.
441 * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
442 relent.howto.
443 * ieee.c (parse_int): Initialise x.
444 (must_parse_int): Initialise result.
445 (ieee_slurp_external_symbols): Initialise value.
446
bd7803a9
AM
4472007-04-21 Alan Modra <amodra@bigpond.net.au>
448
449 * config.bfd (spu-*-elf): Delete targ_selvecs.
450
964597d0
NC
4512007-04-19 Nick Clifton <nickc@redhat.com>
452
453 * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
454
01e76792
AM
4552007-04-19 Alan Modra <amodra@bigpond.net.au>
456
457 * bfd.c (bfd_demangle): New function.
458 * Makefile.am: Run "make dep-am".
459 * Makefile.in: Regenerate.
460 * bfd-in2.h: Regenerate.
461
ee5c21a0
DJ
4622007-04-18 Matthias Klose <doko@ubuntu.com>
463
464 * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
465 (bfdver.h): Use the date in non-release builds for the soversion.
466 * Makefile.in: Regenerate.
467
fcb93ecf
PB
4682007-04-17 Paul Brook <paul@codesourcery.com>
469
470 * elf.c (_bfd_elf_is_function_type): New function.
471 * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
472 (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
473 is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
474 * elf-bfd.h (elf_backend_data): Add is_function_type.
475 (_bfd_elf_is_function_type): Add prototype.
476 * elfxx-target.h (elf_backend_is_function_type): Add default
477 definition.
478 (elfNN_bed): Add elf_backend_is_function_type.
479 * elf32-arm.c (elf32_arm_is_function_type): New function.
480 (elf_backend_is_function_type): Define.
481
5750dcec
DJ
4822007-04-17 Daniel Jacobowitz <dan@codesourcery.com>
483
484 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
485 DT_MIPS_RLD_MAP before DT_DEBUG again.
486
cfbc9945
SE
4872007-04-14 Steve Ellcey <sje@cup.hp.com>
488
489 * Makefile.am: Add ACLOCAL_AMFLAGS.
490 * configure.in: Change macro call order.
491 * Makefile.in: Regnerate.
492 * doc/Makefile.in: Regenerate.
493 * configure: Regenerate.
494
3fcd97f1
JJ
4952007-04-14 Jakub Jelinek <jakub@redhat.com>
496
497 * elflink.c (bfd_elf_final_link): Don't free symbuf for
498 non-elf input bfds.
499 (bfd_elf_size_dynamic_sections): Don't access elf_section_data
500 for non-elf input bfds.
501
af5978fb
RS
5022007-04-12 Richard Sandiford <richard@codesourcery.com>
503
504 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
505 DT_MIPS_RTLD_MAP for PIEs.
506
9e3313ae
RS
5072007-04-12 Richard Sandiford <richard@codesourcery.com>
508
509 * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
510 when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
511 in a read-only section.
512 (_bfd_mips_elf_check_relocs): Likewise.
513
1d25768e
BW
5142007-04-12 Bob Wilson <bob.wilson@acm.org>
515
516 * elf32-xtensa.c (xtensa_is_insntable_section): New.
517 (xtensa_is_proptable_section): New.
518 (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
519 tables with 12-byte entries, as well as tables with 8-byte entries.
520 Sort the relocations before examining them.
521 (relax_property_section): Use xtensa_is_proptable_section and
522 xtensa_is_littable_section. Rewrite code for combining table entries
523 to be more robust in case of unexpected relocations. Do not set offset
524 of unused relocations to less than zero.
525 (xtensa_is_property_section): Use other functions instead of
526 duplicating section name comparisons.
527 (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
528 (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
4e591bc1 529
e1e5c0b5 5302007-04-12 Bob Wilson <bob.wilson@acm.org>
4e591bc1 531
e1e5c0b5
BW
532 * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
533 from Xtensa property sections.
4e591bc1 534
2c67c5f3
AM
5352007-04-12 Alan Modra <amodra@bigpond.net.au>
536
537 * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
538 is non-NULL before dereferencing.
539
8776bb8a
NS
5402007-04-11 Nathan Sidwell <nathan@codesourcery.com>
541
542 * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
543 relocs too.
544
4a828aab
RH
5452007-04-10 Richard Henderson <rth@redhat.com>
546
547 * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
548 (elf64_alpha_size_got_sections): Remove unused something_changed local.
549 (elf64_alpha_size_plt_section): Return void.
550 (elf64_alpha_size_rela_got_section): Likewise.
4e591bc1 551 (elf64_alpha_relax_section): Only regenerate got+plt if the
4a828aab
RH
552 relax_trip counter has changed.
553
91506736
DJ
5542007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
555
556 * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
557 * doc/Makefile.am (DOCFILES): Add bfdver.texi.
558 (bfdver.texi): New rule.
559 * Makefile.in, doc/Makefile.in: Regenerated.
560
da6bcfca
MT
5612007-04-03 Matt Thomas <matt@netbsd.org>
562
4e591bc1 563 * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
da6bcfca
MT
564 in a shared object if it is not in a CODE section or if it is against
565 a section symbol. This allows DWARF2 to use pcrel format.
566
9267588c
L
5672007-04-05 H.J. Lu <hongjiu.lu@intel.com>
568
569 PR ld/4304
570 * elflink.c (bfd_elf_final_link): Call einfo callback in
571 bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
572 warning.
573
c1b2796f
AM
5742007-04-05 Alan Modra <amodra@bigpond.net.au>
575
576 * elf32-spu.c (spu_elf_output_symbol_hook): New function.
577 (elf_backend_link_output_symbol_hook): Define.
578
970ccc77
NC
5792007-04-02 Nick Clifton <nickc@redhat.com>
580
581 PR binutils/4292
582 * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
583 targets as 64-bit values, even if running on a 64-bit host.
584 * coffgen.c (coff_print_symbol): Likewise.
585
1783205a
NC
5862007-03-29 Nick Clifton <nickc@redhat.com>
587
588 PR binutils/4110
589 * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
590 (setup_group): Use it. Report corrupt group section headers.
591 (bfd_section_from_shdr): Use new macro. Replace constant 4 with
592 GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
593 (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
594
2ce859a1
AM
5952007-03-29 Alan Modra <amodra@bigpond.net.au>
596
597 PR ld/4267
947844a3
AM
598 * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
599 for rel->r_info values.
600 (bfd_elf_perform_complex_relocation): Likewise.
2ce859a1
AM
601 * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
602 unused entries. Don't clear plt.plist in loop.
603
39817122
RS
6042007-03-28 Richard Sandiford <richard@codesourcery.com>
605
606 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
607 * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
608 Merge into...
609 (sparc_elf_append_rela): ...this new function.
610 (SPARC_ELF_APPEND_RELA): Delete.
611 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
612 the deleted append_rela field.
613 (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
614 instead of SPARC_ELF_APPEND_RELA.
615 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
616 elf_size_info structure to find the size of a RELA entry and
617 the associated swap-out function.
618 (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
619 (sparc_finish_dyn): ...this new function.
620 (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
621
4ecceb71
RS
6222007-03-28 Richard Sandiford <richard@codesourcery.com>
623 Phil Edwards <phil@codesourcery.com>
624
625 * doc/bfd.texinfo: Put the contents after the title page rather
626 than at the end of the document.
627
d4d2b80b
AS
6282007-03-27 Andreas Schwab <schwab@suse.de>
629
630 * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
631
831480e9 6322007-03-26 H.J. Lu <hongjiu.lu@intel.com>
5bd8253d
L
633
634 * configure: Regenerated.
635
f4b39977
AM
6362007-03-26 Alan Modra <amodra@bigpond.net.au>
637
638 * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
639 (allocate_spuear_stubs): New function.
640 (spu_elf_size_stubs): Call allocate_spuear_stubs.
641
157090f7
AM
6422007-03-26 Alan Modra <amodra@bigpond.net.au>
643
644 * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
645 * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
646 (MY (bfd_reloc_name_lookup)): New function.
647 * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
648 * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
649 (MY_bfd_reloc_name_lookup): Define.
650 * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
651 (MY_bfd_reloc_name_lookup): Define.
652 * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
653 (NAME (aout, reloc_name_lookup)): New function.
654 * bout.c (b_out_bfd_reloc_name_lookup): New function.
655 * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
656 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
657 * coff-arm.c (coff_arm_reloc_name_lookup): New function.
658 (coff_bfd_reloc_name_lookup): Define.
659 * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
660 (coff_i386_reloc_name_lookup): New function.
661 * coff-i860.c (coff_i860_reloc_name_lookup): New function.
662 (coff_bfd_reloc_name_lookup): Define.
663 * coff-i960.c (coff_i960_reloc_name_lookup): New function.
664 (coff_bfd_reloc_name_lookup): Define.
665 * coff-m68k.c (m68k_reloc_name_lookup): New function.
666 (coff_bfd_reloc_name_lookup): Define.
667 * coff-maxq.c (maxq_reloc_name_lookup): New function.
668 (coff_bfd_reloc_name_lookup): Define.
669 * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
670 (coff_bfd_reloc_name_lookup): Define.
671 * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
672 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
673 * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
674 (coff_bfd_reloc_name_lookup): Define.
675 * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
676 (_bfd_xcoff_reloc_name_lookup): New function.
677 (rs6000coff_vec, pmac_xcoff_vec): Init new field.
678 * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
679 (sh_coff_reloc_name_lookup): New function.
680 * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
681 (coff_bfd_reloc_name_lookup): Define.
682 * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
683 (tic30_coff_reloc_name_lookup): New function.
684 * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
685 (tic4x_coff_reloc_name_lookup): New function.
686 * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
687 (tic54x_coff_reloc_name_lookup): New function.
688 * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
689 (coff_amd64_reloc_name_lookup): New function.
690 * coff-z80.c (coff_z80_reloc_name_lookup): New function.
691 (coff_bfd_reloc_name_lookup): Define.
692 * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
693 (coff_bfd_reloc_name_lookup): Define.
694 * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
695 (xcoff64_reloc_name_lookup): New function.
696 (rs6000coff64_vec, aix5coff64_vec): Init new field.
697 * coffcode.h (coff_bfd_reloc_name_lookup): Define.
698 * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
699 * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
700 * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
701 * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
702 * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
703 (bfd_elf32_bfd_reloc_name_lookup): Define.
704 * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
705 * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
706 (bfd_elf32_bfd_reloc_name_lookup): Define.
707 * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
708 (bfd_elf32_bfd_reloc_name_lookup): Define.
709 * elf32-cris.c (cris_reloc_name_lookup): New function.
710 (bfd_elf32_bfd_reloc_name_lookup): Define.
711 * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
712 (bfd_elf32_bfd_reloc_name_lookup): Define.
713 * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
714 * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
715 * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
716 (bfd_elf32_bfd_reloc_name_lookup): Define.
717 * elf32-fr30.c (fr30_reloc_name_lookup): New function.
718 (bfd_elf32_bfd_reloc_name_lookup): Define.
719 * elf32-frv.c (frv_reloc_name_lookup): New function.
720 (bfd_elf32_bfd_reloc_name_lookup): Define.
721 * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
722 * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
723 (bfd_elf32_bfd_reloc_name_lookup): Define.
724 * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
725 * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
726 (bfd_elf32_bfd_reloc_name_lookup): Define.
727 * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
728 (bfd_elf32_bfd_reloc_name_lookup): Define.
729 * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
730 (bfd_elf32_bfd_reloc_name_lookup): Define.
731 * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
732 (bfd_elf32_bfd_reloc_name_lookup): Define.
733 * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
734 (bfd_elf32_bfd_reloc_name_lookup): Define.
735 * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
736 (bfd_elf32_bfd_reloc_name_lookup): Define.
737 * elf32-m32c.c (m32c_reloc_name_lookup): New function.
738 (bfd_elf32_bfd_reloc_name_lookup): Define.
739 * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
740 * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
741 * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
742 * elf32-m68k.c (reloc_name_lookup): New function.
743 (bfd_elf32_bfd_reloc_name_lookup): Define.
744 * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
745 * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
746 (bfd_elf32_bfd_reloc_name_lookup): Define.
747 * elf32-mep.c (mep_reloc_name_lookup): New function.
748 (bfd_elf32_bfd_reloc_name_lookup): Define.
749 * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
750 (mips_vxworks_bfd_reloc_name_lookup): Likewise.
751 (bfd_elf32_bfd_reloc_name_lookup): Define.
752 * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
753 * elf32-mt.c (mt_reloc_name_lookup): New function.
754 (bfd_elf32_bfd_reloc_name_lookup): Define.
755 * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
756 (bfd_elf32_bfd_reloc_name_lookup): Define.
757 * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
758 * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
759 (bfd_elf32_bfd_reloc_name_lookup): Define.
760 * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
761 (bfd_elf32_bfd_reloc_name_lookup): Define.
762 * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
763 (bfd_elf32_bfd_reloc_name_lookup): Define.
764 * elf32-score.c (elf32_score_reloc_name_lookup): New function.
765 (bfd_elf32_bfd_reloc_name_lookup): Define.
766 * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
767 (bfd_elf32_bfd_reloc_name_lookup): Define.
768 * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
769 * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
770 (bfd_elf32_bfd_reloc_name_lookup): Define.
771 * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
772 (bfd_elf32_bfd_reloc_name_lookup): Define.
773 * elf32-vax.c (reloc_name_lookup): New function.
774 (bfd_elf32_bfd_reloc_name_lookup): Define.
775 * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
776 (bfd_elf32_bfd_reloc_name_lookup): Define.
777 * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
778 (bfd_elf32_bfd_reloc_name_lookup): Define.
779 * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
780 (bfd_elf32_bfd_reloc_name_lookup): Define.
781 * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
782 (bfd_elf64_bfd_reloc_name_lookup): Define.
783 * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
784 * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
785 * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
786 * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
787 * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
788 (bfd_elf64_bfd_reloc_name_lookup): Define.
789 * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
790 (bfd_elf64_bfd_reloc_name_lookup): Define.
791 * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
792 (bfd_elf64_bfd_reloc_name_lookup): Define.
793 * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
794 * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
795 (bfd_elf64_bfd_reloc_name_lookup): Define.
796 * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
797 * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
798 (bfd_elfNN_bfd_reloc_name_lookup): Define.
799 * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
800 * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
801 * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
802 * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
803 * ieee.c (ieee_bfd_reloc_name_lookup): Define.
804 * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
805 * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
806 * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
807 (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
808 (MY(reloc_name_lookup)): New function.
809 * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
810 * oasys.c (oasys_bfd_reloc_name_lookup): Define.
811 * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
812 * pe-mips.c (coff_mips_reloc_name_lookup): New function.
813 (coff_bfd_reloc_name_lookup): Define.
814 * reloc.c (bfd_reloc_name_lookup): New function.
815 * riscix.c (riscix_reloc_name_lookup): New function.
816 (MY_bfd_reloc_name_lookup): Define.
817 * som.c (som_bfd_reloc_name_lookup): New function.
818 * targets.c (struct bfd_target): Add reloc_name_lookup.
819 (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
820 * versados.c (versados_bfd_reloc_name_lookup): Define.
821 * vms.c (vms_bfd_reloc_name_lookup): New function.
822 * bfd-in2.h: Regenerate.
823 * libbfd.h: Regenerate.
824
2d82d84d
TS
8252007-03-26 Thiemo Seufer <ths@mips.com>
826
a5cb1fd7 827 PR ld/4208
2d82d84d
TS
828 * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
829 matching relocation is found.
830 (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
831
831480e9 8322007-03-23 H.J. Lu <hongjiu.lu@intel.com>
1a27db7d
L
833
834 * configure: Regenerated.
835
a1ac8190
JM
8362007-03-23 Joseph Myers <joseph@codesourcery.com>
837
838 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
839 * configure: Regenerate.
840
aa7a0635
AM
8412007-03-23 Alan Modra <amodra@bigpond.net.au>
842
843 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
844 Remove input_sec param. Adjust all calls.
845 (write_one_stub): Adjust stub symbol.
846 (needs_ovl_stub): New function, extracted from..
847 (spu_elf_size_stubs): ..here.
848 (spu_elf_relocate_section): Use needs_ovl_stub.
849
e49e529d
JM
8502007-03-22 Joseph Myers <joseph@codesourcery.com>
851
852 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
853 if nonempty.
854 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
855 * Makefile.in, configure, doc/Makefile.in: Regenerate.
856
831480e9 8572007-03-22 H.J. Lu <hongjiu.lu@intel.com>
50572669
L
858
859 PR ld/4210
860 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
861 address and virtual size of the last section for the image
862 size.
863
0920dee7
L
8642007-03-22 H.J. Lu <hongjiu.lu@intel.com>
865
866 PR ld/4007
867 * elf.c (assign_file_positions_for_load_sections): Check if
868 all sections are in the segment.
869
831480e9 8702007-03-20 H.J. Lu <hongjiu.lu@intel.com>
749b8d9d
L
871
872 PR ld/4208
873 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
874 matching LO16 relocation for HI16 relocation.
875
27e55c4d
PB
8762007-03-20 Paul Brook <paul@codesourcery.com>
877
878 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
879 * bfd-in2.h: Regenerate.
880 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
881 (record_arm_to_thumb_glue): Use globals->pic_veneer.
882 (elf32_arm_create_thumb_stub): Ditto.
883 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
884
bf21ed78
MS
8852007-03-18 Mark Shinwell <shinwell@codesourcery.com>
886
887 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
888 argument and extra last argument.
889 * bfd-in2.h: Regenerate.
890 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
891 member.
892 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
893 extra last argument. Set no_enum_size_warning appropriately.
894 (elf32_arm_merge_eabi_attributes): Improve enum sizes
895 diagnostic, suppressing it when no_enum_size_warning dictates.
896
5f6999aa
NC
8972007-03-20 Nick Clifton <nickc@redhat.com>
898
899 PR binutils/3535
900 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
901 specific conditions that need the program headers to be
902 rewritten.
903
831480e9 9042007-03-19 H.J. Lu <hongjiu.lu@intel.com>
d13c9dc6
L
905
906 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
907 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
908 SizeOfInitializedData, SizeOfUninitializedData,
909 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
910 extra PE a.out header.
911 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
912 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
913 defined.
914 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
915 defined.
916 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
917 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
918 SizeOfInitializedData, SizeOfUninitializedData,
919 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
920 extra PE a.out header.
921
831480e9 9222007-03-18 H.J. Lu <hongjiu.lu@intel.com>
739bb57e
L
923
924 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
925 only if BFD64 is defined.
926
5384511f
AM
9272007-03-17 Alan Modra <amodra@bigpond.net.au>
928
929 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
930 on setjmp calls.
931
187b3d5d
L
9322007-03-15 H.J. Lu <hongjiu.lu@intel.com>
933
934 * doc/Makefile.in: Regenerated.
935
c428fa83
L
9362007-03-15 H.J. Lu <hongjiu.lu@intel.com>
937
938 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
939 create doc/bfdver.texi.
940 * Makefile.in: Regenerated.
941
942 * configure.in (--with-bugurl): New option.
943 * configure: Regenerated.
944
945 * version.h (REPORT_BUGS_TO): New.
946
d1036acb
L
9472007-03-13 H.J. Lu <hongjiu.lu@intel.com>
948
949 PR binutils/3826
950 * elf-bfd.h (elf_backend_data): Add elf_osabi.
951 (_bfd_elf_set_osabi): New.
952
953 * elf.c (_bfd_elf_set_osabi): New.
954
955 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
956 (elf_backend_post_process_headers): Defined with
957 _bfd_elf_set_osabi.
958 (ELF_OSABI): Properly defined for each target.
959
960 * elf32-i370.c (i370_elf_post_process_headers): Removed.
961 (ELF_OSABI): Defined.
962 (elf_backend_post_process_headers): Defined with
963 _bfd_elf_set_osabi.
964
965 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
966 freebsd.
967 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
968
969 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
970 (ELF_OSABI): Defined.
971 (elf_backend_post_process_headers): Defined with
972 _bfd_elf_set_osabi.
973
974 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
975 freebsd.
976 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
977 elf_osabi.
978
979 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
980 with elf_osabi.
981 (ELF_OSABI): Properly defined for each target.
982 (elf_backend_post_process_headers): Defined with
983 _bfd_elf_set_osabi for Linux.
984
985 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
986 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
987 (elf_backend_post_process_headers): Defined with
988 _bfd_elf_set_osabi.
989
990 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
991 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
992 (elf_backend_post_process_headers): Defined with
993 _bfd_elf_set_osabi.
994
995 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
996 with any ELF target of the compatible machine for which we do not
997 have a specific backend.
998
999 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
1000 with elf_osabi.
1001
1002 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
1003 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
1004
d4c87fc1
AM
10052007-03-08 Alan Modra <amodra@bigpond.net.au>
1006
1007 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
1008 V850_OTHER_* bits.
1009
9c6fc49d
AM
10102007-03-08 Alan Modra <amodra@bigpond.net.au>
1011
1012 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
1013 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
1014 Run "make dep-am".
1015 * Makefile.in: Regenerate.
1016 * po/SRC-POTFILES.in: Regenerate.
1017
faed74d6
L
10182007-03-07 H.J. Lu <hongjiu.lu@intel.com>
1019
1020 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
1021 (x86_64-*-kfreebsd*-gnu): Likewise.
1022 (x86_64-*-netbsd*): Likewise.
1023 (x86_64-*-openbsd*): Likewise.
1024 (x86_64-*-linux-*): Likewise.
1025
1026 * configure.in: Support bfd_efi_app_x86_64_vec.
1027 * configure: Regenerated.
1028
1029 * efi-app-x86_64.c: New file.
1030
1031 * targets.c (bfd_efi_app_x86_64_vec): New.
1032 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
1033
15344ad7
L
10342007-03-07 Kai Tietz <kai.tietz@onevision.com>
1035
1036 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
1037 const for type reloc_howto_type.
1038
ab96bf03
AM
10392007-03-07 Alan Modra <amodra@bigpond.net.au>
1040
1041 PR 3958
1042 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
1043 (elf_discarded_section): Move..
1044 * bfd-in.h: ..to here.
1045 * bfd-in2.h: Regenerate.
1046 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
1047 from discarded sections before relocate_section has done its job.
1048 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
1049 relocs against symbols from discarded sections.
1050 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
1051 SECREL32.
1052 (elf_hppa_relocate_section): Handle relocatable link after setting
1053 sec, sym, h etc. for final link. Squash error messages for
1054 relocatable link. Clear section contents for relocs against
1055 symbols in discarded sections, and zero reloc. Remove existing
1056 zero r_symndx code.
1057 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
1058 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1059 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1060 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1061 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
1062 (bfin_relocate_section): Likewise.
1063 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1064 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1065 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1066 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1067 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1068 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1069 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1070 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1071 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1072 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1073 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1074 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1075 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1076 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1077 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1078 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1079 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1080 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1081 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1082 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1083 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1084 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1085 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1086 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1087 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
1088 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1089 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1090 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1091 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1092 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1093 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1094 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1095 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1096 (elf64_alpha_relocate_section): Likewise.
1097 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1098 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1099 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1100 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1101 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1102 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1103 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1104 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1105
1106 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
1107 symbols for relocatable link. Don't use always-zero st_value.
1108 (elf_backend_rela_normal): Don't define.
1109 * elf32-bfin.c (bfinfdpic_relocate_section): Use
1110 RELOC_FOR_GLOBAL_SYMBOL.
1111 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1112 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
1113 section symbol adjustments with same for relocatable link.
1114 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1115 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
1116 (elf32_m68hc11_check_relocs): ..to here.
1117 * elf32-score.c (score_elf_final_link_relocate): Remove zero
1118 r_symndx code.
1119 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1120
0e922b77
AM
11212007-03-07 Alan Modra <amodra@bigpond.net.au>
1122
1123 PR 4144
1124 * elf.c (assign_file_positions_for_load_sections): Don't
1125 adjust p_memsz for !SEC_LOAD section vma modulo page size.
1126 Instead, use the same lma based adjustment for SEC_LOAD
1127 sections.
1128
25c6282a
BW
11292007-03-01 Bob Wilson <bob.wilson@acm.org>
1130
1131 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
1132 (find_relaxable_sections): Do not increment src_count for unknown
1133 opcodes. Decode only once instead of calling is_l32r_relocation.
1134 (compute_text_actions): Remove unused no_insn_move flag. Assert that
1135 src_next matches src_count in relax_info.
1136
066c2a57
JM
11372007-03-01 Joseph Myers <joseph@codesourcery.com>
1138
1139 * Makefile.am (bfdver.h): Use "." not " " between version number
1140 and date.
1141 * Makefile.in: Regenerate.
1142 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
1143 * configure: Regenerate.
1144
ed6ba298
NS
11452007-02-28 Nathan Sidwell <nathan@codesourcery.com>
1146
1147 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
1148
7a8757b3
AM
11492007-02-27 Alan Modra <amodra@bigpond.net.au>
1150
1151 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
1152 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
1153
024b2372
CD
11542007-02-23 Carlos O'Donell <carlos@codesourcery.com>
1155
1156 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
1157 DWARF even with 64-bit addresses.
1158 (_bfd_dwarf2_find_nearest_line): Likewise.
1159
cb3ff1e5
NC
11602007-02-23 Nick Clifton <nickc@redhat.com>
1161
1162 PR binutils/3535
1163 * elf.c (copy_private_bfd_data): Always rewrite the program
1164 headers when a Solaris interpreter segment is involved.
1165
6a5bb875
PB
11662007-02-22 Paul Brook <paul@codesourcery.com>
1167
1168 * elflink.c (gc_mark_hook_fn): Remove.
1169 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
1170 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
1171 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
1172 (elf_backend_data): Add gc_mark_extra_sections.
1173 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
1174 definition.
1175 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
1176 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
1177 (elf_backend_gc_mark_extra_sections): Define.
1178
2889e75b
NC
11792007-02-21 Nick Clifton <nickc@redhat.com>
1180
1181 * elf.c (_bfd_elf_map_sections_to_segments): If the
1182 override_segment_assignment callback is defined then call it.
1183
78859468
AM
11842007-02-21 Alan Modra <amodra@bigpond.net.au>
1185
1186 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
1187
ae0d2616
TS
11882007-02-19 Thiemo Seufer <ths@mips.com>
1189
1190 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
1191 translation marker from untranslatable strings.
1192
6bfdb61b
AM
11932007-02-19 Alan Modra <amodra@bigpond.net.au>
1194
1195 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
1196 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
1197 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
1198 (elfNN_bed): Init new field.
1199 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
1200
92f01d61
JM
12012007-02-17 Mark Mitchell <mark@codesourcery.com>
1202 Nathan Sidwell <nathan@codesourcery.com>
1203 Vladimir Prus <vladimir@codesourcery.com
1204 Joseph Myers <joseph@codesourcery.com>
1205
1206 * configure.in (--with-pkgversion): New option.
1207 * configure: Regenerate.
1208 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
1209 * Makefile.in: Regenerate.
1210 * version.h (BFD_VERSION_STRING): Define using
1211 @bfd_version_package@.
1212
c0e3f241
CD
12132007-02-16 Carlos O'Donell <carlos@codesourcery.com>
1214
1215 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
1216 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
1217 and EF_MIPS_UCODE.
1218
72f6ea61
AM
12192007-02-15 Alan Modra <amodra@bigpond.net.au>
1220
1221 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
1222 declare.
1223 (_bfd_norelocs_canonicalize_reloc): Likewise.
1224 * libbfd.h: Regenerate.
1225 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
1226 (_bfd_norelocs_canonicalize_reloc): Likewise.
1227 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
1228 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
1229 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
1230 * ihex.c: Similarly.
1231 * mach-o-target.c: Similarly.
1232 * mach-o.c: Similarly.
1233 * mmo.c: Similarly.
1234 * pef.c: Similarly.
1235 * ppcboot.c: Similarly.
1236 * srec.c: Similarly.
1237 * xsym.c: Similarly.
1238
fab4a87f
L
12392007-02-14 H.J. Lu <hongjiu.lu@intel.com>
1240
1241 PR ld/3953
1242 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
1243 when adding default symbol.
1244
e4e0193e
AM
12452007-02-13 Alan Modra <amodra@bigpond.net.au>
1246
1247 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
1248 for branch lookup table.
1249
84f5d08e
AM
12502007-02-12 Alan Modra <amodra@bigpond.net.au>
1251
1252 * elf64-ppc.c (create_linkage_sections): Don't create
1253 .rela.rodata.brlt for --emit-relocs.
1254 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
1255 (ppc_size_one_stub): Count them. Simplify test of stub type
1256 when counting stub relocs. Set SEC_RELOC too.
1257 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
1258 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
1259
4aac632e
AM
12602007-02-12 Alan Modra <amodra@bigpond.net.au>
1261
1262 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
1263 with a zero symbol index.
1264
8da3dbc5
AM
12652007-02-12 Alan Modra <amodra@bigpond.net.au>
1266
1267 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
1268
b31847af
DB
12692007-02-05 Dave Brolley <brolley@redhat.com>
1270 Stan Cox <scox@redhat.com>
1271
1272 PR ld/3972
1273 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
1274
722b0ff7 12752007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
1276 Richard Sandiford <rsandifo@redhat.com>
1277 Stan Cox <scox@redhat.com>
1278 Nick Clifton <nickc@redhat.com>
1279 DJ Delorie <dj@redhat.com>
1280 Frank Ch. Eigler <fche@redhat.com>
1281 Ben Elliston <bje@redhat.com>
1282 Richard Henderson <rth@redhat.com>
1283
1284 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
1285 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
1286 (BFD32_BACKENDS): Add elf32-mep.lo.
1287 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
1288 (cpu-mep.lo,elf32-mep.lo): New targets.
1289 * archures.c (bfd_arch_mep): New enumerator.
1290 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
1291 (bfd_mep_arch): New external variable.
1292 (bfd_archures_list): Add bfd_mep_arch.
1293 * config.bfd: Support mep-*-elf.
1294 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
1295 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
1296 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
1297 declarations.
1298 (_bfd_target_vector): Add bfd_elf32_mep_vec and
1299 bfd_elf32_mep_little_vec.
722b0ff7
DB
1300 * mep-relocs.pl: New file.
1301 * cpu-mep.c: New file.
1302 * elf32-mep.c: New file.
1303 * bfd-in2.h: Regenerate.
e382d174 1304 * po/POTFILES.in: Regenerate.
722b0ff7
DB
1305 * libbfd.h: Regenerate.
1306 * Makefile.in: Regenerate.
1307 * configure: Regenerate.
1308
d9352518
DB
13092007-02-05 Dave Brolley <brolley@redhat.com>
1310
1311 * elflink.c (evaluate_complex_relocation_symbols): Check for
1312 STT_SRELC for global symbols.
1313 (perform_complex_relocations): Renamed to
1314 perform_complex_relocation and now examines only one relocation.
1315 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 1316 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
1317 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
1318 (OD,OS,OU): #undefs corrected to N, S and U repectively.
1319 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
1320 (complex_reloc_installation_howto): Removed.
1321 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
1322 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
1323
d9352518 13242007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
1325 Richard Sandiford <rsandifo@redhat.com>
1326 DJ Delorie <dj@redhat.com>
1327 Graydon Hoare <graydon@redhat.com>
1328 Nick Clifton <nickc@cambridge.redhat.com>
1329 Jeff Holcomb <jeffh@redhat.com>
1330 Frank Ch. Eigler <fche@redhat.com>
1331
1332 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
1333 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
1334 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
1335 * elflink.c (set_symbolValue): New static function.
d9352518
DB
1336 (resolve_symbol): Likewise.
1337 (resolve_section): Likewise.
1338 (undefined_reference): Likewise.
1339 (eval_symbol): Likewise.
1340 (evaluate_complex_relocation_symbols): Likewise.
1341 (put_value): Likewise.
1342 (get_value): Likewise.
e382d174
DB
1343 (decode_complex_addend):
1344 (bfd_elf_perform_complex_relocation): New function.
1345 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
1346 * reloc.c (BFD_RELOC_RELC): New relocation number.
1347 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 1348
f1ab2340 13492007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 1350
f1ab2340
BW
1351 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
1352 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
1353 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
1354 (elf_xtensa_allocate_got_size): Replace these with...
1355 (elf_xtensa_allocate_dynrelocs): ...this new function.
1356 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 1357
e5f131d1 13582007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 1359
e5f131d1
BW
1360 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
1361 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
1362 Set src_mask to zero.
1363 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
1364 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 1365
4608f3d9
BW
13662007-02-02 Bob Wilson <bob.wilson@acm.org>
1367
1368 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
1369 (elf_xtensa_dynamic_symbol_p): ...this.
1370
f0e6fdb2
BW
13712007-02-02 Bob Wilson <bob.wilson@acm.org>
1372
1373 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
1374 (struct elf_xtensa_link_hash_table): New.
1375 (elf_xtensa_hash_table): New.
1376 (elf_xtensa_link_hash_table_create): New.
1377 (elf_xtensa_check_relocs): Update plt_reloc_count references.
1378 Update arguments to add_extra_plt_sections.
1379 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
1380 table. Update for plt_reloc_count and add_extra_plt_sections.
1381 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
1382 argument with link info. Update calls to elf_xtensa_get_plt_section
1383 and elf_xtensa_get_gotplt_section.
1384 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
1385 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
1386 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
1387 (relax_property_section): Get sections from the hash table and update
1388 function calls.
1389 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
1390 dynobj argument with link info. Get sections for first plt chunk from
1391 the hash table.
1392 (bfd_elf32_bfd_link_hash_table_create): Define.
1393
c15f73f9
JJ
13942007-02-02 Jakub Jelinek <jakub@redhat.com>
1395
1396 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
1397 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
1398 (struct elf_symbol): Change first member into union.
1399 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
1400 internal syms. Only compare st_shndx fields.
1401 (elf_create_symbuf): New function.
1402 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
1403 for bfds, use a binary search, otherwise don't qsort symbols
1404 unnecessarily only to select which symbols are for the particular
1405 shndx.
1406
effdf42a
NC
14072007-02-01 Nick Clifton <nickc@redhat.com>
1408
1409 PR ld/3852
1410 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
1411 in the elf_link_hash_table structure.
1412
183e98be
AM
14132007-02-01 Alan Modra <amodra@bigpond.net.au>
1414
1415 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
1416 * elfxx-target.h (elf_backend_write_core_note): Define and use.
1417 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
1418 32-bit core note on 64-bit target.
1419 (elfcore_write_prstatus): Likewise.
1420 (elfcore_write_lwpstatus): Make note_name const.
1421 (elfcore_write_prfpreg): Likewise.
1422 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
1423 target.
1424 * elf32-ppc.c (ppc_elf_write_core_note): New function.
1425 (elf_backend_write_core_note): Define.
1426 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
1427 (elf_backend_write_core_note): Define.
1428
fc523535 14292007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
1430
1431 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
1432 (elf32_bed): Defined for elf32-us-cris.
1433
1434 * elf64-sh64.c (elf64_bed): Defined for Linux.
1435 (INCLUDED_TARGET_FILE): Removed.
1436
1437 * elfxx-target.h (elfNN_bed): Always define. Don't check
1438 INCLUDED_TARGET_FILE.
1439
c9b57b7e
DD
14402007-01-31 DJ Delorie <dj@redhat.com>
1441
1442 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
1443 message for dangerous relocs, special case the common user error.
1444
53020534
L
14452007-01-30 H.J. Lu <hongjiu.lu@intel.com>
1446
1447 * elf.c (copy_elf_program_header): Start from the first section
1448 in a segment and stop when all sections in a segment are
1449 accounted for.
1450
c7b8f16e
JB
14512007-01-29 Julian Brown <julian@codesourcery.com>
1452
1453 * bfd-in2.h: Regenerate.
1454 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
1455 instruction scanning should be done.
1456 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
1457 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
1458 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
1459 prototype.
1460 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
1461 argument.
1462 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
1463 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
1464 (elf32_vfp11_erratum_type): New enum.
1465 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
1466 veneers.
1467 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
1468 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
1469 vfp11_fix and num_vfp11_fixes fields.
1470 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
1471 vfp11_erratum_glue_size, num_vfp11_fixes fields.
1472 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
1473 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
1474 glue section.
1475 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
1476 to a section's map.
1477 (record_vfp11_erratum_veneer): Create a single veneer, and its
1478 associated symbols.
1479 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
1480 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
1481 BFDs.
1482 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
1483 required.
1484 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
1485 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
1486 (bfd_arm_vfp11_write_mask): Update write mask according to coded
1487 register number.
1488 (bfd_arm_vfp11_antidependency): New function.
1489 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
1490 (elf32_arm_compare_mapping): Declare.
1491 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
1492 BFD for potential erratum-triggering insns. Record results.
1493 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
1494 and branches to veneers have been placed in virtual memory after
1495 layout.
1496 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
1497 hash table.
1498 (elf32_arm_output_symbol_hook): Remove.
1499 (elf32_arm_write_section): Output veneers, and branches to veneers.
1500 Use maps from input sections, not output sections, for code
1501 byte-swapping.
1502 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
1503 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
1504 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
1505 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
1506
15072007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
1508
1509 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 1510 (INCLUDED_TARGET_FILE): Removed.
83d1651b 1511
914dfb0f
DA
15122007-01-27 Mike Frysinger <vapier@gentoo.org>
1513
1514 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
1515 (INCLUDED_TARGET_FILE): Remove.
1516
78eba9b6
DD
15172007-01-25 DJ Delorie <dj@redhat.com>
1518
1519 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
1520 R_M32C_16 or R_M32C_24 relocs.
1521
64ee10b6
NC
15222007-01-25 Nick Clifton <nickc@redhat.com>
1523
1524 PR binutils/3874
1525 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
1526 hash table was created by elf32_avr_link_hash_table_create before
1527 using it.
1528 (elf32_avr_link_hash_newfunc): New function. Just pass the call
1529 through to _bfd_elf_link_hash_newfunc.
1530 (elf32_avr_link_hash_table_create): Use
1531 elf32_avr_link_hash_newfunc instead of
1532 _bfd_elf_link_hash_newfunc.
1533 (elf32_avr_relocate_section): Check for the hash table pointer
1534 being NULL.
1535 (elf32_avr_relax_section, avr_build_one_stub,
1536 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
1537 elf32_avr_build_stubs): Likewise.
1538
40b36307
L
15392007-01-16 H.J. Lu <hongjiu.lu@intel.com>
1540
1541 PR ld/3831
1542 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
1543 argument, Elf_Internal_Sym *.
1544
1545 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
1546 symbol dynamic if info->dynamic_data is TRUE.
1547 (bfd_elf_record_link_assignment): Updated call to
1548 bfd_elf_record_link_assignment.
1549 (_bfd_elf_merge_symbol): Likewise. Always call
1550 bfd_elf_link_mark_dynamic_symbol.
1551
fc523535 15522007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
1553
1554 * Makefile.am (BFD_LIBS): Removed.
1555 * Makefile.in: Regenerated.
1556
fc523535 15572007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
1558
1559 PR binutils/3631
1560 * Makefile.am (OFILES): Add @bfd64_libs@.
1561 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
1562 * Makefile.in: Regenerated.
1563
1564 * configure.in (bfd_libs): Replaced by ...
1565 (bfd64_libs): This.
1566 * configure: Regenerated.
1567
59e0647f
NS
15682007-01-11 Nathan Sidwell <nathan@codesourcery.com>
1569
1570 * elf.c (assign_file_positions_for_load_sections): We can
1571 require fewer phdrs than expected.
1572
3bdcfdf4
KH
15732007-01-08 Kazu Hirata <kazu@codesourcery.com>
1574
1575 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
1576 * bfd-in2.h: Regenerate.
1577 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
1578 bfd_mach_cpu32_fido.
1579 (m68k_arch_features): Use fido_a instead of cpu32.
1580 (bfd_m68k_compatible): Reject the combination of Fido and
1581 ColdFire. Accept the combination of CPU32 and Fido with a
1582 warning.
1583 * elf32-m68k.c (elf32_m68k_object_p,
1584 elf32_m68k_merge_private_bfd_data,
1585 elf32_m68k_print_private_bfd_data): Treat Fido as an
1586 architecture by itself.
1587
42037fe5
NC
15882007-01-08 Kai Tietz <kai.tietz@onevision.com>
1589
1590 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
1591
ebe8b991
JJ
15922007-01-05 Jakub Jelinek <jakub@redhat.com>
1593
1594 * texhex.c (first_phase): Don't fall through into the default
1595 case.
1596 (pass_over): Replace abort () calls with return FALSE. Fix
1597 buffer overflow.
1598
b327f31f
AM
15992007-01-04 Jie Zhang <jie.zhang@analog.com>
1600
1601 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
1602 SEC_EXCLUDE on zero size .eh_frame.
1603
10a2343e 1604For older changes see ChangeLog-2006
56882138
AM
1605\f
1606Local Variables:
1607mode: change-log
1608left-margin: 8
1609fill-column: 74
1610version-control: never
1611End: