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