1 2005-04-18 Nick Clifton <nickc@redhat.com>
3 * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning
4 assigning a value to return_value.
6 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
9 * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
12 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
15 * elf.c (setup_group): Properly handle zero group count.
17 2005-04-17 Mark Kettenis <kettenis@gnu.org>
19 * som.c (hppa_som_reloc, som_mkobject, som_is_space)
20 (som_is_subspace, compare_subspaces, som_compute_checksum)
21 (som_build_and_write_symbol_table, som_slurp_symbol_table): New
23 (hppa_som_reloc, compare_syms, compare_subspaces)
24 (som_print_symbol, som_get_section_contents)
25 (som_set_section_contents): Remove space after 'void *'.
26 (som_bfd_print_private_bfd_data): Use %lx to print longs.
27 (som_bfd_merge_private_bfd_data)
28 (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
31 2004-04-15 Julian Brown <julian@codesourcery.com>
33 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
34 * bfd-in2.h: Regenerate.
35 * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'.
36 (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx.
37 (bfd_elf32_arm_set_target_relocs): Handle use_blx.
38 (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22
39 relocations if requested to.
40 (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on
41 use_blx rather than symbian_p.
42 (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if
44 (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default
47 2005-04-15 Nick Clifton <nickc@redhat.com>
49 * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
52 2005-04-15 Alan Modra <amodra@bigpond.net.au>
55 * elflink.c (elf_smash_syms): Clear undef.next if it's not being
56 used as a list pointer.
58 2005-04-14 Alan Modra <amodra@bigpond.net.au>
60 * Makefile.am (NO_WERROR): Define.
61 * warning.m4: New file
62 * acinclude.m4: Include warning.m4.
63 * configure.in: Invoke AM_BINUTILS_WARNINGS.
64 * Makefile.in: Regenerate.
65 * configure: Regenerate.
67 2005-04-14 Alan Modra <amodra@bigpond.net.au>
69 * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
70 Write trailing padding.
72 * merge.c (merge_strings): Round up section size for alignment.
74 2005-04-14 David S. Miller <davem@davemloft.net>
76 Add TLS support for 64-bit Sparc ELF.
77 * elf64-sparc.c (sparc64_elf_dyn_relocs,
78 sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs.
79 (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE,
80 sparc64_elf_hash_entry, sparc64_elf_tdata,
81 sparc64_elf_local_got_tls_type): New defines.
82 (sparc64_elf_mkobject): New function.
83 (sparc64_elf_link_hash_table): Add members for dynamic linker
84 sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got
85 uion to track TLS GOT references. Add sym_sec to cache
86 mappings from local sym to section.
87 (link_hash_newfunc): New function.
88 (sparc64_elf_bfd_link_hash_table_create): Rename to
89 sparc64_elf_link_hash_table_create for consistency.
90 Pass link_hash_newfunc to _bfd_elf_link_hash_table_init.
91 (sparc64_elf_create_dynamic_sections): Initialize new section
92 members of sparc64_elf_link_hash_table. Only init srelbss
94 (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
97 (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset,
98 sparc64_elf_plt_ptr_offset): Delete.
99 (sparc64_plt_entry_build): New function to build PLT entries
100 gradually instread of all at once at the end of linking.
101 (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot
102 local vars. Get them from sparc64_elf_hash_table instead.
103 Check early on if r_symndx is in bounds. Handle TLS transitions.
104 Account for TLS GOT references and DF_STATIC_TLS, as needed.
105 For TLS relocs, record the tls_type in either
106 sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as
107 appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference
108 to the __tls_get_addr symbol. For PLT relocs, track references
109 via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10,
110 PC_LM22} and h not-NULL, set h->non_got_ref. For global data
111 symbol references, count the number of relocations needed for
112 that symbol. For default switch case, don't error, this lets
113 the TLS relocs not explicitly handled by this function get
115 (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions.
116 (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get
117 it from sparc64_elf_hash_table. Store the real PLT offset
118 in h->plt.offset, and build PLT entries one at a time. Also
119 get .dynbss section pointer from htab.
120 (allocate_dynrelocs, readonly_dynrelocs,
121 sparc64_omit_section_dynsym): New functions.
122 (sparc64_elf_omit_section_dynsym): Use these new functions as
124 (dtpoff_base, tpoff): New functions.
125 (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt
126 locals, get them from sparc64_elf_hash_table. Handle TLS
127 relocations and refcounting in main relocation loop.
128 (sparc64_elf_finish_dynamic_symbol): Use
129 sparc64_elf_link_hash_table. Build PLT entries as we see
130 them. Handle TLS GOT relocations.
131 (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj
132 from sparc64_elf_hash_table. Initialize only PLT header
133 not all entries since we not build PLT entries one by one.
134 (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject,
135 elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook,
136 elf_backend_can_gc_sections, elf_backend_can_refcount): Define.
138 2005-04-13 Daniel Jacobowitz <dan@codesourcery.com>
140 * elflink.c (elf_link_input_bfd): Update check for removed
143 2005-04-12 Alan Modra <amodra@bigpond.net.au>
145 * Makefile.am: Run "make dep-am".
146 * Makefile.in: Regenerate.
147 * aclocal.m4: Regenerate.
148 * libcoff.h: Regenerate.
150 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
152 * linker.c (_bfd_generic_link_output_symbols): Also check if
153 the output section of an input section has been removed from
156 * section.c (bfd_section_list_remove): Clear the next field
157 of the removed section.
158 (bfd_section_removed_from_list): New.
159 * bfd-in2.h: Regenerated.
161 2005-04-11 David S. Miller <davem@davemloft.net>
163 * elf32-sparc.c (elf32_sparc_relocate_section,
164 R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to
165 R_SPARC_TLS_LE_{HIX22,LOX10}.
166 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only
167 xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22.
168 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only
169 or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22.
171 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
173 * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
175 2005-04-11 Nick Clifton <nickc@redhat.com>
177 * aout-target.h: Convert to ISO C.
178 * aoutf1.h: Convert to ISO C.
179 * aoutx.h: Convert to ISO C.
180 * bout.c: Convert to ISO C.
181 * dwarf1.c: Convert to ISO C.
182 * ecoffswap.h: Convert to ISO C.
183 * freebsd.h: Convert to ISO C.
184 * genlink.h: Convert to ISO C.
185 * ieee.c: Convert to ISO C.
186 * ihex.c: Convert to ISO C.
187 * libcoff-in.h: Convert to ISO C.
188 * mach-o.c: Convert to ISO C.
189 * mach-o.h: Convert to ISO C.
190 * netbsd.h: Convert to ISO C.
191 * ns32k.h: Convert to ISO C.
192 * ns32knetbsd.c: Convert to ISO C.
193 * oasys.c: Convert to ISO C.
194 * pdp11.c: Convert to ISO C.
195 * pef-traceback.h: Convert to ISO C.
196 * pef.c: Convert to ISO C.
197 * pef.h: Convert to ISO C.
198 * riscix.c: Convert to ISO C.
199 * som.c: Convert to ISO C.
200 * som.h: Convert to ISO C.
201 * srec.c: Convert to ISO C.
202 * stabs.c: Convert to ISO C.
203 * sunos.c: Convert to ISO C.
204 * tekhex.c: Convert to ISO C.
205 * versados.c: Convert to ISO C.
206 * version.h: Convert to ISO C.
207 * xcoff-target.h: Convert to ISO C.
208 * xcofflink.c: Convert to ISO C.
209 * xsym.c: Convert to ISO C.
210 * xsym.h: Convert to ISO C.
212 2005-04-08 Paul Brook <paul@codesourcery.com>
214 * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
215 (ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
216 (ARM2THUMB_PIC_GLUE_SIZE): Define.
217 (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
218 (elf32_arm_to_thumb_stub): Create PIC stubs.
219 (record_arm_to_thumb_glue): Use different stub size for relocatable
222 2005-04-05 Alan Modra <amodra@bigpond.net.au>
224 * elf64-ppc.c (dec_dynrel_count): New function split out from
225 ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
226 (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
227 (ppc64_elf_tls_optimize): Likewise.
229 2005-04-05 Mark Kettenis <kettenis@gnu.org>
231 * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from
233 (SPARC64_WCOOKIE_OFFSET): New.
234 (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64.
236 2005-04-05 Nick Clifton <nickc@redhat.com>
238 * po/rw.po: New translation: Kinyarwanda
239 * configure.in (ALL_LINGUAS): Add rw
240 * configure: Regenerate.
242 2005-04-05 Richard Sandiford <rsandifo@redhat.com>
244 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
245 (_bfd_mips_elf_section_from_shdr): Use it to check for recognized
246 SHT_MIPS_OPTIONS names. Allow all sections with unrecognised
248 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
249 to check for SHT_MIPS_OPTIONS sections.
250 (_bfd_mips_elf_set_section_contents): Likewise.
252 2005-04-04 Eric Christopher <echristo@redhat.com>
254 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
255 Clean up gp handling code.
257 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
259 * elf.c (bfd_elf_set_group_contents): Ignore linker created
261 (assign_section_numbers): Accept link_info. Check SHT_GROUP
262 sections for relocatable files only. Remove the linker created
264 (_bfd_elf_compute_section_file_positions): Pass link_info to
265 assign_section_numbers.
267 * elfxx-ia64.c (elfNN_ia64_object_p): New.
268 (elf_backend_object_p): Defined.
270 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
272 * elf-bfd.h (elf_section_data): Use (sec) instead of sec.
274 2005-04-03 Fred Fish <fnf@specifixinc.com>
276 * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
277 dwarf_ranges_size members.
278 (struct comp_unit): Add base_address member.
279 (struct funcinfo): Replace low/high members with an arange.
280 (arange_add): Replace incoming "unit" parameter with "abfd" and
281 "first_arange" pointers. Reorganize/rewrite function body.
282 (decode_line_info): Change arange_add call to pass bfd and arange
284 (lookup_address_in_line_info_table): Use arange list instead of
285 individual low/high members. Walk function's arange list to find
286 lowest PC in list, to test for overlapping functions.
287 (read_debug_ranges): New function, reads the debug_ranges section.
288 (lookup_address_in_function_table): Use arange list instead of
289 individual low/high members. Rewrite to find smallest range that
291 (read_rangelist): Read a given rangelist from debug_ranges.
292 (scan_unit_for_functions): Use arange list instead of individual
293 low/high members. Handle a DW_AT_ranges attribute.
294 (parse_comp_unit): Use arange list instead of individual low/high
295 members. Save comp unit base address. Handle a DW_AT_ranges
298 2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
300 * elf.c (assign_section_numbers): Really use the kept section.
302 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
304 * elf-bfd.h (_bfd_elf_check_kept_section): New.
306 * elf.c (assign_section_numbers): When sh_link points to a
307 discarded section, call _bfd_elf_check_kept_section to see if
308 the kept section can be used. Otherwise reject sh_link
309 pointing to discarded section.
311 * elflink.c (_bfd_elf_check_kept_section): New.
312 (elf_link_input_bfd): Use it.
314 2005-04-01 Alan Modra <amodra@bigpond.net.au>
316 * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
317 that we no longer need.
319 2005-04-01 Alan Modra <amodra@bigpond.net.au>
321 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
323 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
325 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
327 * elf.c (assign_section_numbers): Fix a typo.
329 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
331 * elflink.c (elf_link_input_bfd): Remove the extra `\n' in
333 (_bfd_elf_section_already_linked): Likewise.
335 2005-03-31 Jerome Guitton <guitton@gnat.com>
337 * config.in: Regenerate.
339 2005-03-31 Jerome Guitton <guitton@gnat.com>
341 * config.in (HAVE_DECL_BASENAME): New configure macro.
342 * configure.in: Check for basename.
343 * configure: Regenerate.
345 2005-03-30 Julian Brown <julian@codesourcery.com>
347 * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
348 bfd_elf32_is_arm_mapping_symbol_name.
349 * bfd-in2.h: Regenerate.
350 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
351 bfd_elf32_is_arm_mapping_symbol_name.
352 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
353 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
354 (arm_elf_find_function): Likewise.
355 (elf32_arm_output_symbol_hook): Likewise.
357 2005-03-30 Julian Brown <julian@codesourcery.com>
359 * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.
360 * bfd-in2.h: Regenerate.
361 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to
362 bfd_elf32_is_arm_mapping_symbol_name.
363 (elf32_arm_output_symbol_hook): Likewise.
364 (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for
366 (is_arm_mapping_symbol_name): Function moved from here...
367 * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed
370 2005-03-29 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
372 * configure.in: Check for ffs decl and alphabetize.
373 * config.in: Regenerate.
374 * configure: Regenerate.
375 * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and
378 2005-03-29 Fred Fish <fnf@specifixinc.com>
380 * dwarf2.c (struct comp_unit): Fix typo.
381 (scan_unit_for_functions): Remove unused local variable "name"
382 and dead code that set it.
384 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
385 Phil Blundell <philb@gnu.org>
387 * bfd-in2.h, libbfd.h: Regenerated.
388 * reloc.c: Add ARM TLS relocations.
389 * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
391 (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
392 (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
393 (elf32_arm_tls_ie32_howto): New.
394 (elf32_arm_howto_from_type): Support TLS relocations.
395 (elf32_arm_reloc_map): Likewise.
396 (elf32_arm_reloc_type_lookup): Likewise.
398 (struct elf32_arm_obj_tdata): New.
399 (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
400 (elf32_arm_mkobject): New function.
401 (struct elf32_arm_relocs_copied): Add pc_count.
402 (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
403 (GOT_TLS_IE): Define.
404 (struct elf32_arm_link_hash_table): Add tls_ldm_got.
405 (elf32_arm_link_hash_newfunc): Initialize tls_type.
406 (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
407 (elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
408 (dtpoff_base, tpoff): New functions.
409 (elf32_arm_final_link_relocate): Handle TLS relocations.
410 (IS_ARM_TLS_RELOC): Define.
411 (elf32_arm_relocate_section): Warn about TLS mismatches.
412 (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
413 (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle
414 TLS relocations and pc_count.
415 (elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
416 (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local
418 (elf32_arm_size_dynamic_sections): Handle TLS.
419 (elf32_arm_finish_dynamic_symbol): Likewise.
420 (bfd_elf32_mkobject): Define.
422 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
424 * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
425 relocation types. Don't count relocations which will use a PLT.
427 2005-03-29 Joel Brobecker <brobecker@gnat.com>
429 * elf.c (elfcore_grok_nto_status): Print tid as long.
430 (elfcore_grok_nto_regs): Likewise.
432 2005-03-29 Joel Brobecker <brobecker@gnat.com>
434 * irix-core.c: Remove some unnecessary prototypes.
436 2005-03-28 Joel Brobecker <brobecker@adacore.com>
438 * irix-core.c: Convert to ISO C.
440 2005-03-28 Joel Brobecker <brobecker@adacore.com>
442 * irix-core.c (do_sections): Replace + by | in expression.
443 (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
444 to unused parameters to avoid a compiler warning.
446 2005-03-28 Mark Kettenis <kettenis@gnu.org>
448 * netbsd-core.c: Convert to ISO C. Fix formatting.
450 2005-03-24 Eric Christopher <echristo@redhat.com>
452 * elfxx-mips.c: Revert previous patch.
454 2005-03-24 Nick Clifton <nickc@redhat.com>
456 * targets.c (_bfd_target_vector): Only include the
457 bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with
460 2005-03-24 James E Wilson <wilson@specifixinc.com>
462 * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo.
463 (BFD64_BACKENDS): Add elf32-ia64.lo.
464 * Makefile.in: Regenerate.
466 2005-03-23 Eric Christopher <echristo@redhat.com>
468 * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New.
469 (mips_elf_calculate_relocation): Use. Define DF_TEXTREL
470 after emitting relocation.
471 (_bfd_mips_elf_adjust_dynamic_symbol): Ditto.
472 (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL
475 2005-03-23 Mike Frysinger <vapier@gentoo.org>
476 Nick Clifton <nickc@redhat.com>
478 * config.bfd: Accept any C library to accompany a GNU Linux
479 implementation, not just the GNU C library.
480 * configure.in: Likewise.
481 * configure: Regenerate.
483 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
485 * bfd-in.h (_bfd_elf_provide_symbol): New.
486 * bfd-in2.h: Regenerated.
488 * elf32-ppc.c (set_linker_sym): Moved to elflink.c.
489 (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead
492 * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed
495 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
497 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.
499 2005-03-22 Bob Wilson <bob.wilson@acm.org>
501 * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
502 xtensa_sysreg_lookup_name, xtensa_interface_lookup,
503 xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
504 (xtensa_opcode_decode): Rearrange code.
506 2005-03-22 Nick Clifton <nickc@redhat.com>
508 * binary.c: Convert to ISO C90 formatting.
509 * coff-arm.c: Convert to ISO C90 formatting.
510 * coffgen.c: Convert to ISO C90 formatting.
511 * elf32-gen.c: Convert to ISO C90 formatting.
512 * elf64-gen.c: Convert to ISO C90 formatting.
513 * hash.c: Convert to ISO C90 formatting.
514 * ieee.c: Convert to ISO C90 formatting.
516 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
518 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
519 unresolved symbols in R_ARM_NONE relocations.
521 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
523 * elf32-arm.c (elf32_arm_final_link_relocate): Add
524 UNRESOLVED_RELOC_P argument. Set it appropriately.
525 (elf32_arm_relocate_section): Update call to
526 elf32_arm_final_link_relocate. Don't clobber RELOCATION; use
527 unresolved_reloc instead.
529 2005-03-23 Alan Modra <amodra@bigpond.net.au>
531 * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on
532 .gnu.warning.* sections.
534 2005-03-22 Alan Modra <amodra@bigpond.net.au>
536 * elf32-ppc.c (elf_linker_section_pointers_t): Remove
538 (ppc_elf_create_linker_section): Don't try to reuse existing section.
539 (elf_create_pointer_linker_section): Delete info parm. Don't make
540 h dynamic. Don't set written_address_p.
541 (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls.
542 (bfd_put_ptr): Delete.
543 (elf_finish_pointer_linker_section): Remove output_bfd and info parms.
544 Always write section contents. Assert global sym is def_regular.
545 Use offset bottom bit as a written flag.
546 (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section
549 2005-03-22 Alan Modra <amodra@bigpond.net.au>
551 * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from..
552 (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start
555 2005-03-21 Nick Clifton <nickc@redhat.com>
557 * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
559 (t2a1_bx_pc_insn): Likewise.
560 (t2a2_noop_insn): Likewise.
561 (t2a3_b_insn): Likewise.
562 (t2a1_push_insn): Likewise.
563 (t2a2_ldr_insn): Likewise.
564 (t2a3_mov_insn): Likewise.
565 (t2a4_bx_insn): Likewise.
566 (t2a5_pop_insn): Likewise.
567 (t2a6_bx_insn): Likewise.
568 (coff_arm_relocate_section): Only declare the high_address
569 variable for non WINCE targets.
571 2005-03-22 Alan Modra <amodra@bigpond.net.au>
573 * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss
574 SEC_LINKER_CREATED. Attach to dynobj.
575 (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size.
577 2005-03-21 Alan Modra <amodra@bigpond.net.au>
579 * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and
580 sym_offset. Add name, bss_name, sym_name, sym_val.
581 (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers.
582 Add sdata array of elf_linker_section_t.
583 (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name.
584 (enum elf_linker_section_enum): Delete.
585 (ppc_elf_create_linker_section): Rewrite. Don't create syms here.
586 (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until
587 the special sections are needed. Adjust htab->sdata refs.
588 Ensure dynobj is set in sreloc code.
589 (ppc_elf_size_dynamic_sections): Strip sdata sections.
590 (ppc_elf_set_sdata_syms): New function.
591 (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset.
592 (ppc_elf_relocate_section): Adjust references to htab->sdata. Use
593 sym_val instead of sym_hash.
594 * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare.
596 2005-03-21 Alan Modra <amodra@bigpond.net.au>
598 * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.
599 (ppc_elf_merge_private_bfd_data): Likewise.
601 2005-03-21 Alan Modra <amodra@bigpond.net.au>
603 * elf32-ppc.c (struct elf_linker_section): Remove rel_section.
604 (ppc_elf_create_linker_section): Don't create rel_section.
605 (elf_create_pointer_linker_section): Don't size relocs.
606 (elf_finish_pointer_linker_section): Remove relative_reloc parm.
607 Don't generate relocs.
608 (ppc_elf_relocate_section): Adjust calls to
609 elf_finish_pointer_linker_section.
611 2005-03-21 Alan Modra <amodra@bigpond.net.au>
613 * elf32-ppc.c (is_ppc_elf_target): New function.
614 (ppc_elf_merge_private_bfd_data): Use it rather than just testing
615 for bfd_target_elf_flavour. Do this test before endian check.
616 (ppc_elf_add_symbol_hook): Use is_pcc_elf_target.
617 (ppc_elf_size_dynamic_sections): Likewise.
619 2005-03-20 H.J. Lu <hongjiu.lu@intel.com>
621 * elf-bfd.h (elf_backend_data): Add int to
622 elf_backend_section_from_shdr.
623 (bfd_elf_section_data): Update comment for this_idx.
624 (_bfd_elf_make_section_from_shdr): Add int.
625 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
627 * elf.c (_bfd_elf_make_section_from_shdr): Take section index
628 and use it to set this_idx in bfd_elf_section_data.
629 (bfd_section_from_shdr): Pass shindex to
630 _bfd_elf_make_section_from_shdr.
631 (_bfd_elf_section_from_bfd_section): Use this_idx in
632 bfd_elf_section_data to find section index.
634 * elf32-arm.c (elf32_arm_section_from_shdr): Take section
635 index and pass it to _bfd_elf_make_section_from_shdr.
636 * elf32-i370.c(i370_elf_section_from_shdr): Likewise.
637 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
638 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
639 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
640 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
641 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
642 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise.
643 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
644 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
646 2005-03-19 Danny Smith <dannysmith@users.sourceforge.net>
647 Ross Ridge <rridge@csclub.uwaterloo.ca>
649 * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix
650 character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX
653 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
655 * elflink.c (elf_mark_used_section): Remove check for special
658 2005-03-18 Andreas Schwab <schwab@suse.de>
660 * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
661 from bfd_vma to ia64_insn, remove broken cast.
663 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
665 * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e.
666 (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol,
667 elf_m68k_finish_dynamic_sections): Use it.
669 2005-03-17 Paul Brook <paul@codesourcery.com>
670 Dan Jacobowitz <dan@codesourcery.com>
671 Mark Mitchell <mark@codesourcery.com>
673 * elf32-arm.c (elf32_arm_modify_segment_map): New function.
674 (elf32_arm_additional_program_headers): Likewise.
675 (elf_backend_modify_segment_map): Define.
676 (elf_backend_additional_program_headers): Likewise.
677 (elf32_arm_symbian_modify_segment_map): Use
678 elf32_arm_modify_segment_map.
680 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
682 * elflink.c (elf_mark_used_section): Check bfd_is_const_section
683 for special sections.
685 2005-03-18 Alan Modra <amodra@bigpond.net.au>
687 * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.
688 * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add
689 section_sym_count param, and return number of section symbols.
690 (bfd_elf_size_dynamic_sections): Clear section symbol area of
691 .dynsym contents. Don't bother calling swap_symbol_out on the
692 first all-zero dynsym.
693 (elf_mark_used_section): Formatting. Avoid twiddling flags in
694 special sections like bfd_abs_section.
695 (bfd_elf_gc_sections): Spelling fix.
697 2005-03-16 Fred Fish <fnf@specifixinc.com>
700 * dwarf2.c (read_indirect_string): Fix apparent typo, check
701 dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
703 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
705 * elflink.c (elf_mark_used_section): New.
706 (bfd_elf_gc_sections): Call elf_gc_mark_section for
707 non-relocatable link if we don't do GC.
709 2005-03-16 Nick Clifton <nickc@redhat.com>
710 Ben Elliston <bje@au.ibm.com>
712 * configure.in (werror): New switch: Add -Werror to the
713 compiler command line. Enabled by default. Disable via
715 * configure: Regenerate.
717 2005-03-16 Nick Clifton <nickc@redhat.com>
719 * ecoff.c: Convert to ISO C90 formatting.
721 2005-03-16 Alan Modra <amodra@bigpond.net.au>
723 * elf32-ppc.c: Divide file into general and linker specific
724 functions. Sort linker functions into roughly the order in which
725 they are called by the ELF linker code.
727 2005-03-16 Alan Modra <amodra@bigpond.net.au>
729 * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED
730 on section. Correct comment, and add FIXME.
731 (ppc_elf_additional_program_headers): Don't bump header count for
732 interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size.
733 (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but
734 do allocate memory if they need it.
736 2005-03-15 Mikkel Krautz <krautz@gmail.com>
738 * config.bfd (x86_64-elf): Add target.
740 2005-03-15 Alan Modra <amodra@bigpond.net.au>
742 * po/es.po: Commit new Spanish translation.
744 2005-03-14 H.J. Lu <hongjiu.lu@intel.com>
746 * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name
747 for global symbol when reporting overflow.
749 2005-03-11 Jakub Jelinek <jakub@redhat.com>
751 * libbfd-in.h (_bfd_ar_spacepad): New prototype.
753 * archive.c (_bfd_ar_spacepad): New function.
754 (_bfd_construct_extended_name_table, _bfd_write_archive_contents,
755 bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp,
756 coff_write_armap): Use it.
757 (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large
759 * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad.
761 2005-03-10 Mark Kettenis <kettenis@gnu.org>
763 * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
764 has_table to the start of the function.
766 2005-03-10 Ben Elliston <bje@au.ibm.com>
768 * archive.c: Include hashtab.h.
769 (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'.
770 (_bfd_look_for_bfd_in_cache): Reimplement using htab_find.
771 (hash_file_ptr): New function.
772 (eq_file_ptr): Likewise.
773 (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table.
774 * libbfd-in.h: Include hashtab.h.
775 (struct artdata): Change `cache' member type to htab_t.
778 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
780 * configure.in: Bump version to 2.16.90.
781 * configure: Regenerated.
783 2005-03-07 Jakub Jelinek <jakub@redhat.com>
785 * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
786 close is a function like macro in system headers.
788 2005-03-07 Alan Modra <amodra@bigpond.net.au>
791 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate
792 _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
794 2005-03-06 Alan Modra <amodra@bigpond.net.au>
796 * elf.c (elfcore_grok_win32pstatus): Warning fixes.
798 2005-03-05 Alan Modra <amodra@bigpond.net.au>
800 * po/bfd.pot: Regenerate.
802 2005-03-05 Alan Modra <amodra@bigpond.net.au>
804 * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
806 (func_desc_adjust): Force dot-syms local in executables as well
809 2005-03-04 David Daney <ddaney@avtrex.com>
811 * elfxx-mips.c (mips_elf_calculate_relocation): Handle special
812 '__gnu_local_gp' symbol used by gas -mno-shared.
814 2005-03-03 H.J. Lu <hongjiu.lu@intel.com>
816 * elf-bfd.h (elf_backend_data): Add "const char *" to
817 elf_backend_section_from_phdr.
819 * elf.c (bfd_section_from_phdr): Pass "proc" to the
820 elf_backend_section_from_phdr hook.
822 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
823 Joseph Myers <joseph@codesourcery.com>
825 * elfxx-mips.c (struct mips_got_entry): Add tls_type.
826 (struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
828 (struct mips_elf_got_per_bfd_arg): Add global_count.
829 (struct mips_elf_count_tls_arg): New.
830 (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx.
831 (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset.
832 (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE)
833 (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define.
834 (TLS_RELOC_P): Define.
835 (TP_OFFSET, DTP_OFFSET): Define.
836 (dtprel_base, tprel_base): New functions.
837 (mips_elf_link_hash_newfunc): Initialize tls_type.
838 (mips_elf_got_entry_hash, mips_elf_got_entry_eq)
839 (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle
841 (mips_tls_got_relocs, mips_elf_count_local_tls_relocs)
842 (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs)
843 (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots)
844 (mips_tls_got_index): New functions.
845 (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE
846 arguments. Pass them to mips_elf_create_local_got_entry. Use
848 (mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
850 (mips_elf_got_page, mips_elf_got16_entry): Update calls to
851 mips_elf_create_local_got_entry.
852 (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE
853 arguments. Handle TLS entries.
854 (mips_elf_sort_hash_table_f): Add non-TLS assertions.
855 (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle
857 (mips_elf_record_global_got_symbol): Likewise.
858 (mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
860 (mips_elf_merge_gots): Handle TLS entries when merging.
861 (mips_elf_initialize_tls_index): New function.
862 (mips_elf_set_global_got_offset): Handle TLS entries.
863 (mips_elf_adjust_gp): Handle TLS.
864 (mips_elf_multi_got): Remove redundant call to
865 mips_elf_resolve_final_got_entries. Initialize global_count.
866 Correct a comment. Initialize new TLS members of mips_got_info.
867 Assign TLS GOT indexes for new GOTs.
868 (mips_elf_create_got_section): Initialize new TLS members of
870 (mips_elf_calculate_relocation): Handle TLS relocs.
871 (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed
873 (_bfd_mips_elf_always_size_sections): Handle TLS.
874 (_bfd_mips_elf_size_dynamic_sections): Likewise.
875 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to
877 (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type.
878 (_bfd_mips_elf_hide_symbol): Handle TLS.
879 * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela)
880 (mips_reloc_map): Add TLS relocs.
881 * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise.
882 * elf64-mips.c (mips_elf64_howto_table_rel)
883 (mips_elf64_howto_table_rela, mips_reloc_map): Likewise.
884 * reloc.c: Define new MIPS TLS relocations.
885 * libbfd.h, bfd-in2.h: Regenerated.
887 2005-03-02 Jan Beulich <jbeulich@novell.com>
889 * Makefile.am: Add dependency of cache.o on libiberty.h.
890 * cache.c: Include libiberty.h.
891 (bfd_open_file): Use unlink_if_ordinary instead of unlink.
893 2005-03-01 Zack Weinberg <zack@codesourcery.com>
895 * elf.c (bfd_section_from_shdr <default case>): Call
896 elf_backend_section_from_shdr hook unconditionally, and return
898 (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr.
899 * elfxx-target.h (elf_backend_section_from_shdr)
900 (elf_backend_section_from_phdr): Default to
901 _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr
904 2005-03-01 Alan Modra <amodra@bigpond.net.au>
906 * targets.h: Typo fix.
907 * bfd-in2.h: Regenerate.
909 * bout.c (b_out_write_object_contents): Don't use sizeof on host
910 structs to size on-disk structures.
911 (b_out_set_section_contents): Size the external struct, not the
912 internal one for on-disk size.
913 (b_out_sizeof_headers): Likewise.
915 2005-03-01 Alan Modra <amodra@bigpond.net.au>
917 * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
918 entry points with the func descriptor as well as undefweak.
920 2005-02-28 Ross Ridge <rridge@csclub.uwaterloo.ca>
922 * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be
923 present when IMPORT_NAME_UNDOECRATE is used.
925 2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
928 * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
931 * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
932 to _bfd_elf_merge_symbol.
934 * elflink.c (_bfd_elf_merge_symbol): Use the pointer to
935 unsigned int to return the alignment of the old common symbol
936 in the dynamic object.
937 (_bfd_elf_add_default_symbol): Pass NULL to
938 _bfd_elf_merge_symbol.
939 (elf_link_add_object_symbols): Pass &old_alignment to
940 _bfd_elf_merge_symbol. Get the alignment of the new common
941 symbol in the dynamic object.
943 2005-02-24 Ben Elliston <bje@au.ibm.com>
945 * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
946 * format.c (bfd_check_format_matches): Likewise.
947 * archive.c (BFD_GNU960_ARMAG): Likewise.
948 (bfd_generic_archive_p): Likewise.
949 (_bfd_write_archive_contents): Likewise.
951 2005-02-24 H.J. Lu <hongjiu.lu@intel.com>
953 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
954 * configure: Regenerate.
956 2005-02-24 Julian Brown <julian@sirius.codesourcery.com>
958 * elflink.c (elf_link_add_object_symbols): Force symbols in discarded
959 COMDAT group sections to have default visibility.
961 2005-02-24 Alan Modra <amodra@bigpond.net.au>
963 * coffcode.h (coff_print_aux): Warning fix.
964 * elf-m10300.c (mn10300_elf_relax_section): Use section->id
965 instead of section pointer to identify.
966 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate
967 the correct size buffer for local sym mangling too.
968 (h8300_bfd_link_add_symbols): Likewise.
969 * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
971 * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
972 * elf32-xtensa.c (literal_value_hash): Warning fix.
973 * versados.c (process_otr): Warning fix.
974 (versados_canonicalize_reloc): Likewise.
975 * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
976 * vms.c (fill_section_ptr): Warning fix.
978 2005-02-23 H.J. Lu <hongjiu.lu@intel.com>
980 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
981 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
983 2005-02-23 Nick Clifton <nickc@redhat.com>
985 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
986 the relvaddr field of the Elf32_crinfo structure.
988 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise
989 variables that are passed by reference to
990 m68hc11_get_relocation_value in case that function does not
993 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated
994 return statements and replace with a single return at the end of
995 the function. This helps pacify the flow analysis code in gcc 4.0.
997 * elf.c (_bfd_elf_compute_section_file_positions): Initialise
998 strtab to avoid compile time warning.
1000 2005-02-23 Ben Elliston <bje@au.ibm.com>
1002 * opncls.c (bfd_zalloc): Document this function.
1004 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1006 * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
1007 SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
1008 Replace SEC_SHARED with SEC_COFF_SHARED.
1009 (styp_to_sec_flags): Likewise.
1011 * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
1012 (TARGET_LITTLE_SYM): Likewise.
1014 * section.c (SEC_ARCH_BIT_0): Removed.
1015 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
1016 SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
1017 (SEC_SHARED): Renamed to ...
1018 (SEC_COFF_SHARED): This.
1019 (SEC_BLOCK): Renamed to ...
1020 (SEC_TIC54X_BLOCK): This.
1021 (SEC_CLINK): Renamed to ...
1022 (SEC_TIC54X_CLINK): This.
1023 (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
1024 SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
1026 * bfd-in2.h: Regenerated.
1028 2005-02-21 Fred Fish <fnf@specifixinc.com>
1030 * dwarf2.c (find_abstract_instance_name): Call recursively
1031 to handle a DW_AT_specification.
1033 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1035 * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
1036 mips_elf_create_dynamic_relocation,
1037 _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link):
1038 Remove #if 0'd code.
1040 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1042 * Makefile.am: Run "make dep-am"
1043 * Makefile.in: Regenerate.
1045 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1047 * coffgen.c (bfd_coff_get_comdat_section): Check that
1048 coff_section_data isn't NULL.
1050 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1052 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
1053 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
1054 * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove
1055 useless assignments.
1056 (xcoff_write_archive_contents_big): Likewise.
1057 (_bfd_xcoff_put_ldsymbol_name): Likewise.
1058 * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
1059 * coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
1060 * cofflink.c (process_embedded_commands): Warning fixes.
1061 * cpu-arm.c: Delete unnecessary prototypes. Convert to C90.
1063 * dwarf2.c: Warning fixes.
1064 * elf-bfd.h: Likewise.
1065 * elf-eh-frame.c: Likewise.
1066 * elf-strtab.c: Likewise.
1068 * elf32-m68k.c: Likewise.
1069 * elf32-ppc.c: Likewise.
1070 * elf32-sh-symbian.c: Likewise.
1071 * elf32-sh.c: Delete unnecessary prototypes. Warning fixes.
1072 * elf64-sh64.c: Likewise.
1073 * peicode.h: Likewise.
1074 * elf64-mmix.c: Warning fixes.
1075 * elfcode.h: Likewise.
1076 * elfxx-mips.c: Likewise.
1077 * libbfd-in.h: Likewise.
1078 * libbfd.c: Likewise.
1079 * mach-o.c: Likewise.
1080 * merge.c: Likewise.
1082 * opncls.c: Likewise.
1085 * vms-hdr.c: Likewise.
1086 * vms-tir.c: Likewise.
1087 * xtensa-isa.c: Likewise.
1088 * xtensa-modules.c: Likewise.
1090 (pstrcmp): Use correct choice of string lengths. Fix return value.
1091 (bfd_sym_module_name): Correct string length.
1092 * bfd-in2.h: Regenerate.
1093 * libbfd.h: Regenerate.
1095 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
1097 * elf32-frv.c (elf32_frv_relocate_section): Remove warning from
1098 uninitialized check_segment[1] in TLSMOFF case.
1099 Reported by Alan Modra.
1100 (elf32_frv_relocate_section): Improve errors and warnings.
1102 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1104 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
1106 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1108 * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
1109 * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
1110 * pef.c (bfd_pef_scan): Don't ignore return value of
1111 bfd_pef_scan_start_address.
1112 * mach-o.c (bfd_mach_o_scan): Don't ignore return value of
1113 bfd_mach_o_scan_start_address.
1114 * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma.
1115 * elfxx-mips.c: Remove unnecessary prototypes.
1116 (sort_dynamic_relocs_64): Abort if not BFD64.
1118 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1120 * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
1121 Skip toc reloc adjust if reloc_count is zero.
1123 2005-02-15 Nigel Stephens <nigel@mips.com>
1124 Maciej W. Rozycki <macro@mips.com>
1126 * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
1127 reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
1128 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
1129 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
1130 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
1132 (mips16_gprel_reloc): Remove bit shuffling; call
1133 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
1134 and _bfd_mips16_elf_reloc_shuffle() instead.
1135 (mips16_reloc_map): New reloc map for MIPS16 relocs.
1136 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
1138 (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
1139 elf_mips16_howto_table_rel.
1140 * elf64-mips.c (mips16_elf64_howto_table_rel): New array for
1141 MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16
1142 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
1143 (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
1144 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
1146 (mips16_elf64_howto_table_rela): New array for MIPS16 RELA
1147 reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
1148 R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
1150 (mips16_gprel_reloc): Remove bit shuffling; call
1151 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
1152 and _bfd_mips16_elf_reloc_shuffle() instead.
1153 (mips16_reloc_map): New reloc map for MIPS16 relocs.
1154 (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
1156 (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
1157 mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
1158 * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
1159 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
1160 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
1161 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
1162 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
1164 (mips16_gprel_reloc): Remove bit shuffling; call
1165 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
1166 and _bfd_mips16_elf_reloc_shuffle() instead.
1167 (mips16_reloc_map): New reloc map for MIPS16 relocs.
1168 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
1170 (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
1171 elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
1172 * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
1173 handle bit shuffling for MIPS16 relocs.
1174 (_bfd_mips16_elf_reloc_shuffle): Likewise.
1175 (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
1176 and _bfd_mips16_elf_reloc_shuffle().
1177 (_bfd_mips_elf_generic_reloc): Likewise.
1178 (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16
1180 (mips_elf_obtain_contents): Remove bit shuffling.
1181 (mips_elf_perform_relocation): Likewise; call
1182 _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
1184 (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16
1186 * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
1187 (_bfd_mips16_elf_reloc_shuffle): Likewise.
1188 * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
1189 (BFD_RELOC_MIPS16_HI16_S): Likewise.
1190 (BFD_RELOC_MIPS16_LO16): Likewise.
1191 * bfd-in2.h: Regenerate.
1192 * libbfd.h: Regenerate.
1194 2005-02-15 Jan Beulich <jbeulich@novell.com>
1196 * elfxx-ia64.c (ia64_howto_table): Correct strings for
1197 R_IA64_DTPMOD64[LM]SB.
1199 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
1201 * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax
1202 backward branch in the same section.
1203 (elfNN_ia64_relocate_section): Inform users that the input
1204 section is too big to relax br instruction when overflow
1205 happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M
1206 and R_IA64_PCREL21F.
1208 2005-02-14 Orjan Friberg <orjanf@axis.com>
1210 * elfcore.h (elf_core_file_p): Move the call to
1211 elf_backend_object_p to allow the correct machine to be set before
1212 processing the program headers.
1214 2005-02-14 Nick Clifton <nickc@redhat.com>
1217 * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address
1218 aware flag from the input bfd to the output bfd.
1220 2005-02-11 Maciej W. Rozycki <macro@mips.com>
1222 * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject
1223 R_MIPS_LITERAL relocations for external symbols.
1224 * elf64-mips.c (mips_elf64_literal_reloc): Likewise.
1225 * elfn32-mips.c (mips_elf_literal_reloc): Likewise.
1227 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
1229 * bfd-in2.h: Rebuilt.
1231 2005-02-11 Paul Brook <paul@codesourcery.com>
1233 * elf-bfd.h (struct elf_link_hash_table): Add
1234 is_relocatable_executable.
1235 * elf.c (_bfd_elf_link_hash_table_init): Initialize it.
1236 * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic
1237 symbols in relocatable executables.
1238 (bfd_elf_record_link_assignment): Create dynamic section symbols in
1239 relocatable executables.
1240 (_bfd_elf_link_renumber_dynsyms): Ditto.
1241 (bfd_elf_final_link): Ditto.
1242 * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute
1243 relocations into relocatable executables.
1244 (elf32_arm_check_relocs): Crate dynamic sections for relocatable
1245 executables. Also copy absolute relocations.
1246 (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations
1247 in relocatable executables.
1248 (allocate_dynrelocs): Copy relocations for relocatable executables.
1249 Output dynamic symbols for symbols defined in linker scripts.
1251 2005-02-11 Nick Clifton <nickc@redhat.com>
1253 * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift'
1254 to avoid a compile time warning.
1256 * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
1259 * coff-tic4x.c (coff_rtype_to_howto): Move definition before
1260 inclusion of coffcode.h so that it is actually picked up.
1262 * coffcode.h (coff_std_swap_table): Add an unused attribute in
1263 case it is not used.
1265 * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused
1266 structure and macro.
1268 * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
1271 * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
1272 to protect the declaration of this array.
1274 * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
1275 Avoid call to memcpy with a size of 0.
1277 2005-02-12 Alan Modra <amodra@bigpond.net.au>
1279 * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
1280 old-style branches to undefined dot-symbols which will be
1281 satisfied by a plt call.
1283 2005-02-11 Alan Modra <amodra@bigpond.net.au>
1285 * elf64-ppc.c (move_plt_plist): New function, extracted from..
1286 (ppc64_elf_copy_indirect_symbol): ..here.
1287 (func_desc_adjust): Use move_plt_plist.
1289 2005-02-10 Paul Brook <paul@codesourcery.com>
1291 * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
1293 2005-02-10 Paul Brook <paul@codesourcery.com>
1295 * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal
1297 (elf_link_renumber_hash_table_dynsyms): Ignore local symbols.
1298 (elf_link_renumber_local_hash_table_dynsyms): New function.
1299 (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols.
1301 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1303 * bfd-in.h (BFD_LINKER_CREATED): Define.
1304 * bfd-in2.h: Rebuilt.
1305 * elflink.c (bfd_elf_size_dynamic_sections): Disregard
1306 BFD_LINKER_CREATED bfds when determining input bfds without
1307 .note.GNU-stack section.
1309 2005-02-10 Maciej W. Rozycki <macro@mips.com>
1311 * elf64-mips.c (mips16_gprel_reloc): Update a comment.
1312 * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL
1313 relocations against external symbols unchanged.
1315 2005-02-08 Paul Brook <paul@codesourcery.com>
1317 * elflink.c (elf_link_input_bfd): Ignore symbols from null input
1320 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1322 * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
1325 2005-02-07 Maciej W. Rozycki <macro@mips.com>
1327 * elf64-mips.c: Fix formatting throughout.
1329 2005-02-07 Maciej W. Rozycki <macro@mips.com>
1331 * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.
1333 2005-02-07 Alexandre Oliva <aoliva@redhat.com>
1335 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for
1336 *ABS*/*UND* sections.
1337 (elf32_frv_relocate_section): Move zero-addend-required error...
1338 (_frv_emit_got_relocs_plt_entries): ... here. Report error for
1339 missing needed TLS section.
1341 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
1343 * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
1344 being the last symbol.
1345 (aout_link_add_symbols): Just return TRUE if a warning
1348 2005-02-07 Maciej W. Rozycki <macro@mips.com>
1350 * elf32-mips.c (mips_elf_gprel32_reloc): Reject
1351 R_MIPS_GPREL32 relocations against external symbols.
1352 * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect
1355 2005-02-07 Alan Modra <amodra@bigpond.net.au>
1357 * elf-bfd.h (elf_string_from_elf_strtab): Delete macro.
1358 * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of
1359 elf_string_from_elf_strtab.
1360 (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise.
1361 (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too
1362 if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For
1363 SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by
1364 looking at cached symtab info first, before iterating over headers.
1365 For SHT_REL and SHT_RELA, load dynsymtab if needed.
1366 * elfcode.h (elf_object_p): Don't load section header stringtab
1369 2005-02-06 H.J. Lu <hongjiu.lu@intel.com>
1371 * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF
1372 against protected function when building shared library.
1375 * elf64-x86-64.c (is_32bit_relative_branch): New.
1376 (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a
1377 protected function symbol when building shared library for
1378 32bit relative branch instruction.
1380 2005-02-06 Alan Modra <amodra@bigpond.net.au>
1382 * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor
1383 syms when doing a relocatable link.
1384 (ppc64_elf_gc_mark_hook): Check that syms are defined before looking
1386 (ppc64_elf_tls_setup): Likewise.
1387 (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
1389 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1391 * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake".
1392 (link_hash_newfunc): Clear all locals using memset.
1393 (make_fdh): Remove flags param. Always create fake func desc
1394 weak. Link the descriptor with the code entry sym.
1395 (ppc64_elf_archive_symbol_lookup): Don't return fake syms.
1396 (add_symbol_adjust): Adjust make_fdh call.
1397 (func_desc_adjust): Likewise. Twiddle any pre-existing fake
1398 descriptor to strong undefined if code entry is strong.
1400 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1402 * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol
1403 lookup here. Set to new before calling bfd_link_repair_undef_list.
1404 (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd.
1406 2005-02-03 Alan Modra <amodra@bigpond.net.au>
1408 * linker.c (_bfd_link_hash_newfunc): Set all local fields.
1410 2005-02-03 Alan Modra <amodra@bigpond.net.au>
1412 * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak.
1413 * elflink.c (elf_smash_syms): Restore symbols that were undefweak
1414 before the as-needed lib was loaded. Abort on unexpected refs.
1416 2005-02-02 Alan Modra <amodra@bigpond.net.au>
1418 * elflink.c (elf_smash_syms): Expand comments.
1419 (elf_link_add_object_symbols): Only call elf_smash_syms for
1420 as-needed dynamic objects.
1422 * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
1423 everything, just the field specific to ia64.
1424 * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
1426 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1428 * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to..
1429 (make_fdh): ..here. New function. Don't set BSF_OBJECT for
1431 (struct add_symbol_adjust_data): New.
1432 (add_symbol_adjust): Make an undefweak func desc for old ABI
1433 objects to link with --as-needed shared libs. Return fail status.
1434 Don't adjust old ABI func entry sym to weak if func desc syms
1436 (ppc64_elf_check_directives): Adjust call to add_symbol_adjust,
1439 2005-02-01 Hans-Peter Nilsson <hp@axis.com>
1441 * cpu-cris.c (get_compatible): Rearrange disabled code and comment
1444 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1446 * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
1447 * linker.c (bfd_link_repair_undef_list): ..to new function, but don't
1448 remove anything but new and undefweak.
1449 * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
1451 (_bfd_elf_create_dynamic_sections): Formatting.
1452 (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
1453 (_bfd_elf_merge_symbol): Don't handle as-needed syms here.
1454 (struct elf_smash_data): New.
1455 (elf_smash_syms): New function.
1456 (elf_link_add_object_symbols): Call elf_smash_syms. Don't add
1457 unneeded dynamic objects to loaded list.
1458 (elf_link_output_extsym): Don't handle as-needed here. Strip
1459 bfd_link_hash_new symbols.
1460 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1461 delref when dynindx is already -1.
1462 * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
1464 * elfxx-mips.c (mips_elf_output_extsym): Likewise.
1466 2005-02-01 Ben Elliston <bje@au.ibm.com>
1468 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine.
1470 2005-02-01 Ben Elliston <bje@au.ibm.com>
1472 * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
1473 bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c,
1474 coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c,
1475 coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c,
1476 cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c,
1477 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c,
1478 elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c,
1479 elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c,
1480 i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c,
1481 nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c,
1482 pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c,
1483 sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c, doc/chew.c,
1484 hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code
1485 throughout. Similarly, collapse #if 1'd code.
1487 2005-02-01 Ben Elliston <bje@au.ibm.com>
1489 * elf-bfd.h (bfd_elf_discard_group): Remove.
1490 * elf.c (bfd_elf_discard_group): Likewise.
1491 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro.
1493 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
1495 * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size.
1496 (_bfd_elf_eh_frame_address_size): Declare.
1497 * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default.
1498 (elfNN_bed): Initialize elf_backend_eh_frame_address_size.
1499 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare.
1500 (elf_backend_eh_frame_address_size): Define.
1501 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function.
1502 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address
1503 size from the new backend hook.
1504 (_bfd_elf_write_section_eh_frame): Likewise.
1505 (_bfd_elf_eh_frame_address_size): New function.
1507 2005-01-31 Andrew Cagney <cagney@gnu.org>
1509 * configure: Regenerate to track ../gettext.m4.
1511 2005-01-31 Mark Mitchell <mark@codesourcery.com>
1513 * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set
1514 SHF_WRITE for .init_array, .fini_array, and .preinit_array.
1516 2005-01-31 Nick Clifton <nickc@redhat.com>
1518 * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos,
1519 sparc-lynxos, vax-vms) be obsolete.
1521 2005-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1523 * elf-bfd.h (struct elf_backend_data): Add minpagesize.
1524 * elf32-arm.c (ELF_MINPAGESIZE): Define.
1525 * elf32-ppc.c (ELF_MINPAGESIZE): Define.
1526 * elfcode.h (elf_object_p): Use minpagesize instead of
1528 * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE.
1529 (elfNN_bed): Include ELF_MINPAGESIZE.
1531 2005-01-28 Julian Brown <julian@codesourcery.com>
1533 * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
1534 * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype.
1535 * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag.
1536 (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for
1537 passing flag value from ld. Set flag value in global hash table entry.
1538 (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
1541 2005-01-27 Andrew Cagney <cagney@gnu.org>
1543 * configure: Regenerate to track ../gettext.m4 change.
1545 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1547 * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
1550 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
1552 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
1553 * elf32-frv.c (elf32_frv_relocate_section): Force local binding
1555 * reloc.c: Add R_FRV_TLSMOFF.
1556 * elf32-frv.c (elf32_frv_howto_table): Likewise.
1557 (frv_reloc_map, frv_reloc_type_lookup): Map it.
1558 (elf32_frv_relocate_section): Handle it.
1559 (elf32_frv_check_relocs): Likewise.
1560 * libbfd.h, bfd-in2.h: Rebuilt.
1561 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1562 * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash
1563 when given an undefweak TLS symbol. Fix constant TLS PLT entries
1564 such that they return the constant in gr9.
1565 (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS
1567 (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections.
1568 too, such that they shrink on relaxation.
1569 (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as
1570 marking the position right past the _GLOBAL_OFFSET_TABLE_ value.
1571 (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries
1572 if we can guarantee the use of 16-bit constants.
1573 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
1574 Introduce TLS support for FR-V FDPIC.
1575 * reloc.c: Add TLS relocations.
1576 * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations.
1577 (elf32_frv_rel_tlsdesc_value_howto): New.
1578 (elf32_frv_rel_tlsoff_howto): New.
1579 (frv_reloc_map): Add new mappings.
1580 (struct frvfdpic_elf_link_hash_table): Add pointer to summary
1582 (frvfdpic_dynamic_got_plt_info): New.
1583 (frvfdpic_plt_tls_ret_offset): New.
1584 (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier.
1585 (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members.
1586 (struct _frvfdpic_dynamic_got_plt_info): Likewise.
1587 (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute
1589 (struct frvfdpic_relocs_info): Add TLS fields.
1590 (frvfdpic_relocs_info_hash): Warning clean up.
1591 (frvfdpic_relocs_info_find): Initialize tlsplt_entry.
1592 (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields.
1593 (FRVFDPIC_TLS_BIAS): Define.
1594 (tls_biased_base): New.
1595 (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS
1597 (frv_reloc_type_lookup): Likewise.
1598 (frvfdpic_info_to_howto_rel): Likewise.
1599 (elf32_frv_relocate_section): Likewise.
1600 (_frv_create_got_section): Create the PLT section here.
1601 (elf32_frvfdpic_create_dynamic_sections): Not here.
1602 (_frvfdpic_count_nontls_entries): Move out of...
1603 (_frvfdpic_count_got_plt_entries): ... here.
1604 (_frvfdpic_count_tls_entries): Likewise. Add TLS support.
1605 (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation
1607 (_frvfdpic_relax_tls_entries): New.
1608 (_frvfdpic_compute_got_alloc_data): Add TLS support.
1609 (_frvfdpic_get_tlsdesc_entry): New.
1610 (_frvfdpic_assign_got_entries): Add TLS support.
1611 (_frvfdpic_assign_plt_entries): Likewise.
1612 (_frvfdpic_reset_got_plt_entries): New.
1613 (_frvfdpic_size_got_plt): Move out of...
1614 (elf32_frvfdpic_size_dynamic_sections): ... here.
1615 (_frvfdpic_relax_got_plt_entries): New.
1616 (elf32_frvfdpic_relax_section): New.
1617 (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check.
1618 (elf32_frv_check_relocs): Add TLS support.
1619 (bfd_elf32_bfd_relax_section): Define for FDPIC.
1620 * libbfd.h, bfd-in2.h: Rebuilt.
1622 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1624 * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include
1625 loadable reloc sections.
1626 (_bfd_elf_canonicalize_dynamic_reloc): Likewise.
1627 (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms.
1629 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1631 * elflink.c (elf_link_add_object_symbols): Don't create link dynamic
1632 sections immediately when linking shared libs. Instead, wait until
1633 we know a lib is needed.
1634 (_bfd_elf_link_create_dynstrtab): Extract from..
1635 (_bfd_elf_link_create_dynamic_sections_): ..here.
1636 (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
1637 _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow
1638 for non-existent .dynamic.
1639 (elf_link_output_extsym): Don't complain about undefined symbols
1640 in as-needed dynamic libs that aren't actually linked.
1642 2005-01-24 Andrew Cagney <cagney@gnu.org>
1644 * configure: Regenerate, ../gettext.m4 was updated.
1646 2005-01-21 Ben Elliston <bje@au.ibm.com>
1648 * aout-encap.c: Remove unused file.
1650 2005-01-19 H.J. Lu <hongjiu.lu@intel.com>
1653 * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected
1654 non-function symbols are local.
1655 (_bfd_elf_symbol_refs_local_p): Likewise.
1657 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1659 * bfd.c (bfd_link_just_syms): Add abfd param.
1660 * bfd-in2.h: Regenerate.
1662 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
1664 * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions.
1665 (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA
1666 instructions. If the amount of padding is known, reduce the size
1667 of the CIE or FDE by that amount.
1669 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
1671 * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and
1672 augmentation_size. Use bfd_signed_vmas for data_align.
1673 * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of...
1674 (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new
1675 functions. Don't read past the end of the enclosing CIE or FDE.
1676 (skip_bytes): New utility function.
1677 (_bfd_elf_discard_section_eh_frame): Use new functions, adding more
1679 (_bfd_elf_write_section_eh_frame): Use new functions.
1681 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
1683 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
1684 assert-style REQUIRE() macro to handle sanity checks.
1686 2005-01-17 H.J. Lu <hongjiu.lu@intel.com>
1688 * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
1690 (read_unsigned_leb128): Removed.
1691 (read_signed_leb128): Removed.
1692 (find_abstract_instance_name): Updated.
1693 (parse_comp_unit): Accept info_ptr_unit.
1694 (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
1695 comp unit and pass it to parse_comp_unit.
1697 * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
1698 (read_signed_leb128): Moved to ...
1701 * libbfd-in.h (read_unsigned_leb128): New prototype.
1702 (read_signed_leb128): Likewise.
1703 * libbfd.h: Regenerated.
1705 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
1706 Nick Clifton <nickc@redhat.com>
1708 * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up,
1709 arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to
1710 arch_sh4a_nofpu_up in order to match the external names and make the
1711 testsuite's job easier.
1712 * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful
1714 * bfd-in2.h: Regenerate.
1716 2005-01-15 Andrew Cagney <cagney@gnu.org>
1719 * acinclude.m4: Move BFD_NEED_DECLARATION,
1720 BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
1721 the new file bfd.m4. Include ../bfd/bfd.m4.
1722 * configure: Re-generate.
1724 2005-01-12 Alan Modra <amodra@bigpond.net.au>
1726 * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
1727 (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
1729 (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
1730 R_PPC_RELAX32PC_PLT.
1732 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1734 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
1736 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
1737 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
1738 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
1739 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
1740 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
1741 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
1742 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise.
1743 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
1744 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
1745 * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.
1746 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
1747 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
1748 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
1749 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
1751 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1753 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
1756 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
1758 * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20.
1759 * bfd-in2.h: Regenerate.
1760 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code
1761 to support these new machine values.
1762 * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for
1764 (bfd_maxq_arch): Update values for the maxq20.
1766 2005-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1768 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
1769 non-shared object, do not reserve space in .plt and .rela.plt for
1770 regular symbols neither defined nor referenced in shared objects.
1772 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
1774 * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
1775 to zero the structure.
1776 (create_got_section): Use BFD_ASSERT instead of abort.
1777 * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
1779 (create_got_section): New function.
1780 (sparc64_elf_create_dynamic_sections): Likewise.
1781 (sparc64_elf_check_relocs): Invoke create_got_section instead of
1782 _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts.
1783 (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
1784 (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
1785 (sparc64_elf_finish_dynamic_symbol): Likewise.
1786 (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
1787 (elf_backend_create_dynamic_sections): Define to
1788 sparc64_elf_create_dynamic_sections.
1790 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
1792 * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function.
1793 (elf_backend_omit_section_dynsym): Define to it.
1794 * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function.
1795 (elf_backend_omit_section_dynsym): Define to it.
1797 2005-01-07 Jakub Jelinek <jakub@redhat.com>
1799 * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
1800 PT_DYNAMIC segment, unless .dynamic.
1802 2005-01-06 Paul Brook <paul@codesourcery.com>
1804 * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss.
1805 * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec.
1806 * configure: Regenerate.
1807 * elf32-arm.c: Add VxWorks target bfd.
1809 (elf32_arm_link_hash_table): Add use_rel.
1810 (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate,
1811 elf32_arm_relocate_section): Replace USE_REL with runtime check.
1812 Correct offset calculation for RELA case.
1813 (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p,
1814 elf_backend_default_use_rela_p, elf_backend_rela_normal): Define.
1815 (elf32_arm_vxworks_link_hash_table_create): New function.
1816 * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration.
1817 (bfd_elf32_littlearm_vxworks_vec): Ditto.
1818 (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec.
1820 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1822 * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and
1824 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define.
1825 (ppc64_elf_check_relocs): Update references to has_gp_reloc.
1826 (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit.
1827 (ppc64_elf_next_toc_section): Heed no_multi_toc.
1828 (ppc64_elf_reinit_toc): Set multi_toc_needed.
1829 (toc_adjusting_stub_needed): Rewrite.
1830 (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut
1831 toc tests. Adjust for toc_adjusting_stub_needed changes.
1832 (ppc64_elf_size_stubs): Update references to has_gp_reloc.
1833 * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype.
1834 * section.c: Expand comment on backend bits.
1835 * bfd-in2.h: Regenerate.
1836 * libbfd.h: Regenerate.
1838 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1840 * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for
1841 toc adjusting stub, do not test source section flags.
1843 2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1845 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
1846 from STABS debugging sections again.
1848 2005-01-05 Fred Fish <fnf@specifixinc.com>
1850 * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member.
1851 (find_abstract_instance_name): New function.
1852 (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine.
1853 (scan_unit_for_functions): Handle DW_AT_abstract_origin.
1854 (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit.
1856 2004-12-31 Paul Brook <paul@copdesourcery.com>
1858 * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo.
1860 2004-12-31 Alan Modra <amodra@bigpond.net.au>
1862 * reloc.c (BFD_RELOC_AVR_LDI, BFD_RELOC_AVR_6, BFD_RELOC_AVR_6_ADIW):
1863 Commit missing changes from 2004-12-22.
1864 * bfd-in2.h: Regenerate.
1866 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
1868 * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
1870 2004-12-21 Kris Warkentin <kewarken@qnx.com>
1872 * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
1873 Add 'base' argument for constructing register sections. Reformat.
1874 (elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both
1875 gp and fp regs. Reformat.
1877 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
1879 * reloc.c: Add new relocs R_AVR_LDI, R_AVR_6, R_AVR_6_ADIW.
1880 * bfd-in2.h: Regenerate.
1881 * elf32-avr.c (elf_avr_nowto_table): Add the new relocs.
1882 (avr_reloc_map): Likewise.
1883 (avr_final_link_relocate): Likewise.
1885 2004-12-22 Alan Modra <amodra@bigpond.net.au>
1887 * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from
1888 as-needed dynamic libs as undefined.
1889 (elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed
1890 libs when finding they are needed.
1892 2004-12-20 Alan Modra <amodra@bigpond.net.au>
1894 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs.
1895 (opd_entry_value): Use opd_relocs if available.
1896 (ppc64_elf_relocate_section): Don't set reloc_done. Instead
1897 copy .opd relocations to opd_relocs.
1898 (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
1900 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
1902 * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
1903 * elf32-v850.c (v850_elf_howto_table): Add entry for
1904 R_V850_LO16_SPLIT_OFFSET.
1905 (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
1906 (v850_elf_perform_lo16_relocation): New function, extracted from...
1907 (v850_elf_perform_relocation): ...here. Use it to handle
1908 R_V850_LO16_SPLIT_OFFSET.
1909 (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
1910 R_V850_LO16_SPLIT_OFFSET.
1911 * libbfd.h, bfd-in2.h: Regenerate.
1913 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1915 * config.bfd: Add s390x-ibm-tpf support.
1917 2004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
1919 * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
1920 to prototype, to make hash info available.
1921 Prevent wrapped symbols from being adjusted twice.
1923 2004-12-14 Richard Sandiford <rsandifo@redhat.com>
1925 * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
1926 overflow for calls to undefined weak symbols.
1928 2004-12-11 Alan Modra <amodra@bigpond.net.au>
1930 * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
1931 canonical sections syms have a name.
1933 2004-12-11 Alan Modra <amodra@bigpond.net.au>
1935 * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
1936 have been adjusted for output.
1937 (ppc64_elf_relocate_section): Mark sections with reloc_done.
1939 2004-12-10 Alan Modra <amodra@bigpond.net.au>
1941 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and
1942 add symtab_hdr param.
1943 (group_signature): Update calls.
1944 * elf-bfd.h (bfd_elf_sym_name): Update.
1945 * elf32-ppc.c (ppc_elf_relocate_section): Update.
1946 * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update.
1947 (ppc64_elf_relocate_section): Update.
1948 * elflink.c (elf_link_input_bfd): Update.
1950 2004-12-10 Jakub Jelinek <jakub@redhat.com>
1952 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
1953 st_shndx on STT_SECTION sections.
1955 2004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
1957 * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
1958 ELF section symbols.
1960 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
1962 * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
1963 return a real value, unless it is a PLT symbol.
1964 (mips_elf_perform_relocation): On the RM9000, turn a jal into a
1967 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
1968 R_MIPS_JALR entry to 0.
1970 * archures.c: Define bfd_mach_mips9000.
1971 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
1972 (mips_set_isa_flags): Handle bfd_mach_mips9000.
1973 * cpu-mips.c (I_mips9000): Define.
1974 (arch_info_struct): Add case for bfd_mach_mips9000.
1975 * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
1976 * bfd-in2.h: Regenerate.
1978 2004-12-08 Ian Lance Taylor <ian@wasabisystems.com>
1980 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
1983 2004-12-07 Ben Elliston <bje@gnu.org>
1985 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
1987 2004-12-06 Daniel Jacobowitz <dan@debian.org>
1989 Suggested by Fergal Daly <fergal@esatclear.ie>:
1990 * simple.c (simple_dummy_multiple_definition): New function.
1991 (bfd_simple_get_relocated_section_contents): Use it.
1993 2004-12-03 Jan Beulich <jbeulich@novell.com>
1995 * elf.c (elf_find_function): Don't use the last file symbol ever,
1996 seen, but the last one seen prior to the symbol being reported.
1997 Don't report a filename at all for global symbols when that might
2000 2004-12-01 Paul Brook <paul@codesourcery.com>
2002 * elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI.
2003 (elf32_arm_post_process_headers): Set EI_OSABI depending on ABI
2006 2004-12-01 Paul Brook <paul@codesourcery.com>
2008 * elflink.c (elf_link_add_object_symbols): Make symbols from discarded
2011 2004-11-30 Paul Brook <paul@codesourcery.com>
2013 * elf32-arm.c (struct elf32_arm_link_hash_table): Remove
2014 no_pipeline_knowledge
2015 (elf32_arm_link_hash_table_create): Ditto.
2016 (bfd_elf32_arm_process_before_allocation): Ditto.
2017 (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation
2019 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
2021 * bfd-in2.h: Regenerate.
2023 2004-11-30 Randolph Chung <tausq@debian.org>
2025 * elf32-hppa.c (elf32_hppa_grok_prstatus): New function.
2026 (elf32_hppa_grok_psinfo): New function.
2027 (elf_backend_grok_prstatus): Define.
2028 (elf_backend_grok_psinfo): Define.
2030 2004-11-24 H.J. Lu <hongjiu.lu@intel.com>
2033 * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
2035 2004-11-24 Paul Brook <paul@codesourcery.com>
2037 * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
2039 2004-11-24 Paul Brook <paul@codesourcery.com>
2041 * elf32-arm.c (elf32_arm_swap_symbol_in): New function.
2042 (elf32_arm_swap_symbol_out): New function.
2043 (elf32_arm_size_info): Add.
2044 (elf_backend_size_info): Define.
2046 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2048 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
2051 2004-11-19 Alan Modra <amodra@bigpond.net.au>
2053 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
2054 * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
2055 * nlmcode.h (nlm_write_object_contents): Warning fix.
2057 2004-11-18 Bob Wilson <bob.wilson@acm.org>
2059 * elf32-xtensa.c (ebb_propose_action): Fix argument order.
2061 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
2063 * elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
2064 (elf32_arm_plt_thumb_stub): New.
2065 (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
2067 (elf32_arm_link_hash_traverse): Fix typo.
2068 (elf32_arm_link_hash_table): Add obfd.
2069 (elf32_arm_link_hash_newfunc): Initialize new fields.
2070 (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
2071 (elf32_arm_link_hash_table_create): Initialize obfd.
2072 (record_arm_to_thumb_glue): Mark the glue as a local ARM function.
2073 (record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
2074 (bfd_elf32_arm_get_bfd_for_interworking): Verify that the
2075 interworking BFD is not dynamic.
2076 (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
2077 not emit glue for PLT references.
2078 (elf32_arm_final_link_relocate): Handle Thumb functions. Do not
2079 emit glue for PLT references. Support the Thumb PLT prefix.
2080 (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
2082 (elf32_arm_check_relocs): Likewise.
2083 (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
2085 (allocate_dynrelocs): Handle Thumb PLT references.
2086 (elf32_arm_finish_dynamic_symbol): Likewise.
2087 (elf32_arm_symbol_processing): New function.
2088 (elf_backend_symbol_processing): Define.
2090 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
2092 * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and
2093 add_fde_encoding. Remove need_relative.
2094 * elf-eh-frame.c (extra_augmentation_string_bytes)
2095 (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions.
2096 (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding
2097 in cases where the CIE has no existing 'R' augmentation. Use
2098 size_of_output_cie_fde when assigning offsets. Use the final offset
2099 as the new section size.
2100 (_bfd_elf_eh_frame_section_offset): Remove need_relative handling.
2101 Account for any extra augmentation bytes in the returned offset.
2102 (_bfd_elf_write_section_eh_frame): Rework so that the entries are
2103 moved before being modified. Pad growing entries with DW_CFA_nops.
2104 Add 'z' and 'R' augmentations as directed by add_augmentation_size
2105 and add_fde_encoding.
2107 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2109 * elf32-arm.c (elf32_arm_relocate_section): Use
2110 arm_real_reloc_type.
2112 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
2114 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
2115 for discard relocations; don't add an R_MIPS_NONE to the main body
2118 2004-11-04 Paul Brook <paul@codesourcery.com>
2120 * elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
2121 * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
2122 (_bfd_elf_slurp_version_tables): Add extra argument. Create extra
2123 default version definition for unversioned symbols.
2124 * elfcode.h (elf_slurp_symbol_table): Pass extra argument.
2125 * elflink.c (elf_link_add_object_symbols): Pass extra argument to
2126 _bfd_elf_slurp_version_tables. Set default version for unversioned
2129 2004-11-15 Paul Brook <paul@codesourcery.com>
2131 * elflink.c (elf_link_add_object_symbols): Don't assume version
2132 indices are consecutive.
2134 2004-11-14 Richard Sandiford <rsandifo@redhat.com>
2136 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
2137 composite relocations against the personality data.
2139 2004-11-13 Paul Brook <paul@codesourcery.com>
2141 * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve
2142 R_ARM_PREL31 relocations to PLT entries.
2143 (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto.
2144 (elf32_arm_check_relocs): Ditto.
2146 2004-11-12 Bob Wilson <bob.wilson@acm.org>
2148 * xtensa-isa.c (xtensa_interface_class_id): New.
2150 2004-11-11 Bob Wilson <bob.wilson@acm.org>
2152 * elf32-xtensa.c (property_table_compare): Remove assertion about
2153 entries with the same address and non-zero size.
2154 (xtensa_read_table_entries): Report such entries as errors.
2156 2004-11-11 Mark Mitchell <mark@codesourcery.com>
2158 * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
2159 R_ARM_RELATIVE on Symbian OS.
2161 2004-11-09 Mark Mitchell <mark@codesourcery.com>
2163 * som.c (som_bfd_print_private_bfd_data): New function.
2164 (som_object_setup): Save the auxiliary header. Don't assume that
2165 zero is an invalid entry point for a shared library.
2166 (som_object_p): Allocate the auxiliary header on the heap.
2168 * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
2170 (elf32_arm_symbian_modify_segment_map): Likewise.
2172 2004-11-09 Daniel Jacobowitz <dan@debian.org>
2174 From David Poole <daveml@mbuf.com>:
2175 * elf32-arm.c (elf32_arm_readonly_dynrelocs): New function.
2176 (elf32_arm_size_dynamic_sections): Call it.
2178 2004-11-09 Alan Modra <amodra@bigpond.net.au>
2180 * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.
2181 (ALL_MACHINES_CFILES): Fix typo.
2182 * Makefile.in: Regenerate.
2183 * po/SRC-POTFILES.in: Regenerate.
2185 2004-11-08 Mark Mitchell <mark@codesourcery.com>
2187 * elf32-arm.c (elf32_arm_final_link_relocate): When generating an
2188 R_ARM_RELATIVE relocation for Symbian OS, mention the section
2189 symbol in the relocation.
2191 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
2192 Vineet Sharma <vineets@noida.hcltech.com>
2194 * coff-maxq.c: New File.
2195 * cpu-maxq.c: New File.
2196 * coffcode.h: Likewise.
2197 * config.bfd: Likewise.
2198 * configure.in (maxqcoff_vec): New target vector.
2199 * Makefile.am: Add support for maxq target.
2200 * configure.in: Likewise.
2201 * archures.c:. Likewise.
2202 * targets.c: Likewise.
2203 * bfd_in2.h : Regenerated.
2204 * Makefile.in: Regenerated.
2205 * configure: Regenerated.
2206 * doc/Makefile.in: Regenerated.
2208 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2210 * coff-i386.c (coff_i386_reloc): Fix weak symbols.
2211 * cofflink.c (_bfd_coff_link_input_bfd): Don't process
2212 C_NT_WEAK aux entries.
2213 (_bfd_coff_generic_relocate_section): Handle undefined
2216 2004-11-07 Andreas Schwab <schwab@suse.de>
2218 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
2219 SYMBOL_CALLS_LOCAL and check for undefweak symbols with
2220 non-default visibility.
2222 2004-11-01 Mark Mitchell <mark@codesourcery.com>
2224 * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
2226 (elf32_arm_symbian_modify_segment_map): Don't
2227 reset includes_filehdr and includes_phdrs here.
2229 2004-11-04 Daniel Jacobowitz <dan@debian.org>
2231 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
2232 elfarm-nabi with elf32-arm. Remove elfarm-oabi.
2233 (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
2235 * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
2236 to a new removed list. Remove normal configuration stanzas.
2237 * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
2238 (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
2239 elfarm-nabi.lo with elf32-arm.lo.
2240 (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
2241 * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
2242 * elf32-arm.h: Remove.
2243 * elfarm-oabi.c: Remove.
2244 * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
2245 and bfd_elf32_littlearm_oabi_vec.
2246 * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
2248 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
2250 * config.bfd: Support crisv32-*-* like cris-*-*.
2251 * archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32)
2252 (bfd_mach_cris_v10_v32): New macros.
2253 * cpu-cris.c: Tweak formatting.
2254 (get_compatible): New function.
2256 (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New
2257 bfd_arch_info_type:s.
2258 (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach,
2259 get_compatible for member compatible and link bfd_cris_arch_v32 as
2261 * elf32-cris.c (cris_elf_pcrel_reloc)
2262 (cris_elf_set_mach_from_flags): New functions.
2263 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
2264 <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc.
2265 (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct
2266 numbers for bfd_mach_cris_v32.
2267 (PLT_ENTRY_SIZE_V32): New macro.
2268 (elf_cris_plt0_entry): Drop last comma in initializer.
2269 (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32)
2270 (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New
2272 (cris_elf_relocate_section): Change all "%B(%A)" messages to
2274 (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries.
2275 (elf_cris_finish_dynamic_sections): Similar.
2276 (elf_cris_adjust_dynamic_symbol): Similar.
2277 (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B,
2279 <switch with PIC relocs>: Emit error and return FALSE for
2280 bfd_mach_cris_v10_v32.
2281 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
2282 Emit warning when generating textrel reloc.
2283 (cris_elf_object_p): Call cris_elf_set_mach_from_flags.
2284 (cris_elf_final_write_processing): Set flags according to mach.
2285 (cris_elf_print_private_bfd_data): Display
2286 EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32.
2287 (cris_elf_merge_private_bfd_data): Drop variables old_flags,
2288 new_flags. Don't call cris_elf_final_write_processing. Don't
2289 look at the actual elf header flags at all; use
2290 bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference
2291 in bfd_get_mach for ibfd and obfd and handle merging of compatible
2293 (bfd_elf32_bfd_copy_private_bfd_data): Define.
2294 * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8)
2295 (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16)
2296 (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs.
2297 * bfd-in2.h, libbfd.h: Regenerate.
2299 2004-11-04 Alan Modra <amodra@bigpond.net.au>
2301 * elf64-ppc.h (ppc64_elf_edit_toc): Declare.
2302 * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
2304 (struct adjust_toc_info): New.
2305 (adjust_toc_syms, ppc64_elf_edit_toc): New functions.
2307 2004-11-03 Bob Wilson <bob.wilson@acm.org>
2309 * elf.c (assign_file_positions_for_segments): Set next_file_pos even
2310 if there are no segments.
2312 2004-11-02 Daniel Jacobowitz <dan@debian.org>
2314 * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
2316 2004-11-02 Nick Clifton <nickc@redhat.com>
2318 * elf32-iq2000.c: Convert to ISO C90 formatting.
2320 2004-11-02 Hans-Peter Nilsson <hp@axis.com>
2322 * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_.
2324 2004-10-28 H.J. Lu <hongjiu.lu@intel.com>
2326 * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
2327 undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
2328 R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
2330 2004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2332 * elf32-sh.c (tpoff): Take alignment into account.
2334 2004-10-28 Nick Clifton <nickc@redhat.com>
2336 * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when
2337 performing a relocatable link.
2338 (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only
2339 for MIPS ports under Irix.
2341 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
2343 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle
2344 R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24.
2345 (elf32_arm_final_link_relocate): Ditto.
2346 (arm_add_to_rel, elf32_arm_relocate_section): Ditto.
2347 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto
2348 (elf32_arm_adjust_dynamic_symbol): Ditto.
2349 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and
2350 R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}...
2351 (elf32_arm_r_howto): ... To here.
2352 (elf32_arm_howto_from_type): Use elf32_arm_r_howto.
2354 2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
2357 * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
2358 R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
2359 and R_IA64_SECREL64LSB.
2361 2004-10-26 Paul Brook <paul@codesourcery.com>
2363 * elflink.c (elf_finalize_dynstr): Skip shared aux structure.
2364 (bfd_elf_size_dynamic_sections): Create default version definition.
2365 (elf_link_output_extsym): Adjust for default symbol version.
2367 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
2369 * mmo.c: Adjust to ISO C.
2371 * mmo.c (mmo_write_section_description): New function broken out
2372 of mmo_internal_write_section.
2373 (mmo_internal_write_section): For each of .text and .data, call
2374 mmo_write_section_description before outputting contents if it has
2375 nontrivially deducible vma or contents.
2376 (mmo_has_leading_or_trailing_zero_tetra_p): New function.
2377 (mmo_canonicalize_symtab): Adjust absolute symbols to .data
2378 symbols if found within the .data address range.
2380 2004-10-24 Daniel Jacobowitz <dan@debian.org>
2382 * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
2384 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
2386 * mmo.c (File Layout): Correct place of misplaced blurb about
2389 2004-10-22 Mark Kettenis <kettenis@gnu.org>
2391 * config.bfd: Add mips64*-*-openbsd.
2393 2004-10-21 Bob Wilson <bob.wilson@acm.org>
2395 * elf32-xtensa.c (ebb_propose_action): Put declarations before
2398 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2400 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
2401 * configure: Regenerate.
2403 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2406 * aoutx.h (aout_link_input_section_std): Pass proper hash entry
2407 to linker reloc_overflow callback.
2408 (aout_link_input_section_ext): Likewise.
2409 (aout_link_reloc_link_order): Likewise.
2410 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
2411 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
2413 (alpha_relocate_section): Likewise.
2414 * coff-arm.c (coff_arm_relocate_section): Likewise.
2415 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
2416 * coff-h8500.c (extra_case): Likewise.
2417 * coff-i960.c (coff_i960_relocate_section): Likewise.
2418 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
2419 * coff-mips.c (mips_relocate_section): Likewise.
2420 * coff-or32.c (coff_or32_relocate_section): Likewise.
2421 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
2422 * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise.
2423 * coff-sh.c (sh_relocate_section): Likewise.
2424 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
2425 * coff-w65.c (w65_reloc16_extra_cases): Likewise.
2426 * coff-z8k.c (extra_case): Likewise.
2427 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
2428 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
2429 (_bfd_coff_generic_relocate_section): Likewise.
2430 * ecoff.c (ecoff_reloc_link_order): Likewise.
2431 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2432 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
2433 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
2434 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2435 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
2436 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
2437 * elf32-cris.c (cris_elf_relocate_section): Likewise.
2438 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
2439 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
2440 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2441 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2442 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
2443 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2444 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2445 * elf32-i386.c (elf_i386_relocate_section): Likewise.
2446 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
2447 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
2448 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
2449 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2450 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
2451 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2452 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2453 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
2454 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
2455 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2456 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2457 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2458 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2459 * elf32-v850.c (v850_elf_relocate_section): Likewise.
2460 * elf32-vax.c (elf_vax_relocate_section): Likewise.
2461 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
2462 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2463 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
2464 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2465 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2466 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2467 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2468 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2469 * elflink.c (elf_reloc_link_order): Likewise.
2470 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
2471 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
2472 (_bfd_elf_mips_get_relocated_section_contents): Likewise.
2473 * linker.c (_bfd_generic_reloc_link_order): Likewise.
2474 * pdp11.c (pdp11_aout_link_input_section): Likewise.
2475 (aout_link_reloc_link_order): Likewise.
2476 * reloc.c (bfd_generic_get_relocated_section_contents):
2478 * xcofflink.c (xcoff_reloc_link_order): Likewise.
2479 * simple.c (simple_dummy_reloc_overflow): Updated.
2481 2004-10-20 Andreas Schwab <schwab@suse.de>
2483 * elf32-m68k.c (elf_m68k_plt_sym_val): New function.
2484 (elf_backend_plt_sym_val): Define.
2486 2004-10-19 Danny Smith <dannysmith@users.sourceforege.net>
2488 * config.bfd: Set targ_underscore=yes for PE COFF targets
2490 2004-10-19 Alan Modra <amodra@bigpond.net.au>
2492 * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
2493 (ppc64_elf_edit_opd): Likewise.
2495 2004-10-18 Mark Mitchell <mark@codesourcery.com>
2497 * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
2498 * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
2499 set SEC_ALLOC and SEC_LOAD.
2501 2004-10-18 Nick Clifton <nickc@redhat.com>
2503 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
2504 'name' for relocs against both local and global symbols.
2506 2004-10-16 Daniel Jacobowitz <dan@debian.org>
2508 * bfd-in2.h: Regenerate.
2509 * bfd.c (struct bfd): Add no_export.
2510 * elflink.c (elf_link_add_object_symbols): Handle no_export.
2512 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2514 * config.bfd: Whitespace cleanup.
2515 * Makefile.am: Run "make dep-am"
2516 * Makefile.in: Regenerate.
2518 2004-10-15 Jakub Jelinek <jakub@redhat.com>
2520 * elflink.c (struct already_linked_section): Removed.
2521 (try_match_symbols_in_sections, already_linked): Removed.
2522 (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
2523 prefix of section names when finding already_linked_table
2524 chain. Compare section names. Instead of calling already_linked,
2525 do it inline and only for sections in the same already_linked_list.
2527 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2529 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
2530 parameter. If called after _bfd_elf_write_section_eh_frame,
2531 don't allow a -2 return unless need_* bit is already set, and
2532 handle offsets adjusted for output_offset.
2533 * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
2534 * elf.c (_bfd_elf_section_offset): Update call.
2536 2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
2539 * coffcode.h (coff_compute_section_file_positions): Cast to
2540 bfd_vma when computing page alignment.
2542 2004-10-13 Mark Mitchell <mark@codesourcery.com>
2544 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
2545 offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.
2547 2004-10-12 Mark Mitchell <mark@codesourcery.com>
2549 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
2550 relocations use a virtual address, not a section offset.
2552 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2554 * elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
2555 (narrow_instruction, widen_instruction): Remove unnecessary calls to
2556 xtensa_format_encode.
2557 (ebb_propose_action): Inline call to ebb_add_proposed_action.
2558 (ebb_add_proposed_action): Delete.
2560 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2562 * elf32-xtensa.c: Use ISO C90 formatting.
2564 2004-10-12 Paul Brook <paul@codesourcery.com>
2566 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
2569 2004-10-12 Paul Brook <paul@codesourcery.com>
2571 * elf32-arm.h: Support EABI version 4 objects.
2573 2004-10-12 Alan Modra <amodra@bigpond.net.au>
2576 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain.
2577 Don't mark as default.
2578 (bfd_x86_64_arch): Don't mark as default.
2580 2004-10-12 Alan Modra <amodra@bigpond.net.au>
2582 * elflink.c (enum action_discarded): New.
2583 (elf_section_complain_discarded): Delete.
2584 (elf_action_discarded): New function subsuming the above and also
2585 controlling reloc behaviour.
2586 (elf_link_input_bfd): Use it.
2588 2004-10-11 Jakub Jelinek <jakub@redhat.com>
2590 * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST.
2591 (special_sections): Add .gnu.liblist and .gnu.conflict.
2592 (assign_section_numbers): Handle SHT_GNU_LIBLIST.
2594 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2597 * elflink.c (elf_link_input_bfd): Try harder to support
2598 relocations against symbols in removed linkonce sections.
2600 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2602 * elflink.c (elf_link_input_bfd): Revert PR 354 change.
2605 * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
2606 sections do not reference symbols in non-SEC_ALLOC sections.
2608 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2611 * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
2612 (_bfd_elf_link_omit_section_dynsym): Formatting.
2614 2004-10-10 Alan Modra <amodra@bigpond.net.au>
2616 * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
2617 * libbfd.h: Regnerate.
2618 * elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
2619 * elf32-frv.c: Likewise.
2620 * elf32-m32r.c: Likewise.
2621 * elf32-ppc.c: Likewise.
2622 * elf64-hppa.c: Likewise.
2623 * elfxx-ia64.c: Likewise.
2624 * opncls.c: Likewise.
2626 2004-10-10 Alan Modra <amodra@bigpond.net.au>
2628 * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted.
2629 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust
2630 offsets stored in struct eh_cie_fde entries before doing other
2633 * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec.
2634 (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset.
2635 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code
2636 setting offsets for removed CIEs. Don't set "sec", instead set
2637 cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a
2638 CIE in hdr_info. Only set make_relative and make_lsda_relative
2639 for CIEs. Use pointers rather than array indices.
2640 (_bfd_elf_eh_frame_section_offset): Test/set make_relative,
2641 make_lsda_relative, need_* on cie_inf for FDEs.
2642 (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for
2643 section output_offset. Delete cie_offset, instead use cie_inf
2644 pointer to CIE entry. Use need_relative and need_lsda_relative on
2645 CIE entry for FDEs. Use pointers rather than array indices.
2647 2004-10-09 Alan Modra <amodra@bigpond.net.au>
2649 * coff-rs6000.c (rs6000coff_vec): Add initializer for
2650 bfd_is_target_special_symbol.
2651 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2652 * som.c (som_bfd_is_target_special_symbol): Define.
2654 2004-10-08 Nick Clifton <nickc@redhat.com>
2656 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93.
2657 * configure: Regenerate.
2658 * bfd-in2.h: Regenerate.
2659 * syms.c (bfd_is_target_special_symbol): New interface function.
2660 Returns true when a symbol should be considered to be special.
2661 * targets.c (bfd_target): Include bfd_is_target_special_symbol in
2662 the symbol jump table.
2663 * elf32-arm.h (elf32_arm_is_target_special_symbol): New function.
2664 Return true iff the symbol is a mapping symbol.
2665 (bfd_elf32_bfd_is_target_special_symbol): Define.
2666 * elfxx-target.h: Provide a default definition for
2667 bfd_is_target_special_symbol.
2668 * aout-target.h: Likewise.
2669 * aout-tic30.c: Likewise.
2670 * binary.c: Likewise.
2671 * coffcode.h: Likewise.
2672 * i386msdos.c: Likewise.
2675 * libaout.h: Likewise.
2676 * libbfd-in.h: Likewise
2677 * libecoff.h: Likewise.
2678 * mach-o.c: Likewise.
2680 * nlm-target.h: Likewise.
2681 * oasys.c: Likewise.
2683 * ppcboot.c: Likewise.
2685 * tekhex.c: Likewise.
2686 * versados.c: Likewise.
2688 * xcoff-target.h: Likewise.
2690 * libbfd.h: Regenerate.
2692 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2694 * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*.
2695 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function.
2696 (elf_backend_section_from_shdr): Define.
2698 2004-10-08 Alan Modra <amodra@bigpond.net.au>
2700 * syms.c (bfd_is_local_label): Return false for file symbols.
2702 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2703 David Heine <dlheine@tensilica.com>
2705 * elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
2706 (xtensa_default_isa): Global variable moved here from xtensa-isa.c.
2707 (elf32xtensa_no_literal_movement): New global variable.
2708 (elf_howto_table): Add entries for new relocations.
2709 (elf_xtensa_reloc_type_lookup): Handle new relocations.
2710 (property_table_compare): When addresses are equal, compare sizes and
2711 various property flags.
2712 (property_table_matches): New.
2713 (xtensa_read_table_entries): Extend to read new property tables. Add
2714 output_addr parameter to indicate that output addresses should be used.
2715 Use bfd_get_section_limit.
2716 (elf_xtensa_find_property_entry): New.
2717 (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry.
2718 (elf_xtensa_check_relocs): Handle new relocations.
2719 (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new
2720 relocations. Use new xtensa-isa.h functions.
2721 (build_encoding_error_message): Remove encode_result parameter. Add
2722 new target_address parameter used to detect alignment errors.
2723 (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up
2724 error handling. Use new is_operand_relocation function.
2725 (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data):
2726 Use underbar macro for error messages. Formatting.
2727 (get_const16_opcode): New.
2728 (get_l32r_opcode): Add a separate flag for initialization.
2729 (get_relocation_opnd): Operand number is no longer explicit in the
2730 relocation. Change to decode the opcode and analyze its operands.
2731 (get_relocation_slot): New.
2732 (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit.
2733 Use new xtensa-isa.h functions to handle multislot instructions.
2734 (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation.
2735 (get_asm_simplify_size, is_alt_relocation, is_operand_relocation,
2736 insn_decode_len, insn_decode_opcode, check_branch_target_aligned,
2737 check_loop_aligned, check_branch_target_aligned_address, narrowable,
2738 widenable, narrow_instruction, widen_instruction, op_single_fmt_table,
2739 get_single_format, init_op_single_format_table): New.
2740 (elf_xtensa_do_asm_simplify): Add error_message parameter and use it
2741 instead of calling _bfd_error_handler. Use new xtensa-isa.h functions.
2742 (contract_asm_expansion): Add error_message parameter and pass it to
2743 elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation
2744 with R_XTENSA_SLOT0_OP.
2745 (get_expanded_call_opcode): Extend to handle either L32R or CONST16
2746 instructions. Use new xtensa-isa.h functions.
2747 (r_reloc struct): Add new virtual_offset field.
2748 (r_reloc_init): Add contents and content_length parameters. Set
2749 virtual_offset field to zero. Add contents to target_offset field for
2750 partial_inplace relocations.
2751 (r_reloc_is_defined): Check for null.
2752 (print_r_reloc): New debug function.
2753 (source_reloc struct): Replace xtensa_operand field with pair of the
2754 opcode and the operand position. Add is_abs_literal field.
2755 (init_source_reloc): Specify operand by opcode/position pair. Set
2756 is_abs_literal field.
2757 (source_reloc_compare): When target_offsets are equal, compare other
2758 fields to make sorting predictable.
2759 (literal_value struct): Add is_abs_literal field.
2760 (value_map_hash_table struct): Add has_last_loc and last_loc fields.
2761 (init_literal_value): New.
2762 (is_same_value): Replace with ...
2763 (literal_value_equal): ... this function. Add comparisons of
2764 virtual_offset and is_abs_literal fields.
2765 (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation
2766 failure. Initialize has_last_loc field.
2767 (value_map_hash_table_delete): New.
2768 (hash_literal_value): Rename to ...
2769 (literal_value_hash): ... this. Include is_abs_literal flag and
2770 virtual_offset field in the hash value.
2771 (get_cached_value): Rename to ...
2772 (value_map_get_cached_value): ... this. Update calls to
2773 literal_value_hash and literal_value_equal.
2774 (add_value_map): Check for allocation failure. Update calls to
2775 value_map_get_cached_value and literal_value_hash.
2776 (text_action, text_action_list, text_action_t): New types.
2777 (find_fill_action, compute_removed_action_diff, adjust_fill_action,
2778 text_action_add, text_action_add_literal, offset_with_removed_text,
2779 offset_with_removed_text_before_fill, find_insn_action,
2780 print_action_list, print_removed_literals): New.
2781 (offset_with_removed_literals): Delete.
2782 (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list,
2783 fix_array, fix_array_count, allocated_relocs, relocs_count, and
2784 allocated_relocs_count fields.
2785 (init_xtensa_relax_info): Initialize new fields.
2786 (reloc_bfd_fix struct): Add new translated field.
2787 (reloc_bfd_fix_init): Add translated parameter and use it to set the
2789 (fix_compare, cache_fix_array): New.
2790 (get_bfd_fix): Remove fix_list parameter and get all relax_info for the
2791 section via get_xtensa_relax_info. Use cache_fix_array to set up
2792 sorted fix_array and use bsearch instead of linear search.
2793 (section_cache_t): New struct.
2794 (init_section_cache, section_cache_section, clear_section_cache): New.
2795 (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types.
2796 (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds,
2797 extend_ebb_bounds_forward, extend_ebb_bounds_backward,
2798 insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action):
2800 (retrieve_contents): Use bfd_get_section_limit.
2801 (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call
2802 to compute_removed_literals. Free value_map_hash_table when no longer
2804 (analyze_relocations): Check is_relaxable_asm_section flag. Call
2805 compute_text_actions for all sections.
2806 (find_relaxable_sections): Mark sections as relaxable if they contain
2807 ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init
2808 call. Increment relax_info src_count field only for appropriate
2809 relocation types. Remove is_literal_section check.
2810 (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to
2811 r_reloc_init and find_associated_l32r_irel. Check
2812 is_relaxable_asm_section flag. Handle L32R instructions with absolute
2813 literals. Pass is_abs_literal flag to init_source_reloc.
2814 (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for
2815 CONST16 instructions. Adjust calls to r_reloc_init and
2816 pcrel_reloc_fits. Handle weak symbols conservatively.
2817 (find_associated_l32r_irel): Add bfd parameter and pass it to
2819 (compute_text_actions, compute_ebb_proposed_actions,
2820 compute_ebb_actions, check_section_ebb_pcrels_fit,
2821 check_section_ebb_reduces, text_action_add_proposed,
2822 compute_fill_extra_space): New.
2823 (remove_literals): Replace with ...
2824 (compute_removed_literals): ... this function. Call
2825 init_section_cache. Use bfd_get_section_limit. Sort internal_relocs.
2826 Call xtensa_read_table_entries to get the property table. Skip
2827 relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new
2828 is_removable_literal, remove_dead_literal, and
2829 identify_literal_placement functions.
2830 (get_irel_at_offset): Rewrite to use bsearch on sorted relocations
2831 instead of linear search.
2832 (is_removable_literal, remove_dead_literal,
2833 identify_literal_placement): New.
2834 (relocations_reach): Update check for literal not referenced by any
2835 PC-relative relocations. Adjust call to pcrel_reloc_fits.
2836 (coalesce_shared_literal, move_shared_literal): New.
2837 (relax_section): Use bfd_get_section_limit. Call
2838 translate_section_fixes. Update calls to r_reloc_init and
2839 offset_with_removed_text. Check new is_relaxable_asm_section flag.
2840 Add call to pin_internal_relocs. Add special handling for
2841 R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset
2842 info to calculate new addend_displacement variable. Replace code for
2843 deleting literals with more general code to perform the actions
2844 determined by the action_list for the section.
2845 (translate_section_fixes, translate_reloc_bfd_fix): New.
2846 (translate_reloc): Check new is_relaxable_asm_section flag. Call
2847 find_removed_literal only if is_operand_relocation. Update call to
2848 offset_with_removed_text. Use new target_offset and removed_bytes
2850 (move_literal): New.
2851 (relax_property_section): Use bfd_get_section_limit. Set new
2852 is_full_prop_section flag and handle new property tables. Update calls
2853 to r_reloc_init and offset_with_removed_text. Check
2854 is_relaxable_asm_section flag. Handle expansion of zero-sized
2855 unreachable entries, with use of offset_with_removed_text_before_fill.
2856 For relocatable links, combine entries only for literal tables.
2857 (relax_section_symbols): Check is_relaxable_asm_section flag. Update
2858 calls to offset_with_removed_text. Translate st_size field for
2860 (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate
2861 failure. Add contents parameter. Update call to get_bfd_fix. Update
2862 call to r_reloc_init. Call _bfd_error_handler and return FALSE for
2863 R_XTENSA_ASM_EXPAND relocs.
2864 (do_fix_for_final_link): Add input_bfd and contents parameters. Update
2865 call to get_bfd_fix. Include offset from contents for partial_inplace
2867 (is_reloc_sym_weak): New.
2868 (pcrel_reloc_fits): Use new xtensa-isa.h functions.
2869 (prop_sec_len): New.
2870 (xtensa_is_property_section): Handle new property sections.
2871 (is_literal_section): Delete.
2872 (internal_reloc_compare): When r_offset matches, compare r_info and
2873 r_addend to make sorting predictable.
2874 (internal_reloc_matches): New.
2875 (xtensa_get_property_section_name): Handle new property sections.
2876 (xtensa_get_property_predef_flags): New.
2877 (xtensa_callback_required_dependence): Use bfd_get_section_limit.
2878 Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init.
2879 * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c.
2880 (xtisa_errno, xtisa_error_msg): New variables.
2881 (xtensa_isa_errno, xtensa_isa_error_msg): New.
2882 (xtensa_insnbuf_alloc): Add error handling.
2883 (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to
2884 use xtensa_format_decode. Add error handling.
2885 (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the
2886 instruction length to find the number of bytes to copy.
2887 (xtensa_isa_init): Add error handling. Replace calls to
2888 xtensa_load_isa and xtensa_extend_isa with code to initialize lookup
2889 tables in the xtensa_modules structure.
2890 (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa,
2891 xtensa_extend_isa): Delete.
2892 (xtensa_isa_free): Change to only free lookup tables.
2893 (opname_lookup_compare): Replace with ...
2894 (xtensa_isa_name_compare): ... this function. Use strcasecmp.
2895 (xtensa_insn_maxlength): Rename to ...
2896 (xtensa_isa_maxlength): ... this.
2897 (xtensa_insn_length): Delete.
2898 (xtensa_insn_length_from_first_byte): Replace with ...
2899 (xtensa_isa_length_from_chars): ... this function.
2900 (xtensa_num_opcodes): Rename to ...
2901 (xtensa_isa_num_opcodes): ... this.
2902 (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
2903 xtensa_isa_num_regfiles, xtensa_isa_num_stages,
2904 xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
2905 xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
2906 xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
2907 xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
2908 xtensa_format_get_slot, xtensa_format_set_slot): New functions.
2909 (xtensa_opcode_lookup): Add error handling.
2910 (xtensa_decode_insn): Replace with ...
2911 (xtensa_opcode_decode): ... this function, with new format and
2912 slot parameters. Add error handling.
2913 (xtensa_encode_insn): Replace with ...
2914 (xtensa_opcode_encode): ... this function, which does the encoding via
2915 one of the entries in the "encode_fns" array. Add error handling.
2916 (xtensa_opcode_name): Add error handling.
2917 (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop,
2918 xtensa_opcode_is_call): New.
2919 (xtensa_num_operands): Replace with ...
2920 (xtensa_opcode_num_operands): ... this function. Add error handling.
2921 (xtensa_opcode_num_stateOperands,
2922 xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
2923 xtensa_opcode_funcUnit_use, xtensa_operand_name,
2924 xtensa_operand_is_visible): New.
2925 (xtensa_get_operand, xtensa_operand_kind): Delete.
2926 (xtensa_operand_inout): Add error handling and special-case for
2928 (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to
2929 operate on one slot of an instruction. Added error handling.
2930 (xtensa_operand_encode): Handle default operands with no encoding
2931 functions. Check for success by comparing against decoded value.
2933 (xtensa_operand_decode): Handle default operands. Return decoded value
2934 through argument pointer. Add error handling.
2935 (xtensa_operand_is_register, xtensa_operand_regfile,
2936 xtensa_operand_num_regs, xtensa_operand_is_known_reg): New.
2937 (xtensa_operand_isPCRelative): Rename to ...
2938 (xtensa_operand_is_PCrelative): ... this. Add error handling.
2939 (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value
2940 through argument pointer. Add error handling.
2941 (xtensa_stateOperand_state, xtensa_stateOperand_inout,
2942 xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
2943 xtensa_regfile_lookup_shortname, xtensa_regfile_name,
2944 xtensa_regfile_shortname, xtensa_regfile_view_parent,
2945 xtensa_regfile_num_bits, xtensa_regfile_num_entries,
2946 xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
2947 xtensa_state_is_exported, xtensa_sysreg_lookup,
2948 xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
2949 xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
2950 xtensa_interface_num_bits, xtensa_interface_inout,
2951 xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
2952 xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New.
2953 * xtensa-modules.c: Rewrite to use new data structures.
2954 * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16,
2955 BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP,
2956 BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP,
2957 BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP,
2958 BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP,
2959 BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP,
2960 BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP,
2961 BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP,
2962 BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP,
2963 BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT,
2964 BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT,
2965 BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT,
2966 BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT,
2967 BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT,
2968 BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT,
2969 BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT,
2970 BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations.
2971 * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies.
2972 * Makefile.in: Regenerate.
2973 * bfd-in2.h: Likewise.
2974 * libbfd.h: Likewise.
2976 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
2978 * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
2979 against the absolute section.
2980 (mips_elf64_write_rela): Likewise.
2982 2004-10-07 Jan Beulich <jbeulich@novell.com>
2984 * elf.c (elf_find_function): Don't generally check for matching
2985 section, just for non-file symbols. Remove redunant comparison
2987 * elf32-arm.h (arm_elf_find_function): Likewise.
2989 2004-10-07 Jeff Baker <jbaker@qnx.com>
2991 * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if
2992 adding a DT_TEXTREL to a shared object and --warn-shared-textrel
2995 2004-10-04 Roland McGrath <roland@redhat.com>
2997 * hash.c (bfd_hash_set_default_size): Use const for table.
2998 Use size_t instead of int for variable compared to sizeof results.
3000 2004-10-05 Alan Modra <amodra@bigpond.net.au>
3003 * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
3005 2004-10-01 Paul Brook <paul@codesourcery.com>
3007 * elf32-arm.h (elf32_arm_fake_sections,
3008 is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New
3010 (elf_backend_fake_sections, elf_backend_section_from_shdr): Define.
3012 2004-10-01 Alan Modra <amodra@bigpond.net.au>
3014 * elf-bfd.h (struct eh_cie_fde): Add need_relative and
3016 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
3017 need_relative or need_lsda_relative if we are processing an
3018 offset for a reloc on a FDE initial loc or LSDA field
3020 (_bfd_elf_write_section_eh_frame): Test need_relative and
3021 need_lsda_relative in place of corresponding make_* field
3022 when deciding to use pc-relative encodings.
3024 2004-09-30 Paul Brook <paul@codesourcery.com>
3026 * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
3027 target2 relocation type.
3029 2004-09-30 H.J. Lu <hongjiu.lu@intel.com>
3032 * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
3034 2004-09-30 Paul Brook <paul@codesourcery.com>
3036 * reloc.c: Add BFD_RELOC_ARM_SMI.
3037 * bfd-in2.h: Regenerate.
3040 2004-09-24 Alan Modra <amodra@bigpond.net.au>
3042 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section
3043 vma and output offset to address.
3044 * simple.c (simple_save_output_info): Only set output section
3045 and offset for debug sections, or those not already set up by
3047 (bfd_simple_get_relocated_section_contents): Update comment.
3049 2004-09-24 Alan Modra <amodra@bigpond.net.au>
3051 * elf.c (IS_LOADED): Delete.
3052 (assign_file_positions_for_segments): Just test SEC_LOAD instead.
3053 Restore SEC_HAS_CONTENTS test to the one place it was used prior
3056 2004-09-23 Alan Modra <amodra@bigpond.net.au>
3059 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
3060 bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove
3061 redundant assignment of EM_SPARC.
3063 2004-09-22 Brian Ford <ford@vss.fsi.com>
3065 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
3066 alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3
3068 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3070 2004-09-22 Alan Modra <amodra@bigpond.net.au>
3072 * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
3073 (elf_backend_modify_segment_map): Don't define.
3075 2004-09-22 Alan Modra <amodra@bigpond.net.au>
3077 * elf.c (IS_LOADED): Define.
3078 (assign_file_positions_for_segments): Don't round up file offset of
3079 PT_LOAD segments containing no SEC_LOAD sections, instead round down.
3080 Delete code handling link script adjustment of lma. Do the adjust
3081 in later code handling similar ajustments. Remove dead code error
3082 check. Warn if section lma would require a negative offset
3083 adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz.
3084 Use p_vaddr + p_memsz inside section loop in place of voff. Don't
3085 update voff in section loop. Change voff in segment loop to be an
3086 adjustment on top of "off". Set sec->filepos and update "off" later.
3087 Test for loadable sections consistently using IS_LOADED. Similarly,
3088 test for alloc-only sections other than .tbss consistently.
3089 Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME.
3090 Tidy PT_NOTE handling. Use %B and %A in error messages.
3091 (assign_file_positions_except_relocs): Use %B in error message.
3093 2004-09-17 H.J. Lu <hongjiu.lu@intel.com>
3095 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
3096 (CONFIG_STATUS_DEPENDENCIES): New.
3097 (Makefile): Removed.
3098 (config.status): Likewise.
3099 * Makefile.in: Regenerated.
3101 2004-09-17 Paul Brook <paul@codesourcery.com>
3103 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
3104 (bfd_elf32_arm_process_before_allocation): Update prototype.
3105 * bfd-in2.h: Regenerate.
3106 * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
3107 (elf32_arm_link_hash_table_create): Set it.
3108 (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
3109 (bfd_elf32_arm_set_target_relocs): New function.
3110 (arm_real_reloc_type): New function.
3111 (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
3112 R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
3113 (elf32_arm_gc_sweep_hook): Ditto.
3114 (elf32_arm_check_relocs): Ditto.
3115 (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
3116 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
3118 (elf32_arm_got_prel): New variable.
3119 (elf32_arm_howto_from_type): New function.
3120 (elf32_arm_info_to_howto): Use it.
3121 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
3122 BFD_RELOC_ARM_TARGET2.
3123 * libbfd.h: Regenerate.
3124 * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
3126 2004-09-17 Alan Modra <amodra@bigpond.net.au>
3128 * ecoff.c: Update u.undef.next refs.
3129 * elf64-ppc.c: Likewise.
3130 * elflink.c: Likewise.
3131 * linker.c: Likewise.
3132 * xcofflink.c: Likewise.
3134 * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to
3135 dynamic_def. Combine weakdef and elf_hash_value. Move vtable
3136 fields to indirect struct.
3137 * elf-m10300.c: Update u.weakdef refs.
3138 * elf32-arm.h: Likewise.
3139 * elf32-cris.c: Likewise.
3140 * elf32-frv.c: Likewise.
3141 * elf32-hppa.c: Likewise.
3142 * elf32-i370.c: Likewise.
3143 * elf32-i386.c: Likewise.
3144 * elf32-m32r.c: Likewise.
3145 * elf32-m68k.c: Likewise.
3146 * elf32-ppc.c: Likewise.
3147 * elf32-s390.c: Likewise.
3148 * elf32-sh.c: Likewise.
3149 * elf32-sparc.c: Likewise.
3150 * elf32-vax.c: Likewise.
3151 * elf32-xtensa.c: Likewise.
3152 * elf64-alpha.c: Likewise.
3153 * elf64-hppa.c: Likewise.
3154 * elf64-ppc.c: Likewise.
3155 * elf64-s390.c: Likewise.
3156 * elf64-sh64.c: Likewise.
3157 * elf64-sparc.c: Likewise.
3158 * elf64-x86-64.c: Likewise.
3159 * elfxx-ia64.c: Likewise.
3160 * elfxx-mips.c: Likewise.
3161 * elflink.c: Likewise. Also u.elf_hash_value.
3162 (elf_gc_propagate_vtable_entries_used): Update for h->vtable
3164 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3165 (bfd_elf_gc_record_vtinherit): Alloc vtable.
3166 (bfd_elf_gc_record_vtentry): Likewise.
3167 * elf.c (_bfd_elf_link_hash_newfunc): Use memset.
3169 2004-09-17 Alan Modra <amodra@bigpond.net.au>
3171 * Makefile.am: Run "make dep-am".
3172 * Makefile.in: Regenerate.
3173 * bfd-in2.h: Regenerate.
3174 * po/SRC-POTFILES.in: Regenerate.
3175 * po/bfd.pot: Regenerate.
3177 2004-09-16 Alan Modra <amodra@bigpond.net.au>
3179 * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
3180 with bitfields. Make "type" and "other" bitfields too.
3181 (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
3182 ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
3183 ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
3184 ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
3185 ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
3186 ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
3187 ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
3188 (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
3189 * elf-hppa.h: Update all uses of elf_link_hash_flags.
3190 * elf-m10300.c: Likewise.
3192 * elf32-arm.h: Likewise.
3193 * elf32-cris.c: Likewise.
3194 * elf32-frv.c: Likewise.
3195 * elf32-hppa.c: Likewise.
3196 * elf32-i370.c: Likewise.
3197 * elf32-i386.c: Likewise.
3198 * elf32-m32r.c: Likewise.
3199 * elf32-m68k.c: Likewise.
3200 * elf32-ppc.c: Likewise.
3201 * elf32-s390.c: Likewise.
3202 * elf32-sh-symbian.c: Likewise.
3203 * elf32-sh.c: Likewise.
3204 * elf32-sh64.c: Likewise.
3205 * elf32-sparc.c: Likewise.
3206 * elf32-vax.c: Likewise.
3207 * elf32-xtensa.c: Likewise.
3208 * elf64-alpha.c: Likewise.
3209 * elf64-hppa.c: Likewise.
3210 * elf64-ppc.c: Likewise.
3211 * elf64-s390.c: Likewise.
3212 * elf64-sh64.c: Likewise.
3213 * elf64-sparc.c: Likewise.
3214 * elf64-x86-64.c: Likewise.
3215 * elflink.c: Likewise.
3216 * elfxx-ia64.c: Likewise.
3217 * elfxx-mips.c: Likewise.
3218 * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
3219 * configure: Regenerate.
3220 * aclocal.m4: Regenerate.
3222 2004-09-16 Alan Modra <amodra@bigpond.net.au>
3224 * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
3225 around uses of R_ARM_TARGET1.
3226 (elf32_arm_check_relocs): Likewise.
3228 2004-09-13 Paul Brook <paul@codesourcery.com>
3230 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
3232 * bfd-in2.h: Regenerate.
3233 * libbfd.h: Regenerate.
3234 * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
3235 (elf32_arm_link_hash_table_create): Set target1_is_rel.
3236 (bfd_elf32_arm_process_before_allocation): Ditto.
3237 (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
3238 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
3239 * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
3242 2004-09-10 Joel Brobecker <brobecker@gnat.com>
3244 * hpux-core.c (thread_section_p): New function.
3245 (hpux_core_core_file_p): Fix computation of offset in call
3246 to bfd_seek. Create a ".reg" section from an arbitrary
3247 ".reg/<id>" section if none was created after having read
3250 2004-09-11 Andreas Schwab <schwab@suse.de>
3252 * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
3253 * aclocal.m4: Rebuild.
3254 * configure: Rebuild.
3256 2004-09-10 Joel Brobecker <brobecker@gnat.com>
3258 * section.c (bfd_sections_find_if): Fix parameter name in
3259 comment to match code.
3261 2004-09-10 Alan Modra <amodra@bigpond.net.au>
3263 * elf.c (assign_file_positions_except_relocs): Assign relocs
3264 stored in a bfd section.
3266 2004-09-08 Hans-Peter Nilsson <hp@axis.com>
3268 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
3269 h->gotplt_refcount to 0, not -1.
3271 2004-09-07 Hans-Peter Nilsson <hp@axis.com>
3273 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
3274 case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
3276 (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
3277 handle symbol visibility here.
3279 2004-09-07 Alan Modra <amodra@bigpond.net.au>
3281 * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
3282 (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
3284 (ppc_stub_name): Remove trailing "+0" on stub name.
3285 (create_linkage_sections): Create relocations for
3286 branch lookup table when --emit-relocs as well as when --shared.
3287 (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust
3288 relbrlt test. For --emit-stub-syms, always output a sym even when
3289 one already exists on a plt call stub. Put stub type in the stub
3291 (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
3293 (ppc64_elf_size_stubs): Count global sym stubs added. Zero
3294 reloc_count in stub sections. Adjust relbrlt test.
3295 (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output.
3296 * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
3297 (elf_link_input_bfd): Ignore symbol index zero relocs when checking
3298 for relocs against discarded symbols. Fix comments.
3300 2004-09-06 Mark Mitchell <mark@codesourcery.com>
3302 * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
3303 * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
3305 (map_sections_to_segments): ... here. Use it. Assign a file
3306 position to the .dynamic section if it is not loadable, but part
3307 of the PT_DYNAMIC segment.
3308 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
3309 offsets, not VMAs, for the BPABI. Do not fill in the header in
3310 the .got.plt section for the BPABI.
3311 * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
3313 (elf_backend_want_got_plt): Define to zero for Symbian OS.
3315 2004-09-06 Nick Clifton <nickc@redhat.com>
3317 * elflink.c (elf_link_add_object_symbols): Set the error code to
3318 bfd_error_wrong_format when the input format does not match the
3321 2004-09-06 Alan Modra <amodra@bigpond.net.au>
3323 * elf64-ppc.c (is_ppc64_target): New function, extracted from..
3324 (ppc64_elf_check_directives): ..here.
3325 (ppc64_elf_size_dynamic_sections): Use it here to check bfd type
3326 before accessing ppc64_elf_tdata.
3327 (ppc64_elf_finish_dynamic_sections): And here too.
3329 2004-09-04 Alan Modra <amodra@bigpond.net.au>
3331 * bfd.c (_bfd_default_error_handler): Correct loop exit.
3333 2004-09-03 Mark Mitchell <mark@codesourcery.com>
3335 * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
3336 * configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
3337 (bfd_elf32_littlearm_symbian_vec): Likewise.
3338 * configure: Regenerated.
3339 * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
3340 * elf32-arm.h (PLT_HEADER_SIZE): Do not define.
3341 (PLT_ENTRY_SIZE): Likewise.
3342 (bfd_vma_elf32_arm_symbian_plt_entry): New
3344 (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
3346 (create_got_section): Don't create sections when generating BPABI
3348 (elf32_arm_create_dynamic_sections): Tidy.
3349 (elf32_arm_link_hash_table_create): Set plt_header_size,
3350 plt_entry_size, and symbian_p.
3351 (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
3352 generating BPABI objects.
3353 (allocate_dynrelocs): Use htab->plt_header_size, not
3354 PLT_HEADER_SIZE. Do not add to .got.plt when
3355 generating BPABI objects.
3356 (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
3357 * elfarm-nabi.c: Add SymbianOS target vectors.
3358 * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
3359 (_bfd_elf_link_create_dynamic_sections): Likewise.
3360 * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
3361 (elfNN_bed): Use it.
3362 * targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
3363 (bfd_elf32_littlearm_symbian_vec): Likewise.
3364 (_bfd_target_vector): Add them.
3366 2004-09-03 Nick Clifton <nickc@redhat.com>
3369 * coffcode.h (handle_COMDAT): Replace abort with an warning
3370 message and allow the scan to continue.
3372 2004-09-02 Alan Modra <amodra@bigpond.net.au>
3374 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
3375 in when reading relocs, not our sorted syms. Remove unnecessary
3378 2004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3380 * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
3382 2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
3384 * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
3385 Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
3386 replace uses of *_alias with *_noncanonical.
3387 * aclocal.m4: Rebuild with aclocal 1.4p6.
3388 * Makefile.in: Rebuild with automake 1.4p6.
3389 * doc/Makefile.in: Rebuild with automake 1.4p6.
3390 * configure.in: Autoupdate with autoupdate 2.59.
3391 * config.in: Regenerate with autoheader 2.59.
3392 * configure: Regnerate with autoconf 2.59.
3394 2004-08-28 Alan Modra <amodra@bigpond.net.au>
3396 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
3397 symbol pointer arrays before modifying.
3399 2004-08-28 Alan Modra <amodra@bigpond.net.au>
3401 * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
3402 * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
3403 * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
3404 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
3405 * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
3406 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
3407 Use both symbol tables on non-relocatable objects. Use a common
3408 error exit. Fix "mid" warning.
3409 * libbfd.h: Regenerate.
3410 * bfd-in2.h: Regenerate.
3412 2004-08-28 Alan Modra <amodra@bigpond.net.au>
3414 * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
3416 (struct sfpr_def_parms): Save some space.
3417 (sfpr_define): Here too.
3419 * elf64-ppc.c (compare_symbols): Put section syms first.
3420 (sym_exists_at): New function.
3421 (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
3422 points only for relocatable files. Use .opd section contents
3423 otherwise. Generally clean up the code.
3425 2004-08-27 Alan Modra <amodra@bigpond.net.au>
3427 * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
3428 LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
3429 (struct sfpr_def_parms): New.
3430 (sfpr_define): New function.
3431 (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
3432 (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
3433 (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
3434 (savefpr1_tail, restfpr1_tail): New functions.
3435 (savevr, savevr_tail, restvr, restvr_tail): New functions.
3436 (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
3437 (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
3438 code. Define all ABI mandated _save and _rest functions.
3440 2004-08-26 Paul Brook <paul@codesourcery.com>
3442 * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
3444 2004-08-26 Alan Modra <amodra@bigpond.net.au>
3446 * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
3449 2004-08-26 Alan Modra <amodra@bigpond.net.au>
3451 * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
3452 that pcrel correction is applied for R_386_PC32.
3454 2004-08-25 Alan Modra <amodra@bigpond.net.au>
3456 * elf32-i386.c (elf_i386_relocate_section): Zero section contents
3457 for R_386_32 and R_386_PC32 relocs against symbols defined in
3460 2004-08-25 Dmitry Diky <diwil@spec.ru>
3462 * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
3463 Add new relocations.
3464 * bfd-in2.h: Regenerate.
3465 * libbfd.h: Regenerate.
3466 * elf32-msp430.c: Clean-up code.
3467 (elf_msp430_howto_table): Add new relocation entries.
3468 (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
3469 (msp430_elf_relax_section): New function.
3470 (msp430_elf_relax_delete_bytes): New function.
3471 (msp430_elf_symbol_address_p): New function.
3473 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3475 * elf32-m32r.c (m32r_elf_relocate_section): Handle
3476 R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
3478 2004-08-20 Daniel Jacobowitz <dan@debian.org>
3480 * elflink.c (_bfd_elf_section_already_linked): Handle
3481 SEC_LINK_DUPLICATES_SAME_CONTENTS.
3483 2004-08-19 Mark Mitchell <mark@codesourcery.com>
3485 * config.bfd (arm*-*-symbianelf*): New target.
3486 (arm*-*-eabi*): Likewise.
3488 2004-08-19 Alan Modra <amodra@bigpond.net.au>
3490 * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
3491 "struct ppc_link_hash_entry *".
3492 (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
3493 to satisfy RELOC_FOR_GLOBAL_SYMBOL.
3495 2004-08-19 Jakub Jelinek <jakub@redhat.com>
3497 * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
3498 entries (where fd_aux overlaps next entry's fd_func).
3499 Add non_overlapping argument, use it.
3500 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
3501 ppc64_elf_size_stubs, ppc64_elf_relocate_section,
3502 ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
3503 as indexes into opd_sym_map/opd_adjust array.
3504 * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
3506 2004-08-18 Alan Modra <amodra@bigpond.net.au>
3508 * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
3509 if we can look up their function descriptor in a regular file.
3511 2004-08-18 Nick Clifton <nickc@redhat.com>
3514 * cofflink.c (coff_link_add_symbols): Check that the comdat
3515 pointer in the coff_section_data structure has been initialised
3518 2004-08-18 Alan Modra <amodra@bigpond.net.au>
3521 * elflink.c (bfd_elf_record_link_assignment): Add comment about
3522 changing bfd_link_hash_undefined to bfd_link_hash_new.
3524 2004-08-17 Jakub Jelinek <jakub@redhat.com>
3526 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
3528 * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
3529 (synthetic_opd, synthetic_relocatable): New variables.
3530 (compare_symbols, compare_relocs): New helper routines.
3531 (ppc64_elf_get_synthetic_symtab): New function.
3532 * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
3534 * bfd-in2.h: Regenerated.
3535 * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
3536 to relsyms. Return 0 if abfd is relocatable.
3538 2004-08-17 Alan Modra <amodra@bigpond.net.au>
3540 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
3542 2004-08-17 Nick Clifton <nickc@redhat.com>
3544 * (is_arm_mapping_symbol_name): New function - return true
3545 when a symbol name matches the requirements for an ARM mapping
3547 (arm_elf_find_function): New function based on
3548 elf_find_function in elf.c but skipping ARM mapping symbols
3549 and including thumb function symbols.
3550 (elf32_arm_find_nearest_line): Use arm_elf_find_function.
3551 (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
3553 2004-08-17 Alan Modra <amodra@bigpond.net.au>
3555 * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
3556 (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
3557 (ppc64_elf_brtaken_reloc): Here too.
3559 2004-08-17 Alan Modra <amodra@bigpond.net.au>
3561 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
3563 (ppc64_elf_check_directives): Check that we have the right hash
3564 table before proceeding.
3566 2004-08-17 Alan Modra <amodra@bigpond.net.au>
3568 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
3569 (adjust_opd_syms): Attach opd syms for deleted entries to one of
3570 the sections that will be discarded.
3572 2004-08-16 Alan Modra <amodra@bigpond.net.au>
3574 * elflink.c (elf_section_complain_discarded): Ignore .fixup.
3576 2004-08-16 Alan Modra <amodra@bigpond.net.au>
3578 * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
3579 free space available.
3581 2004-08-16 Alan Modra <amodra@bigpond.net.au>
3583 * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
3584 occurrences with bfd_byte * thoughout file.
3586 * coff-rs6000.c (do_shared_object_padding): Warning fix.
3587 (xcoff_write_armap_big): Likewise.
3588 (xcoff_write_archive_contents_old): Likewise.
3589 (xcoff_write_archive_contents_big): Likewise.
3591 * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
3593 2004-08-13 Nick Clifton <nickc@redhat.com>
3595 * elf32-arm.h: Convert to ISO C90.
3597 2004-08-13 Alan Modra <amodra@bigpond.net.au>
3600 * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
3603 2004-08-13 Alan Modra <amodra@bigpond.net.au>
3605 * bfd.c (_bfd_default_error_handler): Handle %A and %B.
3606 (bfd_archive_filename, bfd_get_section_ident): Delete.
3607 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
3608 bfd_archive_filename.
3609 * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
3610 to warn about symbols in discarded sections. Use _bfd_error_handler.
3611 * aout-adobe.c (aout_adobe_callback): See below.
3612 * aout-cris.c (swap_ext_reloc_in): ..
3613 * coff-arm.c (find_thumb_glue, find_arm_glue,
3614 coff_arm_relocate_section, bfd_arm_process_before_allocation,
3615 coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
3616 coff_arm_copy_private_bfd_data): ..
3617 * coff-i860.c (i860_reloc_processing): ..
3618 * coff-mcore.c (mcore_coff_unsupported_reloc,
3619 coff_mcore_relocate_section): ..
3620 * coff-ppc.c (coff_ppc_relocate_section): ..
3621 * coff-rs6000.c (xcoff_create_csect_from_smclas
3622 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
3623 sh_swap_insns, sh_relocate_section): ..
3624 * coff-tic54x.c (tic54x_reloc_processing): ..
3625 * coff-tic80.c (coff_tic80_relocate_section): ..
3626 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
3627 * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
3628 coff_slurp_symbol_table, coff_classify_symbol,
3629 coff_slurp_reloc_table): ..
3630 * coffgen.c (_bfd_coff_read_string_table): ..
3631 * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
3632 _bfd_coff_generic_relocate_section): ..
3633 * cpu-arm.c (bfd_arm_merge_machines): ..
3634 * cpu-sh.c (sh_merge_bfd_arch): ..
3635 * elf-hppa.h (elf_hppa_relocate_section): ..
3636 * elf.c (bfd_elf_string_from_elf_section, setup_group,
3637 _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
3638 assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
3639 copy_private_bfd_data, _bfd_elf_validate_reloc): ..
3640 * elf32-arm.h (find_thumb_glue, find_arm_glue,
3641 bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
3642 elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
3643 elf32_arm_relocate_section, elf32_arm_set_private_flags,
3644 elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
3645 * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
3646 cris_elf_merge_private_bfd_data
3647 * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
3648 * elf32-gen.c (elf32_generic_link_add_symbols): ..
3649 * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
3650 elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
3651 elf32_hppa_relocate_section): ..
3652 * elf32-i370.c (i370_elf_merge_private_bfd_data,
3653 i370_elf_check_relocs, i370_elf_relocate_section): ..
3654 * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
3655 elf_i386_relocate_section): ..
3656 * elf32-m32r.c (m32r_elf_relocate_section,
3657 m32r_elf_merge_private_bfd_data): ..
3658 * elf32-m68hc1x.c (m68hc12_add_stub,
3659 _bfd_m68hc11_elf_merge_private_bfd_data): ..
3660 * elf32-m68k.c (elf_m68k_relocate_section): ..
3661 * elf32-mcore.c (mcore_elf_unsupported_reloc,
3662 mcore_elf_relocate_section): ..
3663 * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
3664 ppc_elf_check_relocs, ppc_elf_relocate_section,
3665 ppc_elf_begin_write_processing): ..
3666 * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
3667 elf_s390_relocate_section): ..
3668 * elf32-sh-symbian.c (sh_symbian_import_as,
3669 sh_symbian_process_embedded_commands,
3670 sh_symbian_relocate_section): ..
3671 * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
3672 sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
3673 sh_elf_merge_private_data): ..
3674 * elf32-sparc.c (elf32_sparc_check_relocs,
3675 elf32_sparc_relocate_section,
3676 elf32_sparc_merge_private_bfd_data): ..
3677 * elf32-v850.c (v850_elf_check_relocs,
3678 v850_elf_merge_private_bfd_data): ..
3679 * elf32-xtensa.c (elf_xtensa_check_relocs,
3680 elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
3681 * elf64-alpha.c (elf64_alpha_relax_with_lituse,
3682 elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
3683 elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
3684 * elf64-gen.c (elf64_generic_link_add_symbols): ..
3685 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
3686 ppc64_elf_check_relocs, ppc64_elf_edit_opd,
3687 ppc64_elf_relocate_section): ..
3688 * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
3689 elf_s390_relocate_section): ..
3690 * elf64-sh64.c (sh_elf64_relocate_section): ..
3691 * elf64-sparc.c (sparc64_elf_check_relocs,
3692 sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
3693 sparc64_elf_merge_private_bfd_data): ..
3694 * elf64-x86-64.c (elf64_x86_64_check_relocs,
3695 elf64_x86_64_relocate_section): ..
3696 * elflink.c (_bfd_elf_add_default_symbol,
3697 _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
3698 _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
3699 bfd_elf_size_dynamic_sections, elf_link_output_extsym,
3700 elf_get_linked_section_vma, elf_fixup_link_order,
3701 bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
3702 bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
3703 * elfxx-ia64.c (elfNN_ia64_relax_section,
3704 elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
3705 * elfxx-mips.c (mips_elf_perform_relocation,
3706 _bfd_mips_elf_check_relocs,
3707 _bfd_mips_elf_merge_private_bfd_data): ..
3708 * ieee.c (ieee_slurp_external_symbols): ..
3709 * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
3710 * libbfd.c (_bfd_generic_verify_endian_match): ..
3711 * linker.c (_bfd_generic_link_add_one_symbol,
3712 _bfd_generic_section_already_linked): ..
3713 * pdp11.c (translate_to_native_sym_flags): ..
3714 * pe-mips.c (coff_pe_mips_relocate_section): ..
3715 * peicode.h (pe_ILF_build_a_bfd): ..
3716 * srec.c (srec_bad_byte): ..
3717 * stabs.c (_bfd_link_section_stabs): ..
3718 * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
3719 Replace all uses of bfd_archive_filename and bfd_get_section_ident
3720 with corresponding %B and %A in _bfd_error_handler format string.
3721 Replace occurrences of "fprintf (stderr," with _bfd_error_handler
3722 calls to use %A and %B. Fix "against symbol .. from section" and
3723 similar error messages. Combine multiple _bfd_error_handler calls
3724 where they were separated due to bfd_archive_filename deficiencies.
3725 * bfd-in2.h: Regenerate.
3727 2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
3729 * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
3732 2004-08-10 Alan Modra <amodra@bigpond.net.au>
3734 * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
3735 (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
3736 Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
3738 (link_hash_newfunc): Init was_undefined.
3739 (add_symbol_adjust): Don't set undefined dot symbols to defweak;
3740 Use undefweak instead.
3741 (ppc64_elf_check_directives): Fix undefs chain.
3742 (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
3744 (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
3745 (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
3746 * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
3748 2004-08-09 Jakub Jelinek <jakub@redhat.com>
3750 * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
3751 error, test input_section flags rather than sec.
3753 2004-08-09 Alan Modra <amodra@bigpond.net.au>
3755 * elf-bfd.h (struct elf_backend_data): Add
3756 elf_backend_archive_symbol_lookup.
3757 (_bfd_elf_archive_symbol_lookup): Declare.
3758 * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
3759 (elf_link_add_archive_symbols): ..extracted from here. Call the
3761 * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
3762 (elfNN_bed): Init new field.
3763 * elf64-ppc.c (elf_backend_check_directives): Define.
3764 (elf_backend_archive_symbol_lookup): Define.
3765 (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
3766 a ppc_link_hash_entry pointer.
3768 (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
3769 (add_symbol_adjust, ppc64_elf_check_directives): New functions.
3770 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
3771 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
3772 ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
3773 ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
3774 ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
3777 2004-08-09 Alan Modra <amodra@bigpond.net.au>
3779 * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
3780 (ppc64_elf_add_symbol_hook): Test for NULL section.
3781 (get_sym_h): Formatting.
3782 (ppc64_elf_size_stubs): Include reloc addend in value stored as
3785 * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
3786 long branch stubs with code handling plt and r2off branch stubs.
3788 2004-08-09 Alan Modra <amodra@bigpond.net.au>
3790 * elf-bfd.h (_bfd_elf_gc_mark): Declare.
3791 * elflink.c (elf_link_input_bfd): Formatting.
3792 (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
3794 * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
3795 (link_hash_newfunc): Don't set it.
3796 (ppc64_elf_copy_indirect_symbol): Nor copy it.
3797 (ppc64_elf_mark_entry_syms): Delete.
3798 (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
3799 sections. Use get_opd_info.
3800 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
3802 2004-08-09 Alan Modra <amodra@bigpond.net.au>
3804 * elf64-ppc.c (adjust_opd_syms): Fix merge error.
3806 * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
3807 (func_desc_adjust): Don't set have_undefweak.
3808 (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
3809 (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
3811 * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
3812 "struct ppc_link_hash_entry *". Adjust all references.
3813 (ppc64_elf_hide_symbol): Correct a comment.
3815 * elf64-ppc.c (get_opd_info): New function.
3816 (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
3817 (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
3818 before calling get_fdh. Test fdh rather than h before dereferencing
3819 fdh. Mark removed symbols in opd_adjust.
3820 (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
3821 (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
3823 (ppc64_elf_output_symbol_hook): Likewise.
3825 2004-08-06 Paul Brook <paul@codesourcery.com>
3827 * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
3828 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
3829 BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
3830 * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
3831 and BFD_RELOC_ARM_SBREL32.
3832 * bfd-in2.h, bbfd.h: Regenerate.
3834 2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3836 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
3837 the dynamic link symbol actually in use.
3839 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
3841 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
3843 2004-07-31 Joel Brobecker <brobecker@gnat.com>
3844 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3846 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
3847 SHN_MIPS_TEXT and SHN_MIPS_DATA.
3849 2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
3850 Nick Clifton <nickc@redhat.com>
3853 * bfd.c (_bfd_default_error_handler): Make it global.
3855 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
3857 * elf.c (assign_section_numbers): Cope gracefully with sections
3858 which have SHF_LINK_ORDER set but no sh_link set up.
3859 * elflink.c (elf_get_linked_section_vma): Likewise.
3861 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
3864 * elfxx-target.h (elf_backend_link_order_error_handler): New.
3865 Set it to _bfd_default_error_handler.
3866 (elfNN_bed): Add elf_backend_link_order_error_handler.
3868 * libbfd-in.h (_bfd_default_error_handler): New.
3870 * libbfd.h: Regenerated.
3872 2004-07-30 Jakub Jelinek <jakub@redhat.com>
3874 * archures.c (bfd_mach_sparc_64bit_p): Define.
3875 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
3876 * bfd-in2.h: Rebuilt.
3878 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
3880 Introduce SH2a support.
3881 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
3882 * archures.c (bfd_mach_sh2a_nofpu): New.
3883 * bfd-in2.h: Rebuilt.
3884 * cpu-sh.c (SH2A_NOFPU_NEXT): New.
3885 (arch_info_struct): Add sh2a_nofpu.
3886 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
3887 2003-12-29 DJ Delorie <dj@redhat.com>
3888 * reloc.c: Add relocs for sh2a.
3889 * bfd-in2.h: Regenerate.
3890 * libbfd.hh: Regenerate.
3891 2003-12-01 Michael Snyder <msnyder@redhat.com>
3892 * archures.c (bfd_mach_sh2a): New.
3893 * bfd-in2.h: Rebuilt.
3894 * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
3896 (arch_info_struct): Add sh2a.
3897 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
3899 2004-07-28 Nick Clifton <nickc@redhat.com>
3900 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3903 * som.c (setup_sections): Improve estimation of space sizes in
3904 relocatable objects.
3906 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
3907 * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
3908 bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
3910 * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
3911 * configure: Regenerate.
3912 * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
3913 case that accepts OSABI=NetBSD and OSABI=SysV.
3914 (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
3915 the base of .got or .data (if .got does not exist).
3916 (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
3918 (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
3919 (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
3920 * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
3921 (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
3923 2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
3926 * elf-bfd.h (bfd_elf_section_data): Add sec_group.
3927 (elf_sec_group): Defined.
3928 (bfd_elf_match_symbols_in_sections): New prototype.
3929 (_bfd_elf_setup_group_pointers): Likewise.
3931 * elf.c (bfd_elf_discard_group): Abort.
3932 (bfd_elf_set_group_contents): Also include relocation sections.
3933 Remove zero-fill for ld -r.
3934 (_bfd_elf_setup_group_pointers): New function.
3935 (elf_sort_elf_symbol): Likewise.
3936 (elf_sym_name_compare): Likewise.
3937 (bfd_elf_match_symbols_in_sections): Likewise.
3939 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
3941 * elflink.c (match_group_member): New.
3942 (elf_link_input_bfd): Check group member for discarded section.
3943 (try_match_symbols_in_sections): New function.
3944 (already_linked): Likewise.
3945 (_bfd_elf_section_already_linked): Support mixing comdat group
3946 and linkonce section.
3948 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
3949 * linker.c (bfd_section_already_linked_table_traverse): New.
3951 * libbfd.h: Regenerated.
3953 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
3955 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
3956 BFD_RELOC_CRX_SWITCH32.
3957 * bfd-in2.h: Regenerate.
3958 * libbfd.h: Regenerate.
3959 * elf32-crx.c: Support relocation/relaxation of
3960 BFD_RELOC_CRX_SWITCH* types.
3962 2004-07-27 Alan Modra <amodra@bigpond.net.au>
3964 * elf64-ppc.c: Correct "Linker stubs" comment.
3966 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
3968 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
3970 (elf_linked_to_section): New.
3972 * elf.c (assign_section_numbers): Set up sh_link for
3975 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
3976 to sh_link for SHT_IA_64_UNWIND sections.
3978 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
3980 * elflink.c (elf_fixup_link_order): Add _() to error message.
3982 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
3984 * elflink.c (elf_fixup_link_order): Issue a warning and flag
3987 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
3989 * aout-adobe.c (aout_32_section_already_linked): Defined.
3990 * aout-target.h (MY_section_already_linked): Likewise.
3991 * aout-tic30.c (MY_section_already_linked): Likewise.
3992 * binary.c (binary_section_already_linked): Likewise.
3993 * bout.c (b_out_section_already_linked): Likewise.
3994 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
3995 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
3996 * coffcode.h (coff_section_already_linked): Likewise.
3997 * i386msdos.c (msdos_section_already_linked): Likewise.
3998 * i386os9k.c (os9k_section_already_linked): Likewise.
3999 * ieee.c (ieee_section_already_linked): Likewise.
4000 * ihex.c (ihex_section_already_linked): Likewise.
4001 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
4002 * mmo.c (mmo_section_already_linked): Likewise.
4003 * nlm-target.h (nlm_section_already_linked): Likewise.
4004 * oasys.c (oasys_section_already_linked): Likewise.
4005 * pef.c (bfd_pef_section_already_linked): Likewise.
4006 * ppcboot.c (ppcboot_section_already_linked): Likewise.
4007 * som.c (som_bfd_discard_group): Likewise.
4008 * srec.c (srec_section_already_linked): Likewise.
4009 * tekhex.c (tekhex_section_already_linked): Likewise.
4010 * versados.c (versados_section_already_linked): Likewise.
4011 * vms.c (vms_section_already_linked): Likewise.
4012 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
4013 * xsym.c (bfd_sym_section_already_linked): Likewise.
4015 * bfd-in.h (bfd_section_already_linked_table_init): New.
4016 (bfd_section_already_linked_table_free): Likewise.
4018 * coff-rs6000.c (rs6000coff_vec): Add
4019 _bfd_generic_section_already_linked.
4020 (pmac_xcoff_vec): Likewise.
4021 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
4022 (aix5coff64_vec): Likewise.
4024 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
4025 * elflink.c (_bfd_elf_section_already_linked): New function.
4027 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
4029 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
4030 (_bfd_generic_section_already_linked): New.
4031 (bfd_section_already_linked_hash_entry): Likewise.
4032 (bfd_section_already_linked): Likewise.
4033 (bfd_section_already_linked_table_lookup): Likewise.
4034 (bfd_section_already_linked_table_insert): Likewise.
4036 * linker.c (bfd_section_already_linked): New.
4037 (_bfd_section_already_linked_table): Likewise.
4038 (bfd_section_already_linked_table_lookup): Likewise.
4039 (bfd_section_already_linked_table_insert): Likewise.
4040 (already_linked_newfunc): Likewise.
4041 (bfd_section_already_linked_table_init): Likewise.
4042 (bfd_section_already_linked_table_free): Likewise.
4043 (_bfd_generic_section_already_linked): Likewise.
4045 * section.c (bfd_section): Remove comdat.
4046 (bfd_comdat_info): Moved to ...
4047 * bfd-in.h (coff_comdat_info): Here.
4048 (bfd_coff_get_comdat_section): New.
4049 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
4050 * libcoff-in.h (coff_section_tdata): Add comdat.
4051 * coffcode.h (handle_COMDAT): Updated.
4052 * cofflink.c (coff_link_add_symbols): Likewise.
4053 * ecoff.c (bfd_debug_section): Likewise.
4055 * targets.c (bfd_target): Add _section_already_linked.
4056 (BFD_JUMP_TABLE_LINK): Updated.
4058 * bfd-in2.h: Regenerated.
4059 * libbfd.h: Likewise.
4060 * libcoff.h: Likewise.
4062 2003-07-21 Paul Brook <paul@codesourcery.com>
4064 * elflink.c (elf_get_linked_section_vma, compare_link_order,
4065 elf_fixup_link_order): New functions.
4066 (bfd_elf_final_link): Call elf_fixup_link_order.
4068 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
4070 * elf-bfd.h (ELF_COMMON_DEF_P): New.
4071 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
4073 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
4074 _bfd_elf_symbol_refs_local_p.
4075 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
4078 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
4080 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
4082 (bfd_elf_get_dyn_lib_class): New prototype.
4083 * elf.c (bfd_elf_get_dyn_lib_class): New function.
4085 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
4086 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
4087 entry is needed. Issue an error if a DT_NEEDED entry is needed
4088 for a file marked DYN_NO_NEEDED.
4089 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
4092 * bfd-in2.h: Regenerated.
4094 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4096 * elflink.c (elf_section_complain_discarded): Don't complain in
4099 2004-07-10 James E Wilson <wilson@specifixinc.com>
4101 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
4102 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
4103 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
4104 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
4106 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
4107 bfd_put_64 to bfd_putl64.
4108 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
4110 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
4113 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
4114 .init/.fini sections when trying to relax it.
4116 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
4118 * elf.c (assign_file_positions_for_segments): Make sure the
4119 .dynamic section is the first section in the PT_DYNAMIC segment.
4121 2004-07-09 Nick Clifton <nickc@redhat.com>
4123 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
4124 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
4125 sh_elf_get_flags_from_mach functions so that they do not conflict
4126 when this target is built with other sh-elf targets.
4127 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
4128 suppression of this function.
4129 (sh_elf_find_flags): Likewise.
4131 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
4133 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
4134 (ALL_MACHINES_CFILES): Add cpu-crx.c.
4135 (BFD32_BACKENDS): Add elf32-crx.lo.
4136 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
4137 (cpu-crx.lo): New target.
4138 (elf32-crx.lo): New target.
4139 * Makefile.in: Regenerate.
4140 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
4141 (bfd_archures_list): Add bfd_crx_arch.
4142 * bfd-in2.h: Regenerate.
4143 * config.bfd: Handle crx-*-elf*, crx*.
4144 * configure.in: Handle bfd_elf32_crx_vec.
4145 * configure: Regenerate.
4146 * cpu-crx.c: New file.
4147 * elf32-crx.c: Likewise.
4148 * libbfd.h: Regenerate.
4149 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
4150 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
4151 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
4152 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
4153 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
4154 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
4155 * targets.c (bfd_elf32_crx_vec): Declare.
4156 (bfd_target_vector): Add bfd_elf32_crx_vec.
4158 2004-07-06 Nick Clifton <nickc@redhat.com>
4160 * config.bfd: Add sh-symbian-elf target.
4161 * configure.in: Add bfd_elf32_shl_symbian_vec.
4162 * configure: Regenerate.
4163 * elf-bfd.h (struct elf_backend_data): Add new field
4165 * elflink.c (elf_link_add_object_symbols): Invoke the
4166 check_directives function, if defined.
4167 * elfxx-target.h: Provide a default, NULL definition for
4169 * targets.c: Add bfd_elf32_shl_symbian_vec.
4170 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
4172 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
4173 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
4174 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
4175 not already been defined.
4176 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
4177 * sh-symbian.c: New file. Provide functions to support the
4178 * sh-symbian-elf target.
4179 * Makefile.am: Add elf32-sh-symbian.c
4180 * Makefile.in: Regenerate.
4182 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
4184 * elf32-sh.c: Include ../opcodes/sh-opc.h.
4185 * Makefile.am: Ran make dep-am.
4186 * Makefile.in: Ran make dep-in.
4188 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4190 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
4193 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4195 * config.bfd: Add want64 to configuration target s390-*-linux*.
4197 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
4199 * bfd.c (bfd_get_section_ident): New.
4201 * elflink.c (elf_link_read_relocs_from_section): Call
4202 bfd_get_section_ident to identify the section when reporting
4204 (_bfd_elf_link_output_relocs): Likewise.
4205 (elf_link_output_extsym): Likewise.
4206 (elf_link_input_bfd): Likewise.
4207 (bfd_elf_gc_record_vtinherit): Likewise.
4209 * bfd-in2.h: Regenerated.
4211 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
4212 Nick Clifton <nickc@redhat.com>
4215 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
4216 of section symbols to mips_elf_sort_hash_table ().
4218 2004-07-01 Alan Modra <amodra@bigpond.net.au>
4220 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
4222 (elf_section_complain_discarded): New function. Handle
4223 .gcc_except_table too.
4224 (elf_link_input_bfd): Rewrite handling of relocs against symbols
4225 in discarded sections.
4226 * elf-bfd.h (elf_discarded_section): Protect macro arg.
4228 2004-06-30 James E Wilson <wilson@specifixinc.com>
4230 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
4231 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
4233 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
4236 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
4237 local references to discarded sections and report their
4240 2004-06-30 Alan Modra <amodra@bigpond.net.au>
4242 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
4243 sec_info_type, test section name instead.
4245 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
4248 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
4249 in .init/.fini sections.
4251 2004-06-29 Bob Wilson <bob.wilson@acm.org>
4253 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
4254 bfd_get_section_limit.
4256 2004-06-29 Bob Wilson <bob.wilson@acm.org>
4258 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
4259 output section size.
4261 2004-06-29 Alan Modra <amodra@bigpond.net.au>
4263 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
4265 (mmix_elf_perform_relocation): Adjust for above change.
4266 (mmix_elf_relocate_section): Likewise.
4267 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
4268 (mmix_elf_get_section_contents): Delete.
4269 (bfd_elf64_get_section_contents): Delete.
4270 (mmix_elf_relocate_section): Zero stub area.
4271 * linker.c (default_indirect_link_order): Alloc max of section size
4273 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
4274 * section.c (bfd_malloc_and_get_section): Likewise.
4275 (struct bfd_section): Update rawsize comment.
4276 * bfd-in2.h: Regenerate.
4278 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
4280 2004-06-29 Alan Modra <amodra@bigpond.net.au>
4282 * bfd-in.h (bfd_get_section_limit): Define.
4283 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
4284 (_bfd_final_link_relocate): Use bfd_get_section_limit.
4285 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
4286 * coff-arm.c (coff_arm_relocate_section): Likewise.
4287 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
4288 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
4289 (bfd_ns32k_final_link_relocate): Likewise.
4290 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
4291 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
4292 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
4293 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
4294 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
4295 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
4296 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
4297 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
4298 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
4299 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
4300 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
4301 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
4302 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
4303 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
4304 * elf32-v850.c (v850_elf_reloc): Likewise.
4305 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
4306 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
4307 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
4308 * elf64-mips.c (mips_elf64_gprel32_reloc)
4309 (mips16_gprel_reloc): Likewise.
4310 * elf64-mmix.c (mmix_elf_reloc): Likewise.
4311 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
4312 * elf64-sparc.c (init_insn_reloc): Likewise.
4313 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
4314 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
4315 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
4316 (_bfd_mips_elf_generic_reloc): Likewise.
4317 * bfd-in2.h: Regenerate.
4319 2004-06-28 Alan Modra <amodra@bigpond.net.au>
4321 * bfd-in.h (struct stab_info): Move from stabs.c.
4322 * stabs.c (struct stab_link_includes_table): Delete.
4323 (stab_link_includes_lookup): Delete.
4324 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
4325 level of indirection from sinfo parm.
4326 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
4327 stabstr section. Adjust hash table accesses.
4328 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
4329 alloc. Adjust stab_info test.
4330 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
4331 (_bfd_coff_final_link): Adjust stab_info test.
4332 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
4333 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
4335 * libcoff-in.h (struct coff_link_hash_table): Likewise.
4336 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
4337 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
4338 stabstr section. Adjust stab_info test.
4339 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
4340 (_bfd_write_stab_strings): Adjust prototypes.
4341 * libbfd.h: Regenerate.
4342 * libcoff.h: Regenerate.
4343 * bfd-in2.h: Regenerate.
4345 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4347 From Miod Vallat <miod@online.fr>:
4348 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
4350 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
4352 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
4353 (struct elf32_mn10300_link_hash_entry): Remove
4354 pcrel_relocs_copied.
4355 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
4356 R_MN10300_32. Don't adjust pcrel_relocs_copied.
4357 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
4358 and gotoff relocations if the symbol doesn't bind locally. Use
4359 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
4360 relocation for PCREL32.
4361 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
4362 to test whether a symbol binds locally.
4363 (elf32_mn10300_link_hash_newfunc): Don't initialize
4364 pcrel_relocs_copied.
4365 (_bfd_mn10300_elf_discard_copies): Delete.
4366 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
4368 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4370 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
4372 2004-06-25 Joel Brobecker <brobecker@gnat.com>
4374 * som.c (som_set_reloc_info): Correct small typo.
4376 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4378 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
4379 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
4380 (m32r_elf_gcsweep_hook): Likewise.
4381 (m32r_elf_check_relocs): Likewise.
4382 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
4383 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
4384 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
4385 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
4386 * bfd-in2.h: Regenerated.
4387 * libbfd.h: Regenerated.
4389 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
4391 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
4393 (elf64_x86_64_relocate_section): Issue an error for
4394 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
4395 against global symbols when building shared library.
4397 2004-06-24 Alan Modra <amodra@bigpond.net.au>
4399 * section.c (struct sec): Rename "_cooked_size" to "size".
4400 Rename "_raw_size" to "rawsize".
4401 (STD_SECTION): Adjust comments.
4402 (bfd_set_section_size, bfd_get_section_contents): Use size.
4403 (bfd_malloc_and_get_section): New function.
4404 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
4405 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
4406 Correctly free reloc and contents memory.
4407 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
4408 and fake CIE now that we can shink section size to zero.
4409 (_bfd_elf_write_section_eh_frame): Likewise..
4410 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
4411 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
4412 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
4413 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
4414 unneeded indirection.
4415 * elf.c (_bfd_elf_section_offset): .. and update call.
4416 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
4417 * libbfd.h: Regenerate.
4418 * bfd-in2.h: Regenerate.
4420 Replace occurrences of "_raw_size" and "_cooked_size" in most places
4421 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
4422 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
4423 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
4424 Similarly use "rawsize", if non-zero, in reloc functions to validate
4425 reloc addresses. Use new bfd_malloc_and_get_section in most places
4426 where bfd_get_section_contents was called. Expand all occurrences of
4427 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
4428 grok_prstatus and similar functions to "size".
4429 * aix386-core.c (aix386_core_file_p): ..
4430 * aix5ppc-core.c (xcoff64_core_p): ..
4431 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
4432 aout_adobe_set_section_contents): ..
4433 * aout-target.h (callback): ..
4434 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
4435 MY_bfd_final_link): ..
4436 * aoutf1.h (sunos4_core_file_p): ..
4437 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
4438 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
4439 final_link, aout_link_input_section): ..
4440 * binary.c (binary_object_p, binary_canonicalize_symtab,
4441 binary_set_section_contents): ..
4442 * bout.c (b_out_callback, b_out_write_object_contents,
4443 b_out_set_section_contents, b_out_bfd_relax_section,
4444 b_out_bfd_get_relocated_section_contents): ..
4445 * cisco-core.c (cisco_core_file_validate): ..
4446 * coff-alpha.c (alpha_ecoff_object_p,
4447 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
4448 * coff-arm.c (coff_arm_relocate_section,
4449 bfd_arm_allocate_interworking_sections): ..
4450 * coff-h8300.c (h8300_reloc16_extra_cases,
4451 h8300_bfd_link_add_symbols): ..
4452 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
4453 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
4454 ppc_bfd_coff_final_link): ..
4455 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
4456 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
4457 sh_align_loads, sh_coff_get_relocated_section_contents): ..
4458 * coff64-rs6000.c (xcoff64_write_object_contents,
4459 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
4460 * coffcode.h (coff_compute_section_file_positions,
4461 coff_write_object_contents): ..
4462 * coffgen.c (make_a_section_from_file, coff_write_symbols,
4463 coff_section_symbol, build_debug_section): ..
4464 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
4465 process_embedded_commands, _bfd_coff_link_input_bfd,
4466 _bfd_coff_write_global_sym): ..
4467 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
4468 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
4469 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
4470 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
4471 _bfd_dwarf2_find_nearest_line): ..
4472 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
4473 ecoff_compute_section_file_positions,
4474 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
4475 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
4476 _bfd_elf_discard_section_eh_frame_hdr,
4477 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
4478 _bfd_elf_write_section_eh_frame,
4479 _bfd_elf_write_section_eh_frame_hdr): ..
4480 * elf-hppa.h (elf_hppa_sort_unwind): ..
4481 * elf-m10200.c (mn10200_elf_relax_section,
4482 mn10200_elf_relax_delete_bytes,
4483 mn10200_elf_get_relocated_section_contents): ..
4484 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
4485 mn10300_elf_check_relocs, mn10300_elf_relax_section,
4486 mn10300_elf_relax_delete_bytes,
4487 mn10300_elf_get_relocated_section_contents,
4488 _bfd_mn10300_elf_adjust_dynamic_symbol,
4489 _bfd_mn10300_elf_discard_copies,
4490 _bfd_mn10300_elf_size_dynamic_sections,
4491 _bfd_mn10300_elf_finish_dynamic_sections): ..
4492 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
4493 _bfd_elf_make_section_from_phdr, elf_fake_sections,
4494 bfd_elf_set_group_contents, map_sections_to_segments,
4495 elf_sort_sections, assign_file_positions_for_segments,
4496 SECTION_SIZE, copy_private_bfd_data,
4497 _bfd_elf_get_dynamic_reloc_upper_bound,
4498 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
4499 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
4500 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
4501 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
4502 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
4503 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
4504 bfd_elf32_arm_process_before_allocation,
4505 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
4506 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
4507 elf32_arm_write_section): ..
4508 * elf32-cris.c (cris_elf_grok_prstatus,
4509 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
4510 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
4511 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
4512 elf_cris_discard_excess_dso_dynamics,
4513 elf_cris_discard_excess_program_dynamics): ..
4514 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
4515 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
4516 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
4517 _frv_create_got_section, _frvfdpic_assign_plt_entries,
4518 elf32_frvfdpic_size_dynamic_sections,
4519 elf32_frvfdpic_modify_segment_map,
4520 elf32_frvfdpic_finish_dynamic_sections): ..
4521 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
4522 elf32_h8_get_relocated_section_contents): ..
4523 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
4524 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
4525 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
4526 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
4527 elf32_hppa_finish_dynamic_sections): ..
4528 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
4529 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
4530 i370_elf_finish_dynamic_sections): ..
4531 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
4532 allocate_dynrelocs, elf_i386_size_dynamic_sections,
4533 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
4534 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
4535 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
4536 * elf32-ip2k.c (ip2k_is_switch_table_128,
4537 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
4538 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
4539 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
4540 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
4541 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
4542 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
4543 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
4544 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
4545 m32r_elf_get_relocated_section_contents): ..
4546 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
4547 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
4548 m68hc11_elf_relax_delete_bytes): ..
4549 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
4550 m68hc12_elf_size_one_stub): ..
4551 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
4552 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
4553 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
4554 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
4555 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
4556 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
4557 elf32_mips_grok_prstatus): ..
4558 * elf32-or32.c (or32_elf_consth_reloc): ..
4559 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
4560 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
4561 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
4562 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
4563 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
4564 ppc_elf_final_write_processing): ..
4565 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
4566 allocate_dynrelocs, elf_s390_size_dynamic_sections,
4567 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
4568 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
4569 sh_elf_relax_delete_bytes, sh_elf_align_loads,
4570 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
4571 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
4572 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
4573 * elf32-sh64-com.c (sh64_address_in_cranges,
4574 sh64_get_contents_type): ..
4575 * elf32-sh64.c (sh64_find_section_for_address,
4576 sh64_elf_final_write_processing): ..
4577 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
4578 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
4579 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
4580 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
4581 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
4582 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
4583 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
4584 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
4585 elf_vax_finish_dynamic_sections): ..
4586 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
4587 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
4588 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
4589 xstormy16_elf_finish_dynamic_sections): ..
4590 * elf32-xtensa.c (xtensa_read_table_entries,
4591 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
4592 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
4593 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
4594 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
4595 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
4596 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
4597 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
4598 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
4599 xtensa_callback_required_dependence): ..
4600 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
4601 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
4602 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
4603 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
4604 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
4605 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
4606 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
4607 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
4608 * elf64-hppa.c (allocate_dynrel_entries,
4609 elf64_hppa_size_dynamic_sections,
4610 elf64_hppa_finish_dynamic_sections): ..
4611 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
4612 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
4613 elf64_mips_grok_prstatus): ..
4614 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
4615 mmix_elf_relocate_section, mmix_elf_final_link,
4616 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
4617 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
4618 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
4619 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
4620 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
4621 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
4622 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
4623 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
4624 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
4625 ppc64_elf_finish_dynamic_sections): ..
4626 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
4627 allocate_dynrelocs, elf_s390_size_dynamic_sections,
4628 elf_s390_finish_dynamic_sections): ..
4629 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
4630 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
4631 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
4632 sh64_elf64_finish_dynamic_sections): ..
4633 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
4634 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
4635 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
4636 sparc64_elf_finish_dynamic_symbol,
4637 sparc64_elf_finish_dynamic_sections): ..
4638 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
4639 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
4640 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
4641 elf64_x86_64_finish_dynamic_sections): ..
4642 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
4643 * elfcode.h (elf_slurp_reloc_table): ..
4644 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
4645 elf_finalize_dynstr, elf_link_add_object_symbols,
4646 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
4647 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
4648 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
4649 elf32_mips_grok_prstatus): ..
4650 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
4651 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
4652 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
4653 elfNN_ia64_finish_dynamic_sections): ..
4654 * elfxx-mips.c (mips_elf_create_procedure_table,
4655 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
4656 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
4657 mips_elf_global_got_index, mips_elf_multi_got,
4658 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
4659 mips_elf_allocate_dynamic_relocations,
4660 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
4661 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
4662 _bfd_mips_elf_always_size_sections,
4663 _bfd_mips_elf_size_dynamic_sections,
4664 _bfd_mips_elf_finish_dynamic_symbol,
4665 _bfd_mips_elf_finish_dynamic_sections,
4666 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
4667 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
4668 _bfd_elf_mips_get_relocated_section_contents,
4669 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
4670 * hp300hpux.c (callback): ..
4671 * hppabsd-core.c (make_bfd_asection): ..
4672 * hpux-core.c (make_bfd_asection): ..
4673 * i386linux.c (linux_link_create_dynamic_sections,
4674 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
4675 * i386msdos.c (msdos_write_object_contents): ..
4676 * i386os9k.c (os9k_callback, os9k_write_object_contents,
4677 os9k_set_section_contents): ..
4678 * ieee.c (parse_expression, ieee_slurp_external_symbols,
4679 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
4680 ieee_write_section_part, do_with_relocs, do_as_repeat,
4681 do_without_relocs, ieee_write_debug_part, init_for_output,
4682 ieee_set_section_contents): ..
4683 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
4684 * irix-core.c (do_sections, make_bfd_asection): ..
4685 * libaout.h (aout_section_merge_with_text_p): ..
4686 * libbfd.c (_bfd_generic_get_section_contents,
4687 _bfd_generic_get_section_contents_in_window): ..
4688 * linker.c (default_indirect_link_order): ..
4689 * lynx-core.c (make_bfd_asection): ..
4690 * m68klinux.c (linux_link_create_dynamic_sections,
4691 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
4692 * mach-o.c (bfd_mach_o_make_bfd_section,
4693 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
4694 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
4695 bfd_mach_o_scan_read_segment): ..
4696 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
4697 _bfd_merge_sections): ..
4698 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
4699 mmo_map_set_sizes, mmo_canonicalize_symtab,
4700 mmo_internal_write_section, mmo_write_object_contents): ..
4701 * netbsd-core.c (netbsd_core_file_p): ..
4702 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
4703 nlm_alpha_set_public_section): ..
4704 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
4705 * nlm32-sparc.c (nlm_sparc_write_import): ..
4706 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
4707 nlm_compute_section_file_positions): ..
4708 * oasys.c (oasys_object_p, oasys_slurp_section_data,
4709 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
4710 * opncls.c (get_debug_link_info): ..
4711 * osf-core.c (make_bfd_asection): ..
4712 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
4713 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
4714 final_link, aout_link_input_section): ..
4715 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
4716 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
4717 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
4718 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
4719 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
4720 * ptrace-core.c (ptrace_unix_core_file_p): ..
4721 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
4722 _bfd_final_link_relocate, bfd_generic_relax_section,
4723 bfd_generic_get_relocated_section_contents): ..
4724 * reloc16.c (bfd_coff_reloc16_relax_section,
4725 bfd_coff_reloc16_get_relocated_section_c): ..
4726 * riscix.c (riscix_some_aout_object_p): ..
4727 * rs6000-core.c (read_hdr, make_bfd_asection): ..
4728 * sco5-core.c (make_bfd_asection): ..
4729 * simple.c (bfd_simple_get_relocated_section_contents): ..
4730 * som.c (som_object_setup, setup_sections, som_prep_headers,
4731 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
4732 som_set_reloc_info, som_get_section_contents,
4733 som_bfd_link_split_section): ..
4734 * sparclinux.c (linux_link_create_dynamic_sections,
4735 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
4736 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
4737 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
4738 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
4739 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
4740 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
4741 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
4742 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
4743 sunos_finish_dynamic_link): ..
4744 * syms.c (_bfd_stab_section_find_nearest_line): ..
4745 * tekhex.c (first_phase, tekhex_set_section_contents,
4746 tekhex_write_object_contents): ..
4747 * trad-core.c (trad_unix_core_file_p): ..
4748 * versados.c (process_esd, process_otr, process_otr): ..
4749 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
4750 * vms-misc.c (add_new_contents): ..
4751 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
4752 * vms.c (vms_set_section_contents): ..
4753 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
4754 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
4755 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
4756 * xsym.c (bfd_sym_scan): .. See above.
4758 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
4760 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
4761 calling _bfd_merged_section_offset only for section symbols.
4763 2004-06-22 Alan Modra <amodra@bigpond.net.au>
4765 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
4766 for handling SEC_MERGE symbols in relax_section.
4768 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
4770 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
4771 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
4772 linked together. Mark the result as h8300sx code.
4774 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
4776 * elf-bfd.h (struct elf_backend_data): Added
4777 elf_backend_omit_section_dynsym.
4778 (_bfd_elf_link_omit_section_dynsym): Declare.
4779 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
4780 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
4781 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
4782 (_bfd_elf_link_renumber_dynsyms): ... this function.
4783 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
4784 _bfd_elf_link_omit_section_dynsym).
4785 (elfNN_bed): Added elf_backend_omit_section_dynsym.
4787 2004-06-21 Nick Clifton <nickc@redhat.com>
4789 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
4792 2004-06-17 Jerome Guitton <guitton@gnat.com>
4794 * bfd-in.h (bfd_cache_close_all): New function declaration.
4795 * bfd-in2.h: Regenerate.
4796 * cache.c (bfd_cache_close_all): New function definition.
4798 2004-06-16 Mark Kettenis <kettenis@gnu.org>
4800 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
4802 * configure: Regenerate.
4804 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4806 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
4807 the pre-existing section.
4809 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4811 * section.c (struct sec): Remove usused flags. Reorganize a little.
4812 (bfd_get_section_size_before_reloc): Delete.
4813 (bfd_get_section_size_after_reloc): Delete.
4814 (STD_SECTION): Update.
4815 (bfd_get_section_size_now): Delete.
4816 (bfd_set_section_contents): Don't referece reloc_done.
4817 (bfd_get_section_contents): Remove reloc_done comment.
4818 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
4820 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
4821 * ecoff.c (bfd_debug_section): Update initializer.
4822 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
4823 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
4824 * bfd-in.h (bfd_section_size): Expand.
4825 (bfd_get_section_size): New macro.
4826 * bfd-in2.h: Regenerate.
4827 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
4828 bfd_get_section_size_before_reloc with bfd_get_section_size.
4829 * coffcode.h (coff_write_object_contents): Likewise.
4830 * coffgen.c (build_debug_section): Likewise.
4831 * dwarf1.c (parse_line_table): Likewise.
4832 (_bfd_dwarf1_find_nearest_line): Likewise.
4833 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
4834 * i386msdos.c (msdos_write_object_contents): Likewise.
4835 * pdp11.c (squirt_out_relocs): Likewise.
4836 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
4837 * elf64-mmix.c (mmix_elf_final_link): Update comment.
4839 2004-06-14 Chris Demetriou <cgd@broadcom.com>
4841 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
4842 removal) with updated comment.
4843 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
4845 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
4846 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
4848 2004-06-12 Alan Modra <amodra@bigpond.net.au>
4850 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
4851 overflow on branches to undefweaks.
4853 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4855 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
4856 as ecoff_section_data() does not return a valid lvalue.
4858 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
4860 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
4861 (elf_link_add_object_symbols): Likewise.
4863 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
4864 (elf_backend_reloc_type_class): New.
4866 2004-06-08 Mark Kettenis <kettenis@gnu.org>
4868 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
4870 * configure: Regenerate.
4872 2004-06-07 Daniel Jacobowitz <dan@debian.org>
4874 From: Albert Chin-A-Young <china@thewrittenword.com>
4875 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
4878 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
4880 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
4883 2004-05-28 DJ Delorie <dj@redhat.com>
4885 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
4886 for linking, but otherwise adjust reloc for merged sections.
4888 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
4890 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
4891 _bfd_merged_section_offset for local symbols.
4893 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
4895 * Makefile.am: Regenerate dependencies.
4896 * Makefile.in: Regenerate.
4897 * archures.c: Add bfd_mach_sh3_nommu .
4898 * bfd-in2.h: Regenerate.
4899 * cpu-sh.c: Add sh3-nommu architecture.
4900 (bfd_to_arch_table): Create new table.
4901 (sh_get_arch_from_bfd_mach): Create new function.
4902 (sh_get_arch_up_from_bfd_mach): Create new function.
4903 (sh_merge_bfd_arch): Create new function.
4904 * elf32-sh.c (sh_ef_bfd_table): Add table.
4905 (sh_elf_check_relocs): Replace switch statement with
4906 use of sh_ef_bfd_table .
4907 (sh_elf_get_flags_from_mach): Add new function.
4908 (sh_find_elf_flags): Likewise.
4909 (sh_elf_copy_private_data): Replace most of non-elf contents
4910 with a call to sh_merge_bfd_arch() .
4912 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
4914 * Makefile.am (bfdver.h): Use explicit filename, not $< .
4915 * Makefile.in: Regenerate.
4917 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
4919 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
4920 custom calling conventions for dynamic symbols.
4921 (mn10300_elf_relax_section): Avoid relaxing a function as a local
4922 symbol if it's an alias to a global one.
4924 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
4926 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
4929 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
4931 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
4934 2004-05-26 Alan Modra <amodra@bigpond.net.au>
4936 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
4937 for SHT_GROUP sections.
4939 2004-05-25 Alan Modra <amodra@bigpond.net.au>
4941 * elflink.c (elf_link_add_object_symbols): Don't set up merge
4943 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
4944 * merge.c: Formatting. Remove unnecessary casts. Expand
4945 bfd_get_section_alignment macro.
4946 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
4947 use throughout file.
4948 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
4949 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
4950 section name to determine sinfo group, instead test output section
4952 (_bfd_merge_sections): Add struct bfd_link_info param. Call
4953 _bfd_strip_section_from_output rather than just twiddling flags.
4954 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
4955 (_bfd_merge_sections): Update prototype.
4956 * libbfd.h: Regenerate.
4958 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4960 * netbsd-core.c: Correctly indent section that sets architecture
4963 From Miod Vallat <miod@online.fr>:
4964 * m88kopenbsd.c: New file.
4965 * targets.c (m88k_openbsd_vec): New.
4966 * config.bfd: Add m88k-*-openbsd*.
4967 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
4968 (m88kopenbsd_vec): New.
4969 * configure: Regenerate.
4970 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
4971 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
4973 * Makefile.in: Regenerate.
4974 * po/SRC-POTFILES.in: Regenerate.
4976 2004-05-24 Nick Clifton <nickc@redhat.com>
4978 * hash.c: Remove bogus node "Changing the default Hash Table Size"
4979 introduced by hash table size patch.
4981 2004-05-22 Ben Elliston <bje@au.ibm.com>
4983 * configure.in (is_release): Remove.
4984 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
4985 (AC_OUTPUT): Don't output bfdver.h from version.h.
4986 * configure: Regenerate.
4987 * Makefile.am (RELEASE): New variable.
4988 (bfdver.h): New target.
4989 * Makefile.in: Regenerate.
4990 * doc/Makefile.in: Likewise.
4992 2004-05-22 Ben Elliston <bje@au.ibm.com>
4994 * Makefile.am (config.status): Don't depend on version.h.
4995 * Makefile.in: Regenerate.
4997 2004-05-22 Alan Modra <amodra@bigpond.net.au>
4999 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
5000 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
5001 * libbfd.h: Regenerate.
5002 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
5003 (_bfd_elf_rel_local_sym): Likewise.
5004 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
5005 (elf_link_input_bfd): Likewise.
5006 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
5007 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5008 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
5009 (elfNN_ia64_relocate_section): Likewise.
5011 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
5013 * hash.c (bfd_default_hash_table_size): New variable.
5014 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
5015 (bfd_hash_set_default_size): New function. Set the default size
5016 to a selected prime number close to the argument. Document new
5018 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
5019 * bfd-in2.h: Regenerate.
5020 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
5021 * Makefile.in: Regenerate.
5023 2004-05-21 Mark Kettenis <kettenis@gnu.org>
5025 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
5026 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
5027 arm, m68k, m88k and hppa core files.
5029 2004-05-21 Nick Clifton <nickc@redhat.com>
5031 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
5032 (bfd_bwrite): Likewise.
5033 (bfd_tell): Likewise.
5034 (bfd_flush): Likewise.
5035 (bfd_stat): Likewise.
5036 (bfd_seek): Likewise.
5037 (bfd_get_mtime): Likewise.
5038 (bfd_get_size): Likewise.
5040 2004-05-19 Ben Elliston <bje@au.ibm.com>
5042 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
5044 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
5046 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
5047 (bfd_generic_openr_next_archived_file): Likewise.
5049 2004-05-17 Bob Wilson <bob.wilson@acm.org>
5051 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
5052 section names by inserting a new substring after .gnu.linkonce, except
5053 for .gnu.linkonce.t.* where the "t." is replaced.
5055 2004-05-17 Adam Nemet <anemet@lnxw.com>
5057 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
5058 (m68-*-lynxos* case): Likewise.
5059 (powerpc-*-lyxnos* case): New case.
5060 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
5062 2004-05-17 David Heine <dlheine@tensilica.com>
5064 * aout-target.h (MY_bfd_copy_private_header_data): Define.
5065 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
5066 * bfd.c (bfd_copy_private_header_data): Define.
5067 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
5069 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
5070 * coffcode.h (coff_bfd_copy_private_header_data): Define.
5071 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
5072 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
5073 segments by calling copy_private_bfd_data.
5074 (_bfd_elf_copy_private_header_data): Define.
5075 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
5076 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
5077 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
5078 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
5079 * mmo.c (mmo_bfd_copy_private_header_data): Define.
5080 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
5081 * som.c (som_bfd_copy_private_header_data): Define.
5082 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
5083 * vms.c (vms_bfd_copy_private_header_data): Define.
5084 * bfd-in2.h: Regenerate.
5085 * libbfd.h: Regenerate.
5087 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5089 * elfxx-mips.c (MINUS_TWO): Define.
5090 (mips_elf_higher, mips_elf_highest,
5091 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
5092 some bfd_vma values.
5093 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
5095 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5097 * som.c (log2): Rename to exact_log2. Adjust all callers.
5099 2004-05-13 Paul Brook <paul@codesourcery.com>
5101 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
5102 dwarf3 format CIE entries. Remove comment about the size of the
5103 ra_column field. It is now correctly deduced.
5105 2004-05-13 Joel Sherrill <joel@oarcorp.com>
5107 * config.bfd (or32-*-rtems*): Switch to elf.
5109 2004-05-13 Nick Clifton <nickc@redhat.com>
5111 * po/fr.po: Updated French translation.
5113 2004-05-11 Jakub Jelinek <jakub@redhat.com>
5115 * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol
5116 into .dynsym if elf_section_data (sec)->dynindx <= 0.
5117 Adjust counting of last_local.
5118 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
5119 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
5120 created by the linker nor !SHF_ALLOC.
5122 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
5123 DT_PLTGOT to the start of the .got.plt section instead of the
5124 .got output section. Set sh_entsize for .got section in addition
5126 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
5127 is at sgot->output_section->vma.
5128 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
5129 DT_PLTGOT to the start of the .got.plt section instead of the
5130 .got output section.
5131 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
5132 is at sgot->output_section->vma. Set sh_entsize for .got section
5133 in addition to .got.plt.
5134 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
5135 (bfd_section_from_phdr): Likewise.
5136 (map_sections_to_segments): Likewise.
5137 (assign_file_positions_for_segments): Likewise.
5138 (get_program_header_size): Likewise.
5139 * elflink.c (bfd_elf_size_dynamic_sections): Set
5140 elf_tdata (output_bfd)->relro from info->relro.
5141 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
5143 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
5145 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
5146 a zero symndx for which we hadn't accounted a dynamic relocation.
5147 (_frvfdpic_add_rofixup): Likewise.
5149 2004-05-07 Brian Ford <ford@vss.fsi.com>
5150 DJ Delorie <dj@redhat.com>
5152 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
5153 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
5154 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
5155 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
5157 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
5159 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
5160 immediately if there's no link info.
5161 (elf32_frvfdpic_copy_private_bfd_data): New.
5162 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
5164 2004-05-06 Zack Weinberg <zack@codesourcery.com>
5166 * dwarf2.c (add_line_info): Also set info->filename to NULL if
5167 filename argument is null; do not call strlen on a null pointer.
5169 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
5171 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
5174 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
5176 * configure.in (bfd_elf32_frvfdpic_vec): New.
5177 * configure: Rebuilt.
5178 * targets.c (bfd_elf32_frvfdpic_vec): New.
5179 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
5181 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
5182 frvfdpic instead of frv. Rearrange elf-target macros such that
5183 the FDPIC-specific ones are only defined for this new target
5185 (bfd_elf32_frvfdpic_vec): Declare.
5187 (elf32_frv_relocate_section): Use it to enable segment checking
5188 and to control rofixup emission. Add output section vma to
5189 applied relocation in non-LOAD non-ALLOC sections. Use
5190 _bfd_error_handler for errors.
5191 (_frv_create_got_section): Create .rel.got and .rofixup only in
5192 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
5194 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
5195 (elf32_frvfdpic_modify_segment_map): Likewise.
5196 (elf32_frv_finish_dynamic_sections): New, do-nothing.
5197 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
5198 error message if we miscompute the rofixup size.
5199 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
5200 (frvfdpic_elf_encode_eh_address): Likewise.
5201 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
5202 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
5203 relocs. Reject unknown relocation types.
5204 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
5205 (frv_elf_merge_private_bfd_data): Likewise.
5206 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
5207 0x4000 for newly-added elf32-frvfdpic.
5209 2004-05-05 Nick Clifton <nickc@redhat.com>
5212 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
5213 returning NULL as most users of this function do not check its
5215 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
5216 of bfd_cache_lookup().
5217 * sco5-core.c (sco5_core_file_p): Likewise.
5218 * trad-core.c (trad_unix_core_file_p): Likewise.
5220 2004-05-05 Nick Clifton <nickc@redhat.com>
5222 * cache.c (bfd_cache_lookup): Improve formatting.
5223 * archive.c: Fix formatting.
5225 2004-05-05 Peter Barada <peter@the-baradas.com>
5227 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
5228 * cpu-m68k.c(bfd_m68k_arch): Likewise.
5229 * bfd-in2.h(bfd_architecture): Regenerate.
5231 2004-05-03 Alan Modra <amodra@bigpond.net.au>
5233 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
5235 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
5236 those against discarded link-once and SEC_MERGE section symbols.
5238 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
5240 * section.c (bfd_get_section_by_name_if): New.
5241 * bfd-in2.h: Regenerated.
5243 2004-05-02 Alan Modra <amodra@bigpond.net.au>
5245 * som.c (som_bfd_is_group_section): Define.
5247 2004-05-01 Alan Modra <amodra@bigpond.net.au>
5249 * section.c (bfd_make_section_anyway): Copy the whole
5250 bfd_hash_entry, not just "next" from existing entry.
5252 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
5254 * elf.c (bfd_section_from_shdr): Maintain the section order in
5256 (special_sections): Add ".note.GNU-stack".
5257 (elf_fake_sections): Handle section group for relocatable
5260 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
5262 * section.c (bfd_sections_find_if): New.
5263 * bfd-in2.h: Regenerated.
5265 2004-04-30 Alan Modra <amodra@bigpond.net.au>
5267 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
5269 * elf-bfd.h (bfd_elf_is_group_section): Declare.
5270 * elf.c (bfd_elf_is_group_section): New function.
5271 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
5272 * section.c (bfd_generic_is_group_section): New function.
5273 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
5274 (BFD_JUMP_TABLE_LINK): Adjust.
5275 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
5276 * aout-target.h (MY_bfd_is_group_section): Define.
5277 * aout-tic30.c (MY_bfd_is_group_section): Define.
5278 * bfd.c (bfd_is_group_section): Define.
5279 * binary.c (binary_bfd_is_group_section): Define.
5280 * bout.c (b_out_bfd_is_group_section): Define.
5281 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
5282 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
5283 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
5284 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
5285 * coffcode.h (coff_bfd_is_group_section): Define.
5286 * i386msdos.c (msdos_bfd_is_group_section): Define.
5287 * i386os9k.c (os9k_bfd_is_group_section): Define.
5288 * ieee.c (ieee_bfd_is_group_section): Define.
5289 * ihex.c (ihex_bfd_is_group_section): Define.
5290 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
5291 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
5292 * mmo.c (mmo_bfd_is_group_section): Define.
5293 * nlm-target.h (nlm_bfd_is_group_section): Define.
5294 * oasys.c (oasys_bfd_is_group_section): Define.
5295 * pef.c (bfd_pef_bfd_is_group_section): Define.
5296 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
5297 * srec.c (srec_bfd_is_group_section): Define.
5298 * tekhex.c (tekhex_bfd_is_group_section): Define.
5299 * versados.c (versados_bfd_is_group_section): Define.
5300 * vms.c (vms_bfd_is_group_section): Define.
5301 * xsym.c (bfd_sym_bfd_is_group_section): Define.
5302 * bfd-in2.h: Regenerate.
5303 * libbfd.h: Regenerate.
5305 2004-04-30 Alan Modra <amodra@bigpond.net.au>
5307 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
5309 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
5311 * configure.in: Update version to 2.15.91.
5312 * configure: Regenerate.
5314 2004-04-29 Brian Ford <ford@vss.fsi.com>
5316 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
5317 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
5318 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
5319 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
5320 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
5321 .gnu.linkonce.wi. sections.
5322 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
5323 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
5325 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
5326 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5328 2004-04-28 Chris Demetriou <cgd@broadcom.com>
5330 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
5331 * bfd-in2.h: Regenerate.
5332 * libbfd.h: Likewise.
5334 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5336 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
5338 (setup_sections): Use som_subspace_dictionary_record struct instead
5339 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
5340 is_comdat, is_common or dup_common.
5341 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
5342 is_comdat, is_common and dup_common in section subspace_dict from
5344 (som_begin_writing): Use som_subspace_dictionary_record struct.
5345 (som_finish_writing): Likewise.
5346 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
5347 is_common and dup_common flags in info for symbol. Add comment
5348 regarding linker support for these fields. Slightly reorganize
5350 (som_build_and_write_symbol_table): Set is_comdat, is_common and
5351 dup_common fields in symbol table from symbol info.
5352 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
5353 arguments. Set corresponding fields in copy_data. Change all callers.
5354 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
5356 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
5357 * som.h (som_subspace_dictionary_record): Define.
5358 (som_copyable_section_data_struct): Add is_comdat, is_common and
5360 (som_section_data_struct): Use som_subspace_dictionary_record struct
5361 instead of subspace_dictionary_record.
5362 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
5364 2004-04-27 Bob Wilson <bob.wilson@acm.org>
5366 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
5367 if set. Check reloc_done flag before applying relocations. Use
5368 output addresses, both when applying relocations and when comparing
5369 against the specified section.
5370 (elf_xtensa_relocate_section): Use output address to check if dynamic
5371 reloc is in a literal pool. Set section's reloc_done flag.
5373 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
5375 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
5376 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
5378 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
5381 2004-04-27 Alan Modra <amodra@bigpond.net.au>
5383 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
5384 structure field removed in 2004-04-24 patch.
5385 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
5387 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
5389 * elf32-arm.h (elf32_arm_section_flags): Likewise.
5390 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
5391 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
5392 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
5393 field before calling elf_backend_section_flags.
5395 2004-04-24 Chris Demetriou <cgd@broadcom.com>
5397 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
5398 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
5399 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
5400 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
5401 and BFD_RELOC_32_PCREL.
5402 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
5403 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
5404 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
5405 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
5406 (mips_elf_next_relocation): Move comment about matching HI/LO
5408 (_bfd_mips_elf_relocate_section): Here. Remove handling for
5409 R_MIPS_GNU_REL_HI16.
5411 2004-04-23 Chris Demetriou <cgd@broadcom.com>
5413 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
5414 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
5415 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
5416 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
5417 and update comments to reflect current usage.
5418 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
5419 and MIPS_R_SWITCH, as well as several empty entries. Update comment
5421 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
5422 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
5423 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
5424 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
5425 type number to be MIPS_R_PCREL16.
5426 (mips_relocate_section): Remove support for link-time relaxation
5427 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
5428 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
5429 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
5430 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
5431 relaxation of branches used by embedded-PIC.
5432 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
5433 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
5434 related members, update comment.
5435 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
5436 code related to embedded-PIC.
5437 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
5438 initialization of now-removed 'adjust' member of
5439 'struct ecoff_debug_info'.
5441 2004-04-23 Chris Demetriou <cgd@broadcom.com>
5443 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
5445 2004-04-21 Philip Blundell <pb@nexus.co.uk>
5447 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
5448 relocs for locally defined symbols during -shared final link.
5449 (elf32_arm_final_link_relocate): Likewise.
5451 2004-04-22 Jakub Jelinek <jakub@redhat.com>
5453 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
5454 ELF_LINK_POINTER_EQUALITY_NEEDED.
5455 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
5456 if r_type is not R_X86_64_PC32.
5457 (elf64_x86_64_finish_dynamic_symbol): If
5458 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
5461 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5463 * elf32-sh.c (sh_elf_plt_sym_val): New function.
5464 (elf_backend_plt_sym_val): Define.
5466 2004-04-22 Andrew Cagney <cagney@redhat.com>
5468 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
5470 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5472 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5474 * som.c (som_set_section_contents): Constantify second argument.
5475 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
5476 (som_object_setup): Rework to avoid warning.
5477 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
5480 2004-04-22 Andrew Cagney <cagney@redhat.com>
5482 * cache.c (bfd_cache_close): Check for a previously closed file.
5484 2004-04-22 Jakub Jelinek <jakub@redhat.com>
5486 * bfd.c (bfd_get_synthetic_symtab): Define.
5487 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
5488 NAME##_get_synthetic_symtab.
5489 (struct bfd_target): Add _bfd_get_synthetic_symtab.
5490 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
5491 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
5493 (_bfd_elf_get_synthetic_symtab): New prototype.
5494 * elfcode.h (elf_get_synthetic_symtab): Define.
5495 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
5496 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
5497 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
5498 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
5499 * bfd-in2.h: Rebuilt.
5500 * libbfd.h: Rebuilt.
5501 * elf32-i386.c (elf_i386_plt_sym_val): New function.
5502 (elf_backend_plt_sym_val): Define.
5503 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
5504 (elf_backend_plt_sym_val): Define.
5505 * elf32-s390.c (elf_s390_plt_sym_val): New function.
5506 (elf_backend_plt_sym_val): Define.
5507 * elf64-s390.c (elf_s390_plt_sym_val): New function.
5508 (elf_backend_plt_sym_val): Define.
5509 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
5510 (elf_backend_plt_sym_val): Define.
5511 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
5512 (elf_backend_plt_sym_val): Define.
5513 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
5514 (elf_backend_plt_sym_val): Define.
5515 * aout-target.h (MY_get_synthetic_symtab): Define.
5516 * aout-tic30.c (MY_get_synthetic_symtab): Define.
5517 * coff-rs6000.c (rs6000coff_vec): Add
5518 _bfd_nodynamic_get_synthetic_symtab.
5519 (pmac_xcoff_vec): Likewise.
5520 * coff64-rs6000.c (rs6000coff64_vec): Add
5521 _bfd_nodynamic_get_synthetic_symtab.
5522 (aix5coff64_vec): Likewise.
5523 * sunos.c (MY_get_synthetic_symtab): Define.
5524 * vms.c (vms_get_synthetic_symtab): Define.
5526 2004-04-22 Nick Clifton <nickc@redhat.com>
5528 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
5530 2004-04-22 Peter Barada <peter@the-baradas.com>
5532 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
5533 * bfd2-in.h: Regenerate.
5534 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
5536 2004-04-21 Chris Demetriou <cgd@broadcom.com>
5538 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
5539 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
5540 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
5541 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
5542 * bfd-in2.h: Regenerate.
5544 2004-04-21 Bob Wilson <bob.wilson@acm.org>
5546 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
5547 require relocations against a weak symbol to reference the same
5548 symbol hash entry if not a final, static link.
5549 (get_cached_value, add_value_map): Add final_static_link argument.
5550 (remove_literals): Pass final_static_link argument as needed.
5552 2004-04-21 Andrew Cagney <cagney@redhat.com>
5554 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
5555 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
5556 (opncls_bwrite, opncls_bclose, opncls_bflush)
5557 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
5558 bfd iovec that uses function callbacks.
5559 (bfd_close): Use the iovec's bclose.
5560 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
5561 (cache_bclose, cache_bflush, cache_bstat)
5562 (cache_iovec): New functions and global variable, implement a
5563 cache "iovec", where applicable set bfd_error.
5564 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
5565 * bfdio.c (struct bfd_iovec): Define.
5566 (real_read): Delete function.
5567 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
5568 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
5569 assume that bread and bwrite set bfd_error.
5570 * bfd.c (struct bfd): Add "iovec", update comments.
5571 * bfd-in2.h, libbfd.h: Re-generate.
5573 2004-04-21 Andrew Cagney <cagney@redhat.com>
5575 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
5577 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
5579 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
5580 (bfd_elf_gc_sections): Fail if a shared object is being created.
5581 Do not fail if dynamic sections have been created. Instead call
5582 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
5583 dynamically referenced symbols. Do not mark the whole graph
5584 rooted at .eh_frame, only the section proper.
5586 2004-04-20 DJ Delorie <dj@redhat.com>
5588 * reloc.c: Add BFD_RELOC_32_SECREL.
5589 * bfd-in2.h: Regenerate.
5590 * libbfd.h: Likewise.
5591 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
5592 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
5593 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
5595 2004-04-19 Jakub Jelinek <jakub@redhat.com>
5597 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
5598 relocs against hidden/protected undefweak symbols properly.
5599 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5601 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5603 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
5604 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
5607 2004-04-17 Brian Ford <ford@vss.fsi.com>
5609 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
5610 filepos for the SizeOfHeaders field.
5611 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
5613 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
5615 2004-04-16 Alan Modra <amodra@bigpond.net.au>
5617 * simple.c (bfd_simple_get_relocated_section_contents): Don't
5618 change reloc_done. Set and restore _cooked_size.
5621 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5623 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
5626 2004-04-15 Nick Clifton <nickc@redhat.com>
5628 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
5630 2004-04-15 Alan Modra <amodra@bigpond.net.au>
5632 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
5634 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
5636 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
5637 when it is a definition.
5639 2004-04-14 Alan Modra <amodra@bigpond.net.au>
5641 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
5642 when statically linking PIC code.
5643 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5645 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5647 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
5648 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
5649 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
5650 * configure: Regenerate.
5652 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
5654 * elflink.c: Include libiberty.h.
5655 * Makefile.am (elflink.lo): Depend on libiberty.h.
5656 * Makefile.in: Regenerate.
5658 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
5660 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
5663 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
5665 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
5666 reserve the memory for dynamic linker
5668 2004-04-05 Mark Kettenis <kettenis@gnu.org>
5670 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
5671 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
5673 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
5675 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
5676 RELOC_FOR_GLOBAL_SYMBOL.
5677 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
5679 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
5681 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5682 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
5684 2004-04-01 Paul Brook <paul@codesourcery.com>
5686 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
5687 * elf32-arm.h (struct elf32_elf_section_map): New.
5688 (struct _arm_elf_section_data): New.
5689 (elf32_arm_section_data): Define.
5690 (struct elf32_arm_link_hash_table): Add byteswap_code.
5691 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
5692 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
5693 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
5694 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
5695 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
5696 (bfd_elf32_new_section_hook, elf_backend_write_section,
5697 elf_backend_link_output_symbol_hook): Define.
5699 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
5701 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
5702 that keeps the characters in a B_INCL..B_EINCL range.
5703 (_bfd_link_section_stabs): When computing the sum of the
5704 characters in a B_INCL..B_EINCL range also keep a copy of those
5705 characters. Use this information to distinguish between
5706 include sections that have the same sum and the same length
5707 but which are nevertheless unique.
5709 2004-03-31 Paul Brook <paul@codesourcery.com>
5711 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
5712 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
5714 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
5716 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
5717 to 'sum_chars' and add field 'num_chars'.
5718 (_bfd_link_section_stabs): When computing the sum of the
5719 characters in a B_INCL..B_EINCL range also keep a count of the
5720 number of characters. Use this information to help distinguish
5721 between include sections when have the same sum but which
5722 nevertheless are still unique.
5724 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
5726 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
5728 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
5729 Tomer Levi <Tomer.Levi@nsc.com>
5731 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
5732 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
5733 (BFD32_BACKENDS): Add elf32-cr16c.lo.
5734 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
5735 (cpu-cr16c.lo): New target.
5736 (elf32-cr16c.lo): Likewise.
5737 * Makefile.in: Regenerate.
5738 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
5739 (bfd_archures_list): Add bfd_cr16c_arch.
5740 * config.bfd: Handle cr16c-*-elf*.
5741 * configure.in: Handle bfd_elf32_cr16c_vec.
5742 * configure: Regenerate.
5743 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
5744 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
5745 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
5746 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
5747 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
5748 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
5749 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
5750 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
5751 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
5752 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
5753 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
5754 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
5755 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
5756 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
5757 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
5758 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
5759 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
5760 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
5761 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
5762 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
5763 * targets.c (bfd_elf32_cr16c_vec): Declare.
5764 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
5765 * cpu-cr16c.c: New file.
5766 * elf32-cr16c.c: Likewise.
5767 * libbfd.h: Regenerate.
5768 * bfd-in2.h: Likewise.
5770 2004-03-30 Jakub Jelinek <jakub@redhat.com>
5772 * elf.c (map_sections_to_segments): Fix handling of .tbss.
5774 2004-03-27 Alan Modra <amodra@bigpond.net.au>
5776 * Makefile.am: Remove all mention of elflink.h.
5777 * Makefile.in: Regenerate.
5778 * bfd-in.h (bfd_elf_discard_info): Declare.
5779 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
5780 * bfd-in2.h: Regenerate.
5781 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
5782 bfd_elf32_link_record_dynamic_symbol,
5783 bfd_elf64_link_record_dynamic_symbol,
5784 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
5785 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
5786 _bfd_elf32_link_record_local_dynamic_symbol,
5787 _bfd_elf64_link_record_local_dynamic_symbol,
5788 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
5789 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
5790 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
5791 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
5792 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
5793 _bfd_elf32_reloc_symbol_deleted_p,
5794 _bfd_elf64_reloc_symbol_deleted_p): Delete.
5795 (bfd_elf_link_record_dynamic_symbol,
5796 bfd_elf_link_record_local_dynamic_symbol,
5797 bfd_elf_final_link, bfd_elf_gc_sections,
5798 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
5799 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
5800 bfd_elf_reloc_symbol_deleted_p): Declare.
5801 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
5802 * elf32-arm.h: Update for changed function names. Remove local
5803 WILL_CALL_FINISH_DYNAMIC_SECTION define.
5804 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
5805 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
5806 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
5807 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
5808 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
5809 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
5810 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
5811 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
5812 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
5813 (bfd_elfNN_print_symbol): Define.
5814 * elfcode.h: Don't include elflink.h.
5815 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
5816 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
5817 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
5818 elf_gc_record_vtinherit, elf_gc_record_vtentry,
5819 elf_link_record_local_dynamic_symbol): Don't define.
5820 * elflink.c: Update for changed function names. Move elflink.h
5822 * elflink.h: Delete file.
5823 * po/SRC-POTFILES.in: Regenerate.
5824 * po/bfd.pot: Regenerate.
5826 2004-03-27 Alan Modra <amodra@bigpond.net.au>
5828 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
5829 "name" for global syms accidentally removed in 2004-03-20 change.
5831 2004-03-27 Alan Modra <amodra@bigpond.net.au>
5833 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
5834 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
5835 where Elf_External_* is different for 64 and 32 bit, with
5836 corresponding elf_size_info field.
5837 (struct elf_final_link_info): Use "bfd_byte *" instead
5838 of "Elf_External_Sym *" for external_syms and symbuf.
5839 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
5840 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
5841 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
5842 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
5843 (elf_link_sort_cmp2): Adjust.
5844 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
5845 using ELF_R_SYM macro. Set u.sym_mask.
5846 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
5847 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
5848 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
5849 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
5850 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
5851 swap_syn_out functions. Rearrange dyn swap in/out switch.
5852 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
5853 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
5854 (elf_link_flush_output_syms): Add elf_backend_data arg.
5855 (elf_link_check_versioned_symbol): Likewise.
5856 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
5857 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
5858 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
5859 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
5860 ELF_R_TYPE and ELF_R_INFO macros.
5861 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
5862 based on size rather than using ELF_R_INFO.
5863 (elf_gc_mark): Set up r_sym_shift local var and use instead of
5865 (struct alloc_got_off_arg): New.
5866 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
5867 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
5868 (elf_gc_allocate_got_offsets): Adjust.
5869 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
5870 ELF_R_SYM. Use bfd_section_from_elf_index.
5871 (elf_bfd_discard_info): Set cookie.r_sym_shift.
5872 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
5873 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
5875 2004-03-26 Stan Shebs <shebs@apple.com>
5877 Remove MPW support, no longer used.
5878 * config.bfd (powerpc-*-mpw*): Remove configuration.
5879 * mpw-config.in, mpw-make.sed: Remove files.
5880 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
5882 2004-03-26 Alan Modra <amodra@bigpond.net.au>
5884 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
5885 (ppc64_elf_add_symbol_hook): New function.
5886 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
5887 const from Elf_Internal_Sym param.
5888 * elflink.c (elf_link_add_object_symbols): Adjust.
5889 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
5890 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
5891 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
5892 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
5893 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
5894 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
5895 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
5896 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
5897 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
5898 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
5899 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
5900 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
5901 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
5902 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
5903 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
5904 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
5906 2004-03-26 Alan Modra <amodra@bigpond.net.au>
5908 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
5909 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
5910 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
5911 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
5912 (bfd_elf64_bfd_link_add_symbols): Delete.
5913 (bfd_elf_link_add_symbols): Declare.
5914 * elfcode.h (elf_bfd_link_add_symbols): Delete.
5915 * elflink.c: Include safe-ctype.h.
5916 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
5918 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
5919 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
5921 (elf_link_add_archive_symbols): Rename from
5922 _bfd_elf_link_add_archive_symbols, make static.
5923 (elf_link_add_object_symbols): New function. Corresponding
5924 elflink.h function converted to use elf_size_info.
5925 (bfd_elf_link_add_symbols): Likewise.
5926 (bfd_elf_size_dynamic_sections): Adjust.
5927 * elflink.h (elf_bfd_link_add_symbols): Delete.
5928 (elf_link_add_object_symbols): Delete.
5929 * elf32-gen.c (elf32_generic_link_add_symbols): Call
5930 bfd_elf_link_add_symbols.
5931 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
5933 2004-03-25 Alan Modra <amodra@bigpond.net.au>
5935 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
5936 and chained shared libs only if dynsym. Clear dynsym on forced-local.
5938 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
5939 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
5940 (_bfd_elf_add_dt_needed_tag): Declare.
5941 (_bfd_elf_sort_symbol): Declare.
5942 (_bfd_elf_finalize_dynstr): Declare.
5943 (RELOC_FOR_GLOBAL_SYM): Formatting.
5944 * elfcode.h (elf_add_dynamic_entry): Delete.
5945 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
5946 elflink.h function converted to use elf_size_info.
5947 (_bfd_elf_add_dt_needed_tag): Likewise.
5948 (_bfd_elf_sort_symbol): Likewise.
5949 (_bfd_elf_finalize_dynstr): Likewise.
5950 (compute_bucket_count): Likewise.
5951 (bfd_elf_size_dynamic_sections): Likewise. Check result of
5952 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
5953 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
5954 * elflink.h: ..here.
5955 (sort_symbol, add_dt_needed_tag): Delete.
5956 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
5957 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
5959 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
5960 * elf32-cris.c (add_dynamic_entry): Likewise.
5961 * elf32-hppa.c (add_dynamic_entry): Likewise.
5962 * elf32-i370.c (add_dynamic_entry): Likewise.
5963 * elf32-i386.c (add_dynamic_entry): Likewise.
5964 * elf32-m32r.c (add_dynamic_entry): Likewise.
5965 * elf32-m68k.c (add_dynamic_entry): Likewise.
5966 * elf32-ppc.c (add_dynamic_entry): Likewise.
5967 * elf32-s390.c (add_dynamic_entry): Likewise.
5968 * elf32-sh.c (add_dynamic_entry): Likewise.
5969 * elf32-sparc.c (add_dynamic_entry): Likewise.
5970 * elf32-vax.c (add_dynamic_entry): Likewise.
5971 * elf32-xtensa.c (add_dynamic_entry): Likewise.
5972 * elf64-alpha.c (add_dynamic_entry): Likewise.
5973 * elf64-hppa.c (add_dynamic_entry): Likewise.
5974 * elf64-ppc.c (add_dynamic_entry): Likewise.
5975 * elf64-s390.c (add_dynamic_entry): Likewise.
5976 * elf64-sparc.c (add_dynamic_entry): Likewise.
5977 * elf64-x86-64.c (add_dynamic_entry): Likewise.
5978 * elfxx-ia64.c (add_dynamic_entry): Likewise.
5979 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
5980 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
5981 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
5982 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
5984 2004-03-23 Paul Brook <paul@codesourcery.com>
5986 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
5988 2004-03-22 Bob Wilson <bob.wilson@acm.org>
5990 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
5991 literal tables and check for relocs outside of literal pools.
5992 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
5993 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
5995 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
5996 (elf_xtensa_relocate_section): Read literal tables and check for
5997 dynamic relocations in read-only sections and not in literal pools.
5999 2004-03-23 Alan Modra <amodra@bigpond.net.au>
6002 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
6004 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
6006 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
6007 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
6008 not defined by the executable, or defined in a DSO.
6009 <eliding run-time relocation of .got>: Initialize GOT entry for a
6010 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
6012 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
6013 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
6014 a PLT reloc to GOT for an executable.
6015 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
6016 .got for a DSO and explain why.
6017 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
6018 and unreferenced symbols for which a PLT is defined. Adjust
6019 dynamic-symbol pruning correspondingly, to make sure we don't lose
6020 a dynamic symbol also defined by a DSO.
6022 2004-03-22 Alan Modra <amodra@bigpond.net.au>
6024 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
6025 and rel args. Group input and output args. Wrap to 80 columns.
6026 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
6027 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
6028 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
6029 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
6030 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
6031 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
6032 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
6033 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
6034 RELOC_FOR_GLOBAL_SYMBOL invocation.
6036 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
6038 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
6039 unresolved symbols in objects aren't allowed.
6041 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
6043 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
6044 (elf_hppa_unmark_useless_dynamic_symbols):
6045 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
6046 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
6047 (elf32_hppa_relocate_section): Likewise.
6048 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6049 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
6050 * elf32-sh.c (sh_elf_relocate_section): Likewise.
6051 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
6052 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
6054 * elf-m10200.c (mn10200_elf_relocate_section): Use
6055 RELOC_FOR_GLOBAL_SYMBOL.
6056 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
6057 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
6058 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
6059 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
6060 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
6061 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
6062 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6063 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
6064 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
6065 * elf32-v850.c (v850_elf_relocate_section): Likewise.
6066 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
6067 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
6069 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6071 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
6072 (final_link_relocate): Likewise.
6073 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
6074 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
6076 2004-03-19 Alan Modra <amodra@bigpond.net.au>
6078 * Makefile.am: Run "make dep-am".
6079 * Makefile.in: Regenerate.
6080 * aclocal.m4: Regenerate.
6081 * config.in: Regenerate.
6082 * po/bfd.pot: Regenerate.
6084 2004-03-19 Alan Modra <amodra@bigpond.net.au>
6085 H.J. Lu <hongjiu.lu@intel.com>
6087 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
6088 type and size change code to where it was previously. Remove
6089 dt_needed param. Treat old weak syms as strong if new sym is
6090 from a shared lib, even when old sym is from another shared
6091 lib. Remove unnecessary tests of oldweak and newweak. Correct
6093 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
6094 _bfd_elf_merge_symbol calls.
6095 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
6096 dt_needed local var. Update comments.
6097 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
6098 (_bfd_elf_add_default_symbol): Likewise.
6100 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
6101 strong syms in one shared object overriding weak syms in another.
6103 2004-03-18 Alan Modra <amodra@bigpond.net.au>
6105 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
6106 dyn_lib_class field. Rearrange for better packing.
6107 (elf_dt_soname): Delete.
6108 (elf_dyn_lib_class): Define.
6109 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
6110 (bfd_elf_set_dt_needed_soname): Delete.
6111 (bfd_elf_set_dyn_lib_class): New function.
6112 * elflink.h (add_dt_needed_tag): New function. Split out from..
6113 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
6114 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
6115 initialization of soname.
6116 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
6118 * bfd-in.h (enum dynamic_lib_link_class): New.
6119 (bfd_elf_set_dt_needed_soname): Delete.
6120 (bfd_elf_set_dyn_lib_class): Declare.
6121 * bfd-in2.h: Regenerate.
6123 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
6124 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
6125 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
6126 symbol loop. Instead use add_needed to flag tag as written.
6128 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
6130 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
6131 logic for null_input_bfd detection.
6133 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6135 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
6137 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6139 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
6142 2004-03-16 Alan Modra <amodra@bigpond.net.au>
6144 * elflink.c (elf_link_read_relocs_from_section): Don't use
6145 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
6146 (_bfd_elf_link_read_relocs): ..to here.
6147 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
6149 2004-03-16 Alan Modra <amodra@bigpond.net.au>
6151 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
6152 values selected in configure.host. Require both to be defined
6153 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
6154 corresponding BFD_HOST vars with quotes.
6155 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
6156 Always require BFD_HOST_64_BIT_DEFINED.
6157 <file_ptr type>: Find off_t size before emitting message. Combine
6158 off_t and ftello64 conditional.
6159 * configure: Regenerate.
6161 2004-03-16 Alan Modra <amodra@bigpond.net.au>
6163 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
6164 aliasing warning. Remove trailing whitespace throughout file.
6166 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6168 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
6169 input_section in calls to get_dyn_name.
6170 * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for
6172 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
6174 2004-03-15 Alan Modra <amodra@bigpond.net.au>
6176 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
6177 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
6178 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
6179 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
6180 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
6181 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
6182 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
6184 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
6185 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
6186 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
6187 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
6188 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
6189 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
6190 (read_8_bytes, read_indirect_string, read_address): Likewise.
6191 (read_abbrevs, parse_comp_unit): Likewise.
6192 * targets.c (struct bfd_target): Likewise.
6193 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
6194 * hppabsd-core.c: Likewise. Formatting.
6195 * hpux-core.c: Likewise.
6196 * irix-core.c: Likewise.
6197 * netbsd-core.c: Likewise.
6198 * osf-core.c: Likewise.
6199 * ptrace-core.c: Likewise.
6200 * sco5-core.c: Likewise.
6201 * trad-core.c: Likewise.
6202 * configure: Regenerate.
6203 * bfd-in2.h: Regenerate.
6205 2004-03-15 Alan Modra <amodra@bigpond.net.au>
6207 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
6208 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
6209 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
6210 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
6211 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
6212 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
6213 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
6214 * libbfd.c: Likewise in function definitions.
6215 (bfd_put_8): Mask with 0xff rather than casting to char.
6216 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
6217 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
6218 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
6219 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
6220 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
6221 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
6222 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
6223 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
6224 (H_GET_64, H_GET_32, H_GET_16): Likewise.
6225 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
6226 * archive.c (do_slurp_coff_armap): Update swap prototype.
6227 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
6228 (tic54x_getl_signed_32): Likewise.
6229 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
6230 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
6231 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
6232 (bfd_getp_signed_32, bfd_putp32): Likewise.
6233 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
6234 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
6235 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
6236 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
6237 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
6238 bfd_h_getx_signed_16, bfd_h_putx16.
6239 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
6240 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
6241 * hpux-core.c: Likewise.
6242 * irix-core.c: Likewise.
6243 * netbsd-core.c: Likewise.
6244 * osf-core.c: Likewise.
6245 * ptrace-core.c: Likewise.
6246 * sco5-core.c: Likewise.
6247 * trad-core.c: Likewise.
6248 * bfd-in2.h: Regenerate.
6250 2004-03-15 Matt Thomas <matt@3am-software.com>
6252 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
6255 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6257 * config.bfd: Add x86_64-*-openbsd*.
6258 * configure.in (x86_64-*-openbsd*): Set COREFILE to
6260 * configure: Regenerate.
6262 2004-03-12 Nick Clifton <nickc@redhat.com>
6263 Dave Murphy <wintermute2k4@ntlworld.com>
6265 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
6266 if the input bfd does not contain any code.
6268 2004-03-09 Steve Ellcey <sje@cup.hp.com>
6270 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
6272 2004-03-05 Fred Fish <fnf@redhat.com>
6274 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
6275 mips16 symbols to be even rather than testing first for even/odd.
6276 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
6278 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
6280 * elf.c (map_sections_to_segments): Ignore .tbss sections for
6283 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
6285 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
6286 undefined symbols as hash_new.
6288 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
6290 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
6292 * elf32-sh.c: Ditto.
6293 * bfd-in2.h: Regenerate.
6295 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
6297 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
6299 (_frv_count_got_plt_entries): Initialize them.
6300 (frv_pic_relocs_info_find): Add insert argument. Adjust all
6302 (frv_pic_relocs_info_for_global): Likewise.
6303 (frv_pic_relocs_info_for_local): Likewise.
6304 (frv_pic_merge_early_relocs_info): New.
6305 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
6307 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
6308 Check that we don't exceed the allocated count for entry.
6309 (_frv_add_rofixup): Likewise.
6310 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
6311 (elf32_frv_finish_dynamic_sections): Improve error message in case
6312 we emit too few rofixup entries.
6314 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
6316 * archures.c (bfd_mach_fr450): New.
6317 * bfd-in2.h: Regenerate.
6318 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
6319 (arch_info_500): Link to it.
6320 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
6321 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
6322 (frv_elf_arch_extension_p): New function.
6323 (frv_elf_merge_private_bfd_data): Use it.
6325 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
6327 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
6329 * elflink.h (is_global_data_symbol_definition): Moved to
6331 (elf_link_is_defined_archive_symbol): Likewise.
6332 (elf_link_add_archive_symbols): Likewise. Renamed to
6333 _bfd_elf_link_add_archive_symbols.
6335 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
6336 of ELF symbol table entry from backend.
6337 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
6338 instead of elf_link_add_object_symbols.
6340 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
6342 * elf-bfd.h (struct elf_backend_data): Added
6343 elf_backend_can_make_relative_eh_frame,
6344 elf_backend_can_make_lsda_relative_eh_frame and
6345 elf_backend_encode_eh_address.
6346 (_bfd_elf_encode_eh_address): Declare.
6347 (_bfd_elf_can_make_relative): Declare.
6348 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
6349 hooks to decide whether to attempt to make_relative and
6351 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
6352 (_bfd_elf_can_make_relative): New.
6353 (_bfd_elf_encode_eh_address): New.
6354 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
6355 (frv_elf_encode_eh_address): New.
6356 (elf_backend_can_make_relative_eh_frame): Define.
6357 (elf_backend_can_make_lsda_relative_eh_frame): Define.
6358 (elf_backend_encode_eh_address): Define.
6360 (elf_backend_can_make_relative_eh_frame): Define.
6361 (elf_backend_can_make_lsda_relative_eh_frame): Define.
6362 (elf_backend_encode_eh_address): Define.
6363 (elfNN_bed): Add them.
6365 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
6367 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
6368 complain_on_overflow to signed.
6370 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
6372 * elflink.h (sort_symbol): New.
6373 (elf_link_add_object_symbols): Use a sorted symbol array for
6376 2004-02-27 Jakub Jelinek <jakub@redhat.com>
6378 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
6379 for pc relative relocs.
6380 (elf_s390_relocate_section): Likewise.
6381 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
6382 for pc relative relocs.
6383 (elf_s390_relocate_section): Likewise.
6385 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
6387 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
6390 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
6392 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
6393 field to track if a relocation is against readonly section.
6394 (count_dyn_reloc): Take a new argument for rent->reltext.
6395 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
6396 (get_reloc_section): Don't set ia64_info->reltext here.
6397 (allocate_dynrel_entries): Set ia64_info->reltext here.
6399 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
6401 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
6402 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
6403 function's descriptor to symbol+offset, and map local undefweak
6404 symbol to NULL function descriptor.
6405 (elf32_frv_relocate_section): Likewise.
6407 2004-02-23 Mark Kettenis <kettenis@gnu.org>
6409 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
6411 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
6412 (netbsd_core_file_p): Set architecture from machine ID for
6415 2004-02-23 Jakub Jelinek <jakub@redhat.com>
6417 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
6418 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
6420 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
6422 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
6423 symbols with non-default visibility.
6425 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
6427 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
6428 IMAGE_SCN_MEM_WRITE on known sections only.
6430 2004-02-20 Jakub Jelinek <jakub@redhat.com>
6432 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
6433 symbols used in PIE relocs.
6435 2004-02-19 Jakub Jelinek <jakub@redhat.com>
6437 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
6440 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
6442 * configure.in: Update version to 2.15.90.
6443 * configure: Regenerate.
6445 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
6446 Richard Sandiford <rsandifo@redhat.com>
6448 * elfxx-mips.c (mips_elf_calculate_relocation): Use
6449 _bfd_elf_symbol_refs_local_p to decide whether to decay
6450 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
6451 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
6452 relocs if the symbol wasn't defined by a regular object file.
6453 Don't check the symbol's dynindx.
6455 2004-02-16 Andrew Cagney <cagney@redhat.com>
6457 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
6459 * bfd-in2.h: Re-generate.
6461 2004-02-14 Andrew Cagney <cagney@redhat.com>
6463 * configure.host (HDEFINES): When hppa*-*-hpux*, define
6464 _LARGEFILE64_SOURCE.
6466 2004-02-13 Andrew Cagney <cagney@redhat.com>
6468 * elf.c (vma_page_aligned_bias): New function.
6469 (assign_file_positions_except_relocs)
6470 (assign_file_positions_for_segments): Replace broken modulo
6471 arithmetic with call to vma_page_aligned_bias.
6473 2004-02-11 Andrew Cagney <cagney@redhat.com>
6475 * bfd-in.h: Update copyright.
6476 (bfd_tell): Change return type to file_ptr.
6477 * bfd-in2.h: Re-generate.
6478 * cache.c: Update copyright.
6479 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
6481 (close_one): Use real_ftell.
6482 * bfdio.c: Update copyright.
6483 (real_ftell, real_fseek): New functions.
6484 (bfd_tell): Use real_fseek and real_ftell, change return type to
6486 (bfd_seek): Use real_ftell and real_fseek, change type of
6487 file_position to a file_ptr.
6488 * libbfd-in.h: Update copyright.
6489 (real_ftell, real_fseek): Declare.
6490 * libbfd.h: Re-generate.
6492 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
6493 fseeko and fseeko64. Determine bfd_file_ptr.
6494 * configure: Re-generate.
6495 * config.in: Re-generate.
6497 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
6499 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
6500 * elf32-h8300.c: Likewise.
6502 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
6503 Nick Clifton <nickc@redhat.com>
6505 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
6506 GOT entries with no associated GOT subsection.
6508 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
6510 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
6511 * elf.c (swap_out_syms): Use it to decide whether local section
6512 symbols should be named.
6513 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
6514 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
6515 (elf_backend_name_local_section_symbols): Define.
6516 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
6518 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
6520 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
6521 (elfNN_ia64_relax_section): Optimize brl to br during the relax
6524 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
6526 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
6527 to bfd_link_hash_entry passed by reference to
6528 _bfd_generic_link_add_one_symbol.
6530 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
6532 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
6533 relocations against dynamic symbols.
6535 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
6537 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
6540 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
6542 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
6543 * bfd-in2.h, libbfd.h: Rebuilt.
6545 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
6547 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
6548 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
6549 flag has been cleared.
6551 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
6553 * coff-h8300.c: Add and adjust comments about relaxation.
6554 * elf32-h8300.c: Likewise.
6556 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6558 * coff-h8300.c: Fix comment typos.
6559 * elf32-h8300.c: Likewise.
6561 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6563 * coff-h8300.c: Add comments about relaxation.
6564 * elf32-h8300.c: Likewise.
6566 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6568 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
6570 * aclocal.m4: Regenerate.
6571 * configure: Regenerate.
6573 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
6575 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
6576 mips_elf64_rtype_to_howto instead of using howto_table.
6578 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
6580 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
6582 (elf32_arm_check_relocs): Don't increment the PLT refcount for
6583 relocs which would not use the PLT.
6585 2004-01-13 Alan Modra <amodra@bigpond.net.au>
6587 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
6588 (ppc64_elf_gc_sweep_hook): Likewise.
6589 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
6591 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
6593 Adds linker relaxation support for bit manipulation insns like
6594 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
6596 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
6597 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
6598 * coff-h8300.c: Opcode for bit manipulation insn is checked in
6599 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
6601 2004-01-12 Alan Modra <amodra@bigpond.net.au>
6603 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
6605 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
6607 * elf32-h8300.c: Fix formatting.
6609 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
6611 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
6612 dynamic object is present. Declare r_symndx and h in an inner
6614 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
6616 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
6618 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
6619 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
6620 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
6621 identically. Do not emit PC24 relocations for shared libraries.
6622 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
6623 identically. Don't adjust pc_count.
6624 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
6625 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
6626 adjust count for branch relocations.
6627 (allocate_dynrelocs): Correct typo in call to
6628 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
6629 PC24 or PLT32 relocs when linking.
6631 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
6633 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
6634 relocation howto with ARM_26 one for consistency.
6635 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
6636 that will be converted to ARM_26D ones, since we always want 'done'
6637 relocations to be reflected in section's data.
6638 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
6640 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
6643 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
6645 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
6646 are not partial_inplace during a relocatable link.
6648 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
6650 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
6651 if no dynamic object is present. Declare r_symndx and h in an
6654 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
6656 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
6657 trampoline if it is known out of range.
6659 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
6661 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
6662 * elf32-frv.c (_frv_osec_readonly_p): New.
6663 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
6665 (_frv_count_got_plt_entries): Adjust expected count accordingly.
6666 (elf32_frv_relocate_section): Likewise. Error out if attempting
6667 to emit rofixups or dynamic relocs in read-only segments. Use
6668 _bfd_elf_section_offset to adjust r_offsets in rofixups and
6669 dynamic relocations.
6670 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
6671 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
6672 relocations or fixups involving merged sections correctly. Avoid
6673 crash when undefined symbol is referenced by R_FRV_32 or
6674 R_FRV_FUNCDESC_VALUE.
6675 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
6676 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
6677 input section holding local symbol to addend of R_FRV_32 or
6678 R_FRV_FUNCDESC_VALUE dynamic relocation.
6679 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
6680 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
6681 (elf32_frv_always_size_sections): Don't store pointer to
6682 __stacksize symbol in sec_info.
6683 (elf32_frv_modify_segment_map): Look it up here.
6684 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
6685 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
6686 of the lazy PLT entry, not only its offset, as the low word of a
6687 function descriptor.
6688 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
6689 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
6690 if a hash table entry already exists but is not a definition.
6691 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
6692 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
6693 (_frv_add_rofixup): Don't inline.
6694 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
6695 for undefweak symbols.
6696 (elf32_frv_relocate_section): Avoid crash while computing
6697 relocation when linking with shared library. Only emit rofixups
6698 and dynamic relocations for alloc&load sections. Mark binaries
6699 with inter-segment relocations for relocation as a unit.
6700 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
6701 (DEFAULT_STACK_SIZE): New.
6702 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
6703 emit rofixups or dynamic relocs when linking dynamic non-PIE
6705 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
6706 shared libs too. Reserve the last entry for the GOT pointer.
6707 (elf32_frv_finish_dynamic_sections): Emit it.
6708 (elf32_frv_always_size_sections): New.
6709 (elf32_frv_modify_segment_map): New.
6710 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
6712 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
6713 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
6714 (elf_backend_always_size_sections): New.
6715 (elf_backend_modify_segment_map): New.
6716 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
6717 * config.bfd: Added frv-*-*linux*.
6718 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
6719 ABS section, instead of crashing.
6720 (elf32_frv_relocate_section): Don't crash before warning about
6721 different segments in non-PIC relocation.
6722 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
6723 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
6724 relocs to undefweak symbols.
6725 (elf32_frv_relocate_section): Ditto for undefined symbols.
6726 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
6727 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
6728 gotfixup section was created.
6729 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
6730 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
6731 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
6732 complain_overflow_signed.
6733 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
6734 have not been allocated.
6735 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
6736 privfd only if dynamic sections were created.
6737 (elf32_frv_relocate_section): Compute gprel_segment, and use it
6738 for GPREL relocs. When linking relocatable FDPIC executables,
6739 emit warnings for relocations that would be illegal on PIE or
6740 shared libraries. Emit rofixup for R_FRV_32 only if input object
6742 (_frv_create_got_section): Define _gp symbol in the rofixup
6744 (elf32_frv_finish_dynamic_sections): If rofixups needed but
6745 dynamic sections missing, error out requesting -melf32frvfd.
6746 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
6747 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
6748 computation of addends from section and global or local symbol
6749 value. Change return type to bfd_boolean, and return a failure if
6750 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
6751 nonzero addend is required.
6752 (elf32_frv_relocate_section): Likewise. Print error for
6753 unsupported nonzero addends.
6754 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
6755 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
6756 force everything local.
6757 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
6758 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
6759 (frv_gotfixup_section): New.
6760 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
6761 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
6763 (_frv_add_rofixup): New.
6764 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
6765 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
6766 improve some ugly conditions.
6767 (elf32_frv_relocate_section): Likewise. Reject inter-segment
6768 relocations in fdpic.
6769 (_frv_create_got_section): Create .rofixup.got section.
6770 (struct _frv_dynamic_got_info): Added fixups.
6771 (_frv_count_got_plt_entries): Account in-GOT relocations into
6772 relocs32, relocsfd and relocsfdv. Account them into relocs or
6773 fixups, as appropriate.
6774 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
6776 (elf32_frv_finish_dynamic_sections): Verify that the right number
6777 of relocations and fixups was generated.
6778 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
6780 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
6781 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
6782 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
6783 descriptor of a (formerly-)global symbol is local.
6784 (struct frv_pic_relocs_info): Adjust comments.
6785 (_frv_emit_got_relocs_plt_entries): Adjust.
6786 (elf32_frv_relocate_section): Likewise.
6787 (_frv_count_got_plt_entries): Likewise.
6788 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
6789 symbol's value to addend in the common preamble. Decay dynamic
6790 symbols to section+offset if they bind or call locally, for GOT
6791 and FUNCDESC_VALUE, respectively.
6792 (elf32_frv_relocate_section): Likewise.
6793 (elf32_frv_check_relocs): Don't register as dynamic symbols of
6794 internal or hidden visibility.
6795 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
6796 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
6797 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
6798 (elf32_frv_relocate_section): Pass relocation addend in. Use
6799 original relocation addend to look up the got relocs/plt entries
6800 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
6801 processing relocations that reference .scommon symbols.
6802 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
6803 Introduce support for dynamic linking.
6804 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
6805 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
6806 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
6807 (frv_reloc_type_lookup): Return REL howtos for executables and
6809 (frv_info_to_howto_rel): New.
6810 (struct frv_elf_link_hash_table): New.
6811 (frv_hash_table, frv_got_section, frv_gotrel_section,
6812 frv_plt_section, frv_pltrel_section, frv_relocs_info,
6813 frv_got_initial_offset, frv_plt_initial_offset): New macros.
6814 (frv_elf_link_hash_table_create): New.
6815 (struct frv_pic_relocs_info): New.
6816 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
6817 (frv_pic_relocs_info_find): New.
6818 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
6820 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
6821 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
6822 (_frv_emit_got_relocs_plt_entries): New.
6823 (elf32_frv_relocate_section): Add support for dynamic linking.
6824 Handle new relocations.
6825 (_frv_create_got_section): New.
6826 (elf32_frv_create_dynamic_sections): New.
6827 (ELF_DYNAMIC_INTERPRETER): New.
6828 (struct _frv_dynamic_got_info): New.
6829 (_frv_count_got_plt_entries): New.
6830 (struct _frv_dynamic_got_plt_info): New.
6831 (_frv_compute_got_alloc_data): New.
6832 (_frv_get_got_entry, _frv_get_fd_entry): New.
6833 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
6834 (_frv_resolve_final_relocs_info): New.
6835 (elf32_frv_size_dynamic_sections): New.
6836 (elf32_frv_finish_dynamic_sections): New.
6837 (elf32_frv_adjust_dynamic_symbol): New.
6838 (elf32_frv_finish_dynamic_symbol): New.
6839 (elf32_frv_check_relocs): Handle new relocs. Explain how the
6841 (elf_info_to_howto_rel): Define.
6842 (bfd_elf32_bfd_link_hash_table_create): Define.
6843 (elf_backend_create_dynamic_sections): Define.
6844 (elf_backend_adjust_dynamic_symbol): Define.
6845 (elf_backend_size_dynamic_sections): Define.
6846 (elf_backend_finish_dynamic_symbol): Define.
6847 (elf_backend_finish_dynamic_sections): Define.
6848 (elf_backend_want_got_sym): Define.
6849 (elf_backend_got_header_size): Define.
6850 (elf_backend_want_got_plt): Define.
6851 (elf_backend_plt_readonly): Define.
6852 (elf_backend_want_plt_sym): Define.
6853 (elf_backend_plt_header_size): Define.
6854 (elf_backend_may_use_rel_p): Define.
6855 (elf_backend_may_use_rela_p): Define.
6856 (elf_backend_default_use_rela_p): Define.
6857 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
6858 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
6859 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
6860 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
6861 (frv_reloc_map): Map the corresponding BFD relocs to them.
6862 (frv_reloc_type_lookup): ... and back to BFD relocs.
6863 * reloc.c: New relocs.
6864 * bfd-in2.h, libbfd.h: Rebuilt.
6865 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
6866 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
6867 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
6868 R_FRV_FUNCDESC_GOTLO): New.
6869 (frv_reloc_map): Map the corresponding BFD relocs to them.
6870 (frv_reloc_type_lookup): ... and back to BFD relocs.
6871 * reloc.c: New relocs.
6872 * bfd-in2.h, libbfd.h: Rebuilt.
6874 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6876 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
6877 targets to support pages of up to 64kB.
6878 (elf32_bed): Redefine to get a separate backend data structure for
6879 traditional targets.
6880 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
6881 targets to support pages of up to 64kB.
6882 (elf64_bed): Redefine to get a separate backend data structure for
6883 traditional targets.
6884 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
6885 targets to support pages of up to 64kB.
6886 (elf32_bed): Redefine to get a separate backend data structure for
6887 traditional targets.
6889 2004-01-04 Mark Kettenis <kettenis@gnu.org>
6891 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
6893 2004-01-02 Mark Kettenis <kettenis@gnu.org>
6895 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
6896 (elf_i386_grok_psinfo): Likewise.
6898 2004-01-02 Bernardo Innocenti <bernie@develer.com>
6900 * config.bfd: Add m68k-uClinux target.
6902 2004-01-01 Grant Edwards <grante@visi.com>
6904 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
6905 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
6906 (elf32_h8_gc_sweep_hook): New function.
6907 (elf_backend_gc_mark_hook): Define.
6908 (elf_backend_gc_sweep_hook): Define.
6909 (elf_backend_can_gc_sections): Define.
6911 For older changes see ChangeLog-0203
6917 version-control: never