blob: d782ee51cc051d79c991ae9fd9a45967e532d0ef [file] [log] [blame]
2001-10-24 Richard Henderson <>
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
timestamp to time_t for ctime.
2001-10-24 Richard Henderson <>
2001-08-23 Jakub Jelinek <>
* elfxx-ia64.c (elfNN_ia64_hash_table_create): Clear ia64_info.
2001-10-06 Stephane Carrez <>
* dwarf2.c (comp_unit_find_nearest_line): Check for end of
compilation unit.
2001-08-29 Joel Sherrill <>
* config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
default from coff to elf.
2001-08-03 Ben Harris <>
* elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
reloc from start of section when computing value for R_ARM_REL32
2001-07-06 Philip Blundell <>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Correct sense of
`interworking' warning message.
2001-07-05 Nick Clifton <>
* peicode.h (coff_swap_scnhdr_in): For sections containing
uninitialised data, only set their size to s_paddr if this does
not reset their size to zero. MS's latest compilers will set
s_paddr to zero.
2001-06-20 Bo Thorsen <>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
shared libraries.
2001-06-21 Alan Modra <>
* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
allocate local .got space. Use shortcuts from hash table for .got
and .plt rather than comparing section names.
(elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
adjusting index into local_got_refcounts to document what we are
really doing.
(elf32_hppa_relocate_section): Similarly for local_plt_offsets.
Tidy .got and .plt error checking.
2001-06-19 Philip Blundell <>
* Set version to 2.11.2.
* configure: Regenerate.
2001-06-19 Andreas Jaeger <>
Merge from mainline sources:
2001-06-19 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
dynamic symbols.
2001-06-07 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
(elf64_x86_64_check_relocs): Set an alignment of 8 for .rela
sections; handle further relocations.
2001-06-01 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
relocation, small reformatting.
2001-06-14 Nick Clifton <>
Merge from mainline sources:
2001-04-27 Sean McNeil <>
* config.bfd: Add arm-vxworks target.
* coff-arm (coff_arm_relocate_section): Add in symbol value to
addend (fro VXworks targets).
2001-03-06 Nick Clifton <>
* elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
of offset in BLX(1) instruction.
* coff-arm.c (coff_arm_relocate_section): Clear bit zero of
offset in BLX(1) instruction.
Fix formatting.
2001-03-06 Nick Clifton <>
* coff-arm.c (coff_arm_reloc_type_lookup): Add
2001-05-04 Nick Clifton <>
* elf32-arm.h (elf32_arm_final_link_relocate): Set
EF_ARM_HASENTRY if the start address is set.
2001-06-11 Alan Modra <>
* (<COREFILE case stmt>): Move powerpc-*-*bsd* after
Merge from mainline.
2001-06-02 H.J. Lu <>
* elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
* elf64-hppa.c (elf64_hppa_object_p): Likewise.
2001-06-02 Hans-Peter Nilsson <>
* section.c (_bfd_strip_section_from_output): Handle NULL
2001-05-30 Alan Modra <>
* elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
millicode. Don't allocate .got and space here..
(elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
(elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
.rela.plt here..
(hppa_handle_PIC_calls): ..nor here..
(allocate_plt_and_got): ..instead do it all here. New function.
(elf32_hppa_size_dynamic_sections): Allocate local .got space and
call allocate_plt_and_got. No need to zap .got if not dynamic.
(elf32_hppa_final_link): Call regular bfd_final_link instead of
(elf32_hppa_relocate_section): Use it here.
(elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
(hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2001-05-28 Thiemo Seufer <>
* elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
a zeroing loop.
(elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
(elf_link_input_bfd): Likewise.
(elf_reloc_link_order): Likewise.
(elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
relocations correctly.
2001-05-28 Alan Modra <>
* elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
for symbols forced local that need plabels.
(elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
.plt.rela for local syms if non-shared.
(hppa_build_one_stub): Mask lsb of plt.offset.
(elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
(clobber_millicode_symbols): Correct comment.
(elf32_hppa_relocate_section): Likewise.
(elf32_hppa_finish_dynamic_symbol): Likewise.
2001-05-25 Alan Modra <>
* elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
undefined millicode syms in shared libs.
(hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
(elf32_hppa_check_relocs): Likewise.
(elf32_hppa_adjust_dynamic_symbol): Likewise.
(elf32_hppa_size_dynamic_sections): Likewise.
(elf32_hppa_relocate_section): Likewise.
(elf32_hppa_finish_dynamic_symbol): Likewise.
(elf32_hppa_finish_dynamic_sections): Likewise.
2001-05-23 Alexandre Oliva <>
* elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2001-05-23 Thiemo Seufer <>
* reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
* archures.c (bfd_mach_mips12000): Define.
* cpu-mips.c (arch_info_struct): Add MIPS r12k support.
* elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
(_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
* bfd-in2.h: Regenerate.
* elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2001-05-23 Nick Clifton <>
* elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
of entries in a structured section.
* elf.c: Use new macro.
* elf32-i386.c: Use new macro.
* elf32-mips.c: Use new macro.
* elf64-alpha.c: Use new macro.
* elf64-sparc.c: Use new macro.
* elfcode.h: Use new macro.
* elflink.h: Use new macro.
2001-05-21 Andreas Jaeger <>
* dwarf2.c (decode_line_info): Fix error message.
(read_abbrevs): Fix test for offset as suggested by Alan Modra and
adjust error message.
2001-05-17 H.J. Lu <>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
version definition to basename of the output filename.
2001-05-15 Alexandre Oliva <>
* elf-m10300.c (mn10300_elf_relax_section): Don't relax
negative 32-bit operands to 16 operands when the operand is
going to be zero-extended by the modified opcode.
2001-05-11 Jakub Jelinek <>
* elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
sections as well.
(elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
to .gnu.linkonce.t.FOO text section.
2001-05-11 Nick Clifton <>
* dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
to be unsigned long, in order to match its use.
2001-05-10 H.J. Lu <>
* linker.c (_bfd_generic_link_add_one_symbol): Check loop on
indirect symbols.
2001-05-09 H.J. Lu <>
* elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
Remove the unused veriable `dynver'.
2001-05-07 Thiemo Seufer <>
* elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
is always a positive integer. Cast away sign mismatch.
* elf32-mips.c: Fix misleading comment and typo.
(_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
correct data type.
* elflink.c: Fix typo.
(_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
* ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2001-05-03 Nick Clifton <>
* targets.c (_bfd_target_vector_entries): Compute value based on
the size of the _bfd_target_vector and not bfd_target_vector.
2001-05-03 Andreas Jaeger <>
* elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
(elf_generic_info_to_howto_rel): Likewise.
* coff-alpha.c (reloc_nil): Likewise.
(alpha_ecoff_bad_format_hook): Likewise.
(alpha_adjust_reloc_out): Likewise.
(alpha_bfd_reloc_type_lookup): Likewise.
(alpha_convert_external_reloc): Likewise.
* elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
(elf64_alpha_reloc_bad): Likewise.
(elf64_alpha_reloc_gpdisp): Likewise.
(elf64_alpha_bfd_reloc_type_lookup): Likewise.
(elf64_alpha_info_to_howto): Likewise.
(elf64_alpha_add_symbol_hook): Likewise.
(elf64_alpha_create_got_section): Likewise.
(elf64_alpha_is_local_label_name): Likewise.
(elf64_alpha_merge_ind_symbols): Likewise.
* elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
(mips_elf64_get_reloc_upper_bound): Likewise.
* nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
(nlm_alpha_get_public_offset): Likewise.
2001-04-30 H.J. Lu <>
* elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
* elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
* elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
* elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
if the symbol has hidden or internal visibility.
2001-04-14 Mark Elbrecht <>
* coffcode.h (coff_write_object_contents): Use
bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2001-04-09 Hans-Peter Nilsson <>
* elflink.h (elf_fix_symbol_flags): For non-default visibilities,
only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2001-04-05 Steven J. Hill <>
* config.bfd (mips*el*-*-linux-gnu*): Use traditional little
endian MIPS ELF target.
(mips*-*-linux-gnu*): Use traditional big endian MIPS ELF target.
* (bfd_elf64_tradbigmips_vec): New. Traditional
64bit big endian MIPS ELF target.
(bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
endian MIPS ELF target.
* configure: Regenerated.
* elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
little endian targets.
(mips_elf_sym_is_global): Handle traditional targets.
* elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
64bit big endian MIPS ELF target.
(bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
endian MIPS ELF target.
* targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
and bfd_elf64_tradlittlemips_vec.
2001-04-04 Alan Modra <>
* elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
when -Bsymbolic causes a symbol to no longer need a .plt entry.
2001-04-03 David Mosberger <>
* efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2001-03-30 H.J. Lu <>
* efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2001-03-23 Nick Clifton <>
* (BUILD_CFILES): New variable: List of C source
files created in build directory.
(BUILD_HFILES): New variable: List of header files created in
build directory.
(POTFILES): Delete.
(po/ Replace rule with empty entry.
(po/ New rule: Create a list of source files
in the source directory.
(po/ New rule: Create a list of source files
in the build directory.
(MOSTLYCLEAN): Do not delete source files created in build
* Regenerate.
* Insert and
into po/Makefile.
* configure: Regenerate.
* po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
Add .. to the search path when building bfd.pot.
Delete POTFILES when performing distclean.
Add comment describing why distclean is broken in maintainer mode.
* po/ Delete.
* po/ New file.
* po/ New file.
* po/bfd.pot: Regenerate.
2001-03-06 Igor Shevlyakov <>
* archures.c (bfd_default_scan): Add Coldfire CPUs.
* bfd-in2.h: Regenerate.
* cpu-m68k.c: Add Coldfire CPUs for arch table.
* ieee.c (ieee_write_processor): Set proper id for
Coldfire CPUs.
2001-02-27 H.J. Lu <>
* aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
abfd->tdata.aout_data == NULL.
2001-02-26 Nick Clifton <>
* coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
up, replacing multiple if statements with a switch.
(handle_COMDAT): New function.
2001-02-26 H.J. Lu <>
* coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
a warning for section flags we do not handle instead of
2001-02-19 Jakub Jelinek <>
* elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
entries that could serve as a definition for a weak symbol.
* elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
2001-02-18 Jim Kingdon <>
* irix-core.c (irix_core_core_file_p): Set the architecture (GDB
multiarch needs it).
2001-02-18 H.J. Lu <>
* elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2001-02-18 Kazu Hirata <>
* vms-misc.c: Fix formatting.
2001-02-16 Kazu Hirata <>
* vms.c: Fix formatting.
2001-02-14 H.J. Lu <>
* elf.c (elf_find_function): New function.
(_bfd_elf_find_nearest_line): Call elf_find_function () to find
the file name and function name.
2001-02-14 Nick Clifton <>
* (BFD32_BACKENDS_CFILES): Remove peigen.c
(BFD64_BACKENDS): Add pepigen.c
Add rules to create peigen.c and pepigen.c from peXXigen.c.
2001-02-14 H.J. Lu <>
* libcoff-in.h (pe_tdata): Add members target_subsystem and
2001-02-13 Kazu Hirata <>
* vms.c (vms_print_symbol): Remove unreachable code.
* rs6000-core.c: Fix formatting.
2001-02-13 David Mosberger <>
* peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
as _bfd_XXi_only_swap_filehdr_out.
pe->force_minimum_alignment to TRUE.
(pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
(pe_print_private_bfd_data): Call
_bfd_XX_print_private_bfd_data_common() instead of
(pe_bfd_copy_private_bfd_data): Call
_bfd_XX_bfd_copy_private_bfd_data_common() instead of
(coff_bfd_copy_private_section_data): Define as
_bfd_XX_bfd_copy_private_section_data instead of
(coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
of a _bfd_pe_get_symbol_info.
* peigen.c: Delete.
* peXXigen.c: Renamed from peigen.c.
(COFF_WITH_XX): Define this macro (will get expanded into
COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
compiled as peigen.c or pepigen.c.
[COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
define the canonical PEP structures and definitions.
(_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
effect, enforce minimum file and section alignments. If
extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
so, by default, this is a no-op).
* libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
(_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
_bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
_bfd_pefoo if it's not defined. Use these macros to define
coff swap macros.
* libcoff.h (pe_tdata): Add members target_subsystem and
* efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
* (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
* coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
* (BFD64_BACKENDS): Mention pepigen.lo.
(BFD64_BACKENDS_CFILES): Mention pepigen.c
(peigen.c): Add rule to generate from peXXigen.c.
(pepigen.c): Ditto.
(pepigen.lo): List dependencies for pepigen.lo.
2001-02-11 H.J. Lu <>
* elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
2001-02-11 Maciej W. Rozycki <>
* elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
relocations against dynsym symbols.
* elf32-mips.c (elf_mips_howto_table): Fix the comment on
the R_MIPS_26 relocation.
(mips_elf_calculate_relocation): Use (p + 4) instead of p for
the R_MIPS_26 relocation.
(mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
* elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
the R_MIPS_26 relocation.
(mips_elf64_howto_table_rela): Likewise.
* elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
member to mark symbols that have non-CALL relocations against
(mips_elf_link_hash_newfunc): Initialize no_fn_stub.
(mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
(_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
non-CALL relocation against it is encountered.
(_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
(_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
no_fn_stub is not set.
* elf32-mips.c (mips_elf_output_extsym): Get the output section
information from the real symbol for indirect ones.
Check no_fn_stub to find out if a symbol has a function stub
2001-02-09 Jakub Jelinek <>
* elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2001-02-09 Mark Kettenis <>
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
similar to R_SPARC_32.
* elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2001-02-08 Richard Henderson <>
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
before visibility. Locally defined protected symbols are not
2001-02-07 Jakub Jelinek <>
* elflink.h (is_global_symbol_definition): Rename to
is_global_data_symbol_definition and have it reject function
(elf_link_is_defined_archive_symbol): Use renamed function.
2001-02-07 Todd Vierling <>
* libbfd-in.h (bfd_target_vector): Change extern array to pointer.
* libbfd.h (bfd_target_vector): Likewise.
* targets.c (bfd_target_vector): Rename to _bfd_target_vector and
make static; create pointer reference named bfd_target_vector.
(_bfd_target_vector_entries): Calculate this based on the array
typed _bfd_target_vector.
2001-02-06 H.J. Lu <>
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
internal symbols are not dynamic.
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2001-02-06 Kazu Hirata <>
* elf-m10200.c: Fix formatting.
2001-02-01 Kazu Hirata <>
* elf-m10300.c: Fix formatting.
2001-06-10 Philip Blundell <>
* Set version to 2.11.1.
* configure: Regenerate.
2001-06-09 Philip Blundell <>
* elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
(elf32_arm_plt_entry): Likewise.
2001-06-07 Alan Modra <>
* Most files: Update copyright notices.
2001-05-29 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
(elf64_x86_64_relocate_section): Likewise.
2001-05-28 Andreas Jaeger <>
* elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
generic version since we want a hashsize of 4.
(elf_backend_size_info): Likewise.
2001-05-28 Nicolas Pitre <>
* elf32-arm.h: Fix PLT generation for big endian ARM.
2001-05-28 Jeff Sturm <>
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
and BFD_RELOC_SPARC_UA64 mapping
* elf64-sparc.c: Likewise.
2001-05-23 Alan Modra <>
Merge from mainline.
2001-05-17 Alan Modra <>
* elf32-hppa.c (hppa_build_one_stub): Add an assert to check
2001-05-16 Alan Modra <>
* section.c (asection): Add linker_has_input field.
(STD_SECTION): Adjust initialization to suit.
* ecoff.c (bfd_debug_section): Likewise.
* bfd-in2.h: Regenerate.
2001-05-07 Thiemo Seufer <>
* ecoff.c (bfd_debug_section): Fix initialization.
2001-05-12 Peter Targett <>
* cpu-arc.c (arch_info_struct): Add entry 'base' representing old
name for 'arc5' core versions.
(bfd_arc_arch): Make bfd_mach_arc_6 default.
* elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
(arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2001-05-08 Ian Lance Taylor <>
* coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
NULL or is not COFF.
(coff_i386_rtype_to_howto): Don't dump core if output section
owner is not COFF.
2001-04-13 Roger Sayle <>
* coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
flag on pe-i386 targets.
2001-04-26 H.J. Lu <>
* elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2001-04-05 David Mosberger <>
* elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
ordinary "progbits" section.
2001-05-04 Richard Henderson <>
* elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2001-04-30 Andreas Jaeger <>, Andreas Schwab <>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2001-04-27 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
out handled entries.
(elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
(elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
(elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2001-04-30 Alan Modra <>
* elf32-hppa.c (final_link_relocate): Branch to .+8 for
calls to undefined weak symbols.
2001-04-19 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
(elf64_x86_64_plt_entry): Likewise.
(elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
(elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2001-03-31 Philip Blundell <>
From 2001-03-26 H.J. Lu <>
* elf32-gen.c (elf32_generic_link_add_symbols): New. Check
if there are any relocations for generic ELF.
(bfd_elf32_bfd_link_add_symbols): Defined to
* elf64-gen.c (elf64_generic_link_add_symbols): New. Check
if there are any relocations for generic ELF.
(bfd_elf64_bfd_link_add_symbols): Defined to
2001-03-21 Alan Modra <>
* elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
non-NULL before attempting to dereference.
2001-03-20 Andreas Schwab <>
* elf32-m68k.c (elf_m68k_relocate_section): Don't need the
relocation value when resolving a reference from a debugging
2001-03-16 Philip Blundell <>
* configure: Regenerate.
2001-03-16 Alan Modra <>
* elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
(hppa_link_hash_newfunc): Init it.
(hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
section appears to be non-PIC.
(final_link_relocate): Likewise.
(elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
possible candidate function, and set pic_call for those that will
only have a .plt entry for the PIC call stub.
(hppa_handle_PIC_calls): Set maybe_pic_call.
* elf32-hppa.c: Correct field selector in stub comments.
(clobber_millicode_symbols): Formatting fix.
2001-03-11 Philip Blundell <>
* Set version to 2.11.
* elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
entries that could serve as a definition for a weak symbol.
2001-03-07 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
some relocation values.
2001-02-28 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
to addend.
2001-02-26 Andreas Jaeger <>
* elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2001-02-21 David Mosberger <>
* cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
C8 said "1" instead of "8". Clarify error string for IMM22:
"signed integer" instead of just "integer".
2001-02-20 Andreas Jaeger <>
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
PLT entries that could serve as a definition for a weak symbol.
2001-02-18 David O'Brien <obrien@FreeBSD>
* Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
FreeBSD/i386-CURRENT differently until I can figure out the needed
corefile changes.
* configure: Regenerate.
* config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
FreeBSD/PowerPC, and FreeBSD/sparc64.
2001-02-14 Philip Blundell <>
From 2001-02-06 H.J. Lu <>
* bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
(pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2001-02-14 Bo Thorsen <>
* elf64-x86-64.c: Small formatting fixes and rearrangements of code.
(elf64_86_64_size_info): Struct added to fix a problem
with the hashtable string entries.
(elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
(elf64_x86_64_size_dynamic_sections): A FIXME removed.
(elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
remove the FIXME for this.
(elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
section. Also removed the FIXME for it.
(x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
(ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
(elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
2001-02-14 Philip Blundell <>
From 2001-02-08 H.J. Lu <>
* elf32-i386.c (elf_i386_check_relocs): Reserve R_386_32
relocation entries for weak definitions when building DSO with
2001-02-13 Richard Henderson <>
* elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
and not user provided.
2001-02-13 Alan Modra <>
* elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
$global$ referenced but not defined, set its value here.
2001-02-09 Bo Thorsen <>
* elf64-x86-64.c (elf64_x86_64_check_relocs): Set section
alignment to 3.
(elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
and relocation.
(elf64_x86_64_relocate_section): Fix formatting.
(elf64_x86_64_relocate_section): Fix addend for relocation of
Mon Feb 12 17:44:39 CET 2001 Jan Hubicka <>
* elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
2001-02-10 Nick Clifton <>
* elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
rel, it will be handled later on.
2001-02-09 David Mosberger <>
* elfxx-ia64.c (is_unwind_section_name): New function. Returns
true if section name is an unwind table section name.
(elfNN_ia64_additional_program_headers): Count each unwind section
(elfNN_ia64_modify_segment_map): Install one unwind program header
for each unwind separate section. Note: normally the linker
script merges the unwind sections that go into a single segment,
so this still generates at most one unwind program header per
* elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
(elfNN_ia64_fake_sections): Mark sections with names that start
with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
unwind section.
* elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
Use it to make sh_info in unwind section point to the text section
it applies to.
2001-02-07 Mark Elbrecht <>
* coffgen.c (coff_find_nearest_line): If stabs info is successfully
found, do not attempt to find dwarf2 info before returning.
2001-01-30 Alan Modra <>
* elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
(elf_backend_get_symbol_type): Define.
(elf64_hppa_object_p): Set architecture and machine from elf
header flags.
2001-01-30 Curtis L. Janssen <>
* elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
before mdebug.
2001-01-26 Richard Henderson <>
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
for non-default visibility.
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
delete ugly macro and replace with pretty function.
2001-01-25 Mark Elbrecht <>
* coff-go32.c: Update copyright.
* coff-stgo32.c: Likewise.
* coff-go32.c (COFF_LONG_FILENAMES): Define.
* coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
* coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
* coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2001-01-25 Kazu Hirata <>
* bfd-in2.h: Rebuild.
* libbfd.h: Likewise.
2001-01-23 H.J. Lu <>
* bfd-in2.h: Rebuild.
2001-01-23 H.J. Lu <>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
is NULL or PRIV(vms_rec) is outside of the buffer.
2001-01-23 Kazu Hirata <>
* coff64-rs6000.c: Fix formatting.
* coff-arm.c: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* coff-mcore.c: Likewise.
* coff-mips.c: Likewise.
* coff-pmac.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* elf32.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i860.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-sparc.c: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elf-m10200.c: Likewise.
* elf-m10300.c: Likewise.
* elfxx-ia64.c: Likewise.
* aoutx.h: Fix formatting.
* bfd.c: Likewise.
* bfd-in2.h: Likewise.
* bfd-in.h: Likewise.
* cpu-i386.c: Likewise.
* cpu-m68hc11.c: Likewise.
* dwarf2.c: Likewise.
* elf64-x86-64.c: Likewise.
* format.c: Likewise.
* freebsd.h: Likewise.
* hash.c: Likewise.
* hp300hpux.c: Likewise.
* hppabsd-core.c: Likewise.
* hpux-core.c: Likewise.
2001-01-22 Bo Thorsen <>
* elf64-x86-64.c: Added PIC support for X86-64.
(elf64_x86_64_link_hash_newfunc): Function added.
(elf64_x86_64_link_hash_table_create): Likewise.
(elf64_x86_64_check_relocs): Likewise.
(elf64_x86_64_gc_mark_hook): Likewise.
(elf64_x86_64_gc_sweep_hook): Likewise.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_discard_copies): Likewise.
(elf64_x86_64_finish_dynamic_symbol): Likewise.
(elf64_x86_64_finish_dynamic_sections): Likewise.
(elf64_x86_64_relocate_section): Add relocation of PIC sections.
2001-01-21 Maciej W. Rozycki <>
* (install-data-local): Make use of $(DESTDIR).
* Regenerate.
2001-01-21 Kazu Hirata <>
* coff-a29k.c: Fix formatting.
2001-01-19 H.J. Lu <>
* elf32-i386.c (elf_i386_check_relocs): Report files with bad
relocation section names.
(elf_i386_relocate_section): Report files with bad relocation
section names and return false.
2001-01-17 Bo Thorsen <>
* targets.c: Alphabetize list of xvecs.
2001-01-14 Alan Modra <>
* config.bfd: Add linux target variant for elfxx-hppa.
* Recognize bfd_elf32_hppa_linux_vec and
* configure: Regenerate.
* elf64-hppa.c: Include elf64-target.h again to support linux
target variant.
(elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
* elf32-hppa.c: Include elf32-target.h again to support linux
target variant.
(elf32_hppa_post_process_headers): New function.
(elf_backend_post_process_headers): Define.
* targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
* elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
and data_segment_base fields.
(elf32_hppa_link_hash_table_create ): Init them.
(elf32_hppa_check_relocs): Update comments.
(hppa_record_segment_addr): New function.
(elf32_hppa_relocate_section): Call it.
(final_link_relocate): Handle R_PARISC_SEGREL32.
(elf32_hppa_final_link): New function.
(bfd_elf32_bfd_final_link): Define to call it.
(hppa_unwind_entry_compare): New function.
* cache.c (bfd_open_file): Create files in write+read mode.
* elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
SEGREL32 and numerous other relocs. Change duplicate
* opncls.c (bfd_fdopenr): Add parens like the comment says around
* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
.plt entries for DT_INIT and DT_FINI.
(elf32_hppa_finish_dynamic_sections): Remove special handling of
* elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
offsets for stub .plt access if wide mode. Check offset in range.
2001-01-13 Nick Clifton <>
* elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
* coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2001-01-12 Alan Modra <>
* ([bfd_elf64_x86_64_vec]): Set target64.
* configure: Regenerate.
2001-01-11 Peter Targett <>
* bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
* cpu-arc.c (arch_info_struct): Add entries for variants.
(bfd_arc_arch) Set default to bfd_mach_arc_5.
(arc_get_mach) Don't assume machine names prefixed arc- before
* elf32-arc.c (arc_elf_object_p): Set machine number based on new
(arc_elf_final_write_processing) Likewise.
2001-01-10 Nick Clifton <>
* coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2001-01-07 Philip Blundell <>
* README: Replace `' with
2001-01-04 Kazu Hirata <>
* som.c: Fix formatting.
2001-01-03 Kazu Hirata <>
* ecoffswap.h: Fix formatting.
* elf-bfd.h: Likewise.
* elfarm-nabi.c: Likewise.
* elfarm-oabi.c: Likewise.
* elfcode.h: Likewise.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-target.h: Likewise.
* libbfd.c: Likewise
* linker.c: Likewise.
* lynx-core.c: Likewise.
2001-01-02 Kazu Hirata <>
* pc532-mach.c: Fix formatting.
* pe-arm.c: Likewise.
* pe-i386.c: Likewise.
* pe-mips.c: Likewise.
* pe-ppc.c: Likewise.
* pe-sh.c: Likewise.
* pei-mips.c: Likewise.
* pei-sh.c: Likewise.
* peicode.h: Likewise.
* ppcboot.c: Likewise.
* ptrace-core.c: Likewise.
2001-01-01 Kazu Hirata <>
* reloc.c: Fix formatting.
* riscix.c: Likewise.
* rs6000-core.c: Likewise.
* xcoff-target.h: Likewise.
2000-12-29 Hans-Peter Nilsson <>
* elfcode.h (elf_object_p): Also restore the bfd mach field on
error, by calling bfd_default_set_arch_mach with incoming
2000-12-26 Kazu Hirata <>
* vaxnetbsd.c: Fix formatting.
* versados.c: Likewise.
* vms-gsd.c: Likewise.
* vms-hdr.c: Likewise.
* vms-misc.c: Likewise.
2000-12-25 Alexandre Oliva <>
* archive.c (coff_write_armap): Don't write more than symbol_count
2000-12-25 Kazu Hirata <>
* vms-tir.c: Fix formatting.
2000-12-23 Kazu Hirata <>
* vms.c: Fix formatting.
* vms.h: Likewise.
2000-12-21 Santeri Paavolainen <>
* vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
* peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
* elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
* elf32-fr30.c: Add casts to avoid (void *) arithmetic.
* coffcode.h (styp_to_sec_flags): Add empty statement after label.
2000-12-21 Richard Sandiford <>
* libbfd.c (bfd_get_bits): Added
(bfd_put_bits): Likewise
* bfd-in.h: Declared the above.
* bfd-in2.h: Regenerated.
2000-12-20 Kazu Hirata <>
* targets.c: Fix formatting.
* tekhex.c: Likewise.
* trad-core.c: Likewise.
2000-12-19 Kazu Hirata <>
* sco5-core.c: Fix formatting.
* section.c: Likewise.
* sparclinux.c: Likewise.
* sparclynx.c: Likewise.
* sparcnetbsd.c: Likewise.
* srec.c: Likewise.
* stabs.c: Likewise.
* stab-syms.c: Likewise.
* sunos.c: Likewise.
* syms.c: Likewise.
* sysdep.h: Likewise.
2000-12-18 Nick Clifton <>
* coff-arm.c (EXTRA_S_FLAGS): Only define if not already
* epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
* epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2000-12-18 Nick Clifton <>
* vms-misc.c (_bfd_vms_get_record): Add default case to
file_format switch.
2000-12-15 Miloslav Trmac <>
* elfcore.h (elf_core_file_p): Move to the start of the program
headers before attempting to read them.
2000-12-14 Kazu Hirata <>
* peigen.c: Fix formatting.
* som.c: Likewise.
* som.h: Likewise.
2000-12-13 Kazu Hirata <>
* peigen.c: Fix formatting.
2000-12-12 Jim Wilson <>
* elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2000-12-08 Mark Salter <>
* binary.c (binary_set_section_contents): Ignore sections
with zero size.
2000-12-12 Kazu Hirata <>
* m68klinux.c: Fix formatting.
* m68knetbsd.c: Likewise.
* mipsbsd.c: Likewise.
* netbsd-core.c: Likewise.
* netbsd.h: Likewise.
* newsos3.c: Likewise.
* nlm32-alpha.c: Likewise.
* nlm32-i386.c: Likewise.
* nlm32-ppc.c: Likewise.
* nlm32-sparc.c: Likewise.
* nlmcode.h: Likewise.
* nlmswap.h: Likewise.
* nlm-target.h: Likewise.
* ns32knetbsd.c: Likewise.
2000-12-10 Fred Fish <>
* elflink.h (elf_link_output_extsym): Don't complain about undefined
symbols in shared objects if allow_shlib_undefined is true.
2000-12-12 Nick Clifton <>
* cpu-sh.c: Fix formattng.
* elf.c: Fix formattng.
* elf32-mips.c: Fix formattng.
* elf32-sh.c: Fix formattng.
* elf64-alpha.c: Fix formattng.
2000-12-09 Nick Clifton <>
* elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
dwarf2_find_line_info as last parameter to invocation of
* elf32-arm.h (elf32_arm_find_nearest_line): Pass
dwarf2_find_line_info as last parameter to invocation of
2000-12-08 Mark Elbrecht <>
* (BFD32_BACKENDS): Move dwarf2.lo from here...
(BFD_LIBS): here.
(BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
* Regenerate.
* Remove dwarf.lo from the elf shell variable.
* configure: Regenerate.
* libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
* libcoff.h: Regenerate.
* coffgen.c (coff_find_nearest_line): Call
* dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
(read_abbrevs): Likewise
(decode_line_info): Likewise.
(parse_comp_unit): Likewise.
(comp_unit_find_nearest_line): Likewise.
* libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
* libbfd.h: Regenerate.
* elf.c (_bfd_elf_find_nearest_line): Update call.
* elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
* dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
* coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
(sec_to_styp_flags): Use them. Handle DWARF2 sections.
(styp_to_sec_flags): Handle DWARF2 sections.
* elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
to _bfd_find_nearest_line.
* elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
call to _bfd_find_nearest_line.
2000-12-08 Kazu Hirata <>
* coffgen.c: Fix formatting.
* elf-m10300.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i960.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-mips.c: Likewise.
* elf64-sparc.c: Likewise.
2000-12-07 Kazu Hirata <>
* elf32-ppc.c: Fix formatting.
* elf64-x86-64.c: Likewise.
2000-12-06 Ulf Carlsson <>
From Ralf Baechle <>
* elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
BFDs containing no sections or empty .text, .data or .bss sections
to be merged, regardless of their flags.
2000-12-06 Kazu Hirata <>
* elf32-m32r.c: Fix formatting.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-pj.c: Likewise.
* elf32-ppc.c: Likewise.
2000-12-05 Kazu Hirata <>
* elf32-fr30.c: Fix formatting.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i860.c: Likewise.
* elf32-i960.c: Likewise.
2000-12-03 Kazu Hirata <>
* elf32-arm.h: Fix formatting.
* elf32-avr.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-d10v.c: Likewise.
* elf32-d30v.c: Likewise.
* elf-hppa.h: Likewise.
* elf-m10200.c: Likewise.
* elf-m10300.c: Likewise.
2000-12-01 Chris Demetriou <>
* aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
bfd_mach_mips32_4k. Update FIXME comment.
* archures.c (bfd_mach_mips32): New constant.
(bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
the latter, renumber it.
* bfd-in2.h (bfd_mach_mips32): New constant.
(bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
the latter, renumber it.
* cpu-mips.c (I_mips32): New constant.
(I_mips4K, I_mips32_4k): Rename the former to the latter.
(arch_info_struct): Add bfd_mach_mips32 entry, replace
bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
* elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
(elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
(_bfd_mips_elf_final_write_processing): Replace
bfd_mach_mips4K with bfd_mach_mips32_4k case, add
bfd_mach_mips32 case.
(_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
comparison with support for MIPS32.
(_bfd_mips_elf_print_private_bfd_data): Print ISA name for
* aoutx.h (NAME(aout,machine_type)): Add cases for
bfd_mach_mips5 and bfd_mach_mips64.
* archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
* bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
* cpu_mips.c (I_mips5, I_mips64): New definitions.
(arch_info_struct): Add entries for bfd_mach_mips5 and
* elf32-mips.c (elf_mips_isa, elf_mips_mach,
_bfd_mips_elf_print_private_bfd_data): Add cases for
(_bfd_mips_elf_final_write_processing): Add cases for
bfd_mach_mips5 and bfd_mach_mips64.
* bfd/aoutx.h (NAME(aout,machine_type)): Add a
bfd_mach_mips_sb1 case.
* bfd/archures.c (bfd_mach_mips_sb1): New constant.
* bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
* bfd/cpu-mips.c (I_sb1): New constant.
(arch_info_struct): Add entry for bfd_mach_mips_sb1.
* bfd/elf32-mips.c (elf_mips_mach): Add case for
(_bfd_mips_elf_final_write_processing): Add case for
2000-12-01 Joel Sherrill <>
* config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
(sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
(sparc*-*-rtems*): Switched from a.out to ELF.
2000-11-30 Jan Hubicka <>
* (BFD64_BACKENDS): Add elf64-x86-64.lo
BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
(elf64-x86-64.lo): Add dependencies.
* archures.c (DESCRIPTION): Add bfd_mach_x86_64,
* elf.c (prep_headers): Use EM_x86_64 for 64bit output.
* config.bfd (x86_64): Add.
* Add support for bfd_elf64_x86_64_vec.
* cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
(bfd_i386_arch, i8086_ar): Link in.
* elf64-x86-64.c: New file.
* reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
* targets.c (bfd_elf64_x86_64_vec): Add.
(bfd_target_vect): Add bfd_elf64_x86_64_vec.
2000-11-30 Kazu Hirata <>
* xcofflink.c: Fix formatting.
2000-11-28 Kazu Hirata <>
* aoutx.h: Fix formatting.
* bfd-in.h: Likewise.
* bfd-in2.h: Likewise.
* cache.c: Likewise.
* cisco-core.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* coffswap.h: Likewise.
* corefile.c: Likewise.
* elf32-mips.c: Likewise.
2000-11-27 Kazu Hirata <>
* aout-adobe.c: Fix formatting.
* coff64-rs6000.c: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
2000-11-27 Philip Blundell <>
* libcoff-in.h (coff_tdata): Add `strings_written' flag.
(obj_coff_strings_written): New accessor macro for above.
* libcoff.h: Regenerate.
* cofflink.c (_bfd_coff_final_link): Say that we wrote the
* coffcode.h (coff_write_object_contents): No need to write out
the string table if it's already been done.
2000-11-22 Philip Blundell <>
* cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
weak undefined symbols.
2000-11-24 Nick Clifton <>
* archures.c (bfd_mach_arm_5TE): Define.
(bfd_mach_arm+XScale): Define.
* bfd-in2.h: Regenerate.
* coff-arm.c (coff_arm_reloc_type_lookup): Accept
* coffcode.h (coff_set_flags): Set flags for 5t, 5te and
XScale machine numbers.
* config.bfd (xscale-elf): Add target.
(xscale-coff): Add target.
* cpu-arm.c: Add xscale machine name.
Add v5t, v5te and XScale machine numbers.
2000-11-23 Kazu Hirata <>
* aix386-core.c: Fix formatting.
2000-11-22 Jim Wilson <>
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-21 Kazu Hirata <>
* coff-a29k.c: Fix formatting.
* coff-h8500.c: Likewise.
* coff-i960.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-stgo32.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-w65.c: Likewise.
* cpu-h8500.c: Likewise.
* cpu-hppa.c: Likewise.
* cpu-ns32k.c: Likewise.
* ecoff.c: Likewise.
* ecofflink.c: Likewise.
2000-11-21 Nick Clifton <>
* elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
remove possibility of infinite loop.
2000-11-20 Kazu Hirata <>
* aix386-core.c: Fix formatting.
* aout-adobe.c: Likewise.
* aout-arm.c: Likewise.
* aout-encap.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-target.h: Likewise.
* aout-tic30.c: Likewise.
* aoutf1.h: Likewise.
* aoutx.h: Likewise.
* archive.c: Likewise.
* bfd-in.h: Likewise.
* bfd-in2.h: Likewise.
* bfd.c: Likewise.
* bout.c: Likewise.
2000-11-17 H.J. Lu <>
* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
pltoff entries for DT_INIT and DT_FINI.
(elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
(elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2000-11-16 Richard Henderson <>
* elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
(allocate_dynrel_entries): Likewise.
(elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
(set_pltoff_entry): Likewise.
(ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
(elfNN_ia64_reloc_type_lookup): Likewise.
(elfNN_ia64_install_value): Likewise.
(elfNN_ia64_relocate_section): Likewise.
* reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2000-11-16 Kazu Hirata <>
* cpu-a29k.c: Fix formatting.
* cpu-alpha.c: Likewise.
* cpu-arm.c: Likewise.
* cpu-avr.c: Likewise.
* cpu-d10v.c: Likewise.
* cpu-h8500.c: Likewise.
* cpu-hppa.c: Likewise.
* cpu-i370.c: Likewise.
* cpu-i386.c: Likewise.
* cpu-i960.c: Likewise.
* cpu-ia64-opc.c: Likewise.
* cpu-ia64.c: Likewise.
* cpu-m32r.c: Likewise.
* cpu-m68hc11.c: Likewise.
* cpu-m68hc12.c: Likewise.
* cpu-m68k.c: Likewise.
* cpu-m88k.c: Likewise.
* cpu-mips.c: Likewise.
* cpu-ns32k.c: Likewise.
* cpu-pj.c: Likewise.
* cpu-powerpc.c: Likewise.
* cpu-sh.c: Likewise.
* cpu-sparc.c: Likewise.
* cpu-tic54x.c: Likewise.
* cpu-v850.c: Likewise.
* cpu-vax.c: Likewise.
* cpu-w65.c: Likewise.
* cpu-we32k.c: Likewise.
* cpu-z8k.c: Likewise.
* dwarf1.c: Likewise.
* dwarf2.c: Likewise.
2000-11-15 Kazu Hirata <>
* coff-arm.c: Fix formatting.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-sparc.c: Likewise.
* coff-tic30.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-tic80.c: Likewise.
* coff-w65.c: Likewise.
* coff-we32k.c: Likewise.
* coff-z8k.c: Likewise.
2000-11-15 Richard Henderson <>
* elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
section with the same ALLOC|LOAD flags as the source section.
2000-11-14 Jakub Jelinek <>
* elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
by STO_ALPHA constants.
2000-11-14 Kazu Hirata <>
* coff-pmac.c: Fix formatting.
* coff-ppc.c: Likewise.
2000-11-13 H.J. Lu <>
* elflink.h (elf_link_add_object_symbols): Also add indirect
symbols for common symbols with the default version.
2000-11-09 Philip Blundell <>
* section.c (STD_SECTION): Set gc_mark flag.
2000-11-11 Kazu Hirata <>
* coff-i960.c: Likewise.
* coff-m68k.c: Likewise.
* coff-m88k.c: Likewise.
* coff-mcore.c: Likewise.
* coff-mips.c: Likewise.
2000-11-11 Bernd Schmidt <>
* elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2000-11-10 Kazu Hirata <>
* coff-h8300.c: Fix formatting.
* coff-h8500.c: Likewise.
* coff-i386.c: Likewise.
* coff-i860.c: Likewise.
* coff-i960.c: Likewise.
* coff-ia64.c: Likewise.
2000-11-09 Kazu Hirata <>
* archive.c: Fix formatting.
* archures.c: Likewise.
2000-11-07 Richard Henderson <>
* elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
Set it before bfd_elf64_bfd_final_link call. Use it after the call.
* section.c (bfd_set_section_contents): Call memcpy if
section->contents set and location not equal to contents plus offset.
2000-11-08 Kazu Hirata <>
* bfd-in.h: Fix formatting.
* bfd-in2.h: Likewise.
* bfd.c: Likewise.
* binary.c: Likewise.
* bout.c: Likewise.
* coff-a29k.c: Likewise.
* coff-alpha.c: Likewise.
* coff-apollo.c: Likewise.
* coff-aux.c: Likewise.
2000-11-07 Kazu Hirata <>
* aix386-core.c: Fix formatting.
* aoutf1.h: Likewise.
* aoutx.h: Likewise.
* archures.c: Likewise.
* armnetbsd.c: Likewise.
2000-11-07 Alan Modra <>
* coff-h8300.c (special): Adjust reloc address.
2000-11-06 Steve Ellcey <>
* archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
to differentiate elf32 and elf64 on ia64.
* bfd-in2.h: Regenerate.
* config.bfd: Add target for "ia64*-*-hpux*".
* Add bfd_elf32_ia64_big_vec to selvecs switch.
* configure: Regenerate.
* cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
* targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
* Make elf32-ia64.c and elf64-ia64.c derived objects
from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
* Regnerate.
* elf64-ia64.c: Deleted.
* elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2000-11-06 Kazu Hirata <>
* aout-adobe.c: Fix formatting.
* aout-arm.c: Likewise.
* aout-cris.c: Likewise.
* aout-encap.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-target.h: Likewise.
* aout-tic30.c: Likewise.
2000-11-05 Philip Blundell <>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
BFDs containing no sections to be merged, regardless of their flags.
2000-11-04 Philip Blundell <>
* elf32-arm.h (elf32_arm_relocate_section): Suppress error message
if a relocation for an undefined symbol also results in an
2000-11-06 Christopher Faylor <>
* config.bfd: Add support for Sun Chorus.
2000-11-05 David O'Brien <>
* Recognize alpha-*-freebsd*.
* configure: Regenerate.
2000-11-02 Luciano Gemme <>
* srec.c (CHUNK): Rename to DEFAULT_CHUNK.
(Chunk): New global variable set by a parameter in objcopy.c.
(S3Forced): New global variable set by a parameter in
(srec_set_section_contents): If S3Forced is true, always generate
S3 records.
(srec_write_section): Use 'Chunk' to limit maximum length of S
2000-11-02 Per Lundberg <>
* config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
* Regenerate.
* bfd-in2.h: Regenerate.
* po/bfd.pot: Regenerate.
2000-10-31 Philip Blundell <>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
EF_SOFT_FLOAT if it is defined.
2000-10-27 Philip Blundell <>
* elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
attempts to mix PIC code with non-PIC, just mark the output as
being position dependent.
(elf32_arm_merge_private_bfd_data): Likewise. Print an error
message for EF_SOFT_FLOAT mismatches. Display diagnostics for
all mismatches, not just the first one.
2000-10-25 Chris Demetriou <>
* ieee.c (ieee_archive_p): Plug one of many possible
memory leaks in error handling.
2000-10-20 Jakub Jelinek <>
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
elf32_sparc_object_p, elf32_sparc_final_write_processing):
Support v8plusb.
* elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
sparc64_elf_object_p): Support v9b.
* archures.c: Declare v8plusb and v9b machines.
* bfd-in2.h: Ditto.
* cpu-sparc.c: Ditto.
2000-10-16 Geoffrey Keating <>
* elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
of a GOT reloc.
* elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
(ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
(ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_relocate_section): Use flag variable to determine
whether the relocation refers to a local symbol.
Test whether a PLTREL24 reloc will produce a reloc by looking
to see whether a PLT entry was made.
2000-10-14 Geoffrey Keating <>
* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
entries that could serve as a definition for a weak symbol.
2000-10-13 Ulf Carlsson <>
From Ralf Baechle <>
* elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
local_p. Add symbol value only for non-R_MIPS_REL32 relocations
against local symbols.
(_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2000-10-12 Alan Modra <>
* section.c (struct sec): Add kept_section.
(struct bfd_comdat_info): Remove sec, we can use above.
(STD_SECTION): Add initializer.
(bfd_make_section_anyway): Init here too.
* bfd-in2.h: Regenerate.
* elflink.h (elf_link_add_object_symbols): Remove unnecessary
zeroing of `flags'.
(elf_link_input_bfd): Set all asection->symbol->value's here, and
fudge values for discarded link-once section symbols.
* elf64-hppa.c: Include alloca-conf.h
2000-10-11 Alan Modra <>
* elf.c (swap_out_syms): Revert 2000-10-07 changes.
* ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2000-10-10 Alan Modra <>
* ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2000-10-10 Tom Rix <>
* section.c (bfd_make_section_anyway): Release newsect ptr when
newsect->symbol fails to alloc. Use bfd_release instead of free.
2000-10-09 Richard Henderson <
* elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
(elf64_ia64_unwind_entry_compare): New.
(elf64_ia64_final_link): Sort the .IA_64.unwind section.
2000-10-07 Alan Modra <>
* elflink.h (size_dynamic_sections): Don't create various tags if
.dynstr is excluded from the link. Don't set first dynsym entry
if dynsymcount is zero.
(elf_bfd_final_link): Don't try to swap out dynamic syms if
.dynsym excluded from the link. Don't try to write any dynamic
sections excluded from the link.
* elf.c (swap_out_syms): Handle global section symbols.
2000-10-05 DJ Delorie <>
* peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
* coffcode.h (coff_set_alignment_hook): read extended reloc count
(coff_write_relocs): write extended reloc count
(coff_write_object_contents): account for extended relocs
2000-10-05 Jim Wilson <>
* elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
* elf.c (_bfd_elf_make_section_from_shdr): Call the
elf_backend_section_flags function.
* elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
(elf64_ia64_section_flags): New function containing flag conversion
(elf_backend_section_flags): Define to elf64_ia64_section_flags.
* elfxx-target.h (elf_backend_section_flags): Define.
(elfNN_bed): Initialize elf_backend_section_flags field.
2000-10-02 Alan Modra <>
* elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
_bfd_elf32_gc_record_vtable. Correct a comment.
2000-10-01 Ulf Carlsson <>
From Ralf Baechle <>
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
produces binaries with got[1] = 0x80000001 to differenciate them
for the dynamic linker from the broken binaries produced by old
2000-09-30 Petr Sorfa <>
* elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
(elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
* Add check for pxstatus_t and lwpxstatus_t.
* configure: Regenerate.
2000-09-27 Hans-Peter Nilsson <>
Define two bfd_targets for absence and presence of leading
underscore on symbols. Make sure to only link same kind.
* elf32-cris.c (cris_elf_object_p,
cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
cris_elf_merge_private_bfd_data): New.
(elf_backend_object_p, elf_backend_final_write_processing,
bfd_elf32_bfd_merge_private_bfd_data): Define.
<Target vector definition>: Include elf32-target.h twice with
different macro settings:
(TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
(TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
(elf_symbol_leading_char): First as 0, then '_'.
(INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
* config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
* (bfd_elf32_cris_vec, cris_aout_vec): New vector.
* configure: Regenerate.
* targets.c: Declare bfd_elf32_us_cris_vec.
* po/bfd.pot: Regenerate.
2000-09-29 Momchil Velikov <>
* elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
R_ARM_THM_PC22 relocations.
2000-09-29 NIIBE Yutaka <>
* elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2000-09-29 Momchil Velikov <>
* elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
is has the SEC_HAS_CONTENTS flag set.
2000-09-28 Örjan Friberg <>
Hans-Peter Nilsson <>
* aout-cris.c (N_TXTADDR): Define.
2000-09-28 John David Anglin <>
* som.c: Include alloca-conf.h.
* "make dep-am"
* Regenerate.
2000-09-27 Alan Modra <>
* elf32-hppa.c (plt_stub): New.
(elf32_hppa_link_hash_table): Change multi_subspace to packed
boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
(elf32_hppa_link_hash_table_create): Init to suit.
(elf32_hppa_check_relocs): Set has_12bit_branch and
has_17bit_branch as appropriate.
(elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
non-local functions.
(elf32_hppa_size_dynamic_sections): Correct setting of reltext.
Add space for plt_stub as needed.
(elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
functions at plt_stub.
(elf32_hppa_finish_dynamic_sections): Write plt_stub.
(elf32_hppa_create_dynamic_sections): Leave .plt executable.
* elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
* elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
of fixed size, and if negative, disable handling of input sections
before stub section. Set up default stub group size depending
on detected branch relocs.
(hppa_build_one_stub): Use lrsel and rrsel for import stubs to
ensure different offsets from sym_value aren't rounded to
different 2k blocks. Use lrsel and rrsel for other stubs too for
consistency rather than necessity.
(elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
(final_link_relocate): Likewise.
(elf32_hppa_relocate_section): Likewise.
* elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
(_bfd_elf_hppa_gen_reloc_type): Generate them.
(elf_hppa_final_link_relocate): Handle them.
(elf_hppa_relocate_insn): Likewise.
(_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2000-09-26 Hans-Peter Nilsson <>
* elfcode.h (elf_object_p): Preserve and clear abfd section
information. Restore at error.
2000-09-26 Paul Sokolovsky <>
* peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
is empty, make sure that its rva also 0. NT loader dislikes
having otherwise.
2000-09-26 Steve Ellcey <>
* som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
global by default.
2000-09-21 Alan Modra <>
* elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
currently unused RELATIVE_DYNAMIC_RELOCS code.
(hppa_discard_copies): Likewise.
(elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
comments. Don't check non-code output sections for stub grouping.
2000-09-20 Alan Modra <>
* section.c (bfd_get_unique_section_name): Return NULL if
bfd_malloc fails.
2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
instruction sequence to actually work.
(elf_m68k_finish_dynamic_sections): Change the patch-in offset
2000-09-18 Alexandre Oliva <>
* elf32-sh.c (sh_elf_relocate_section): Use
_bfd_final_link_relocate to apply the relocation against a section
symbol, when doing relocatable links.
2000-09-18 Alan Modra <>
* elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
to id_sec.
(stub_hash_newfunc): Here too.
(hppa_add_stub): And here.
(elf32_hppa_link_hash_table): Remove stub_section_created,
reloc_section_created, first_init_sec and first_fini_sec. Add
(elf32_hppa_link_hash_table_create): Init to suit.
(hppa_get_stub_entry): Add support for grouping stub sections.
(hppa_add_stub): Likewise. Remove sec_count param and init/fini
section code. Index stub vars by section->id.
(elf32_hppa_size_stubs): Likewise. Remove duplicated function
exit paths. Zap allocation of above removed vars. Refine
link-once test.
* elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
* elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
(hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
rather than pointer to bfd_link_info.
(hppa_add_stub): Likewise.
(final_link_relocate): Likewise.
2000-09-17 David Huggins-Daines <>
(elf32_hppa_size_stubs): Don't try to build stubs for discarded
link-once sections.
2000-09-16 Alexandre Oliva <>
* elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
* bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
* bfd-in2.h: Regenerate.
2000-09-15 Kenneth Block <>
* bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
LITUSE relocations incorrectly if -relax is specified on the ld
command line and the displacement field of the load or store
instruction is non-zero. (Patch by
2000-09-15 Alan Modra <>
* elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
first_fini_sec here.
(elf32_hppa_size_stubs): Instead correctly find the first .init
and .fini section here.
2000-09-15 David Huggins-Daines <>
* elf32-hppa.c (clobber_millicode_symbols): New function.
(elf32_hppa_size_dynamic_sections): Call it.
2000-09-14 Alan Modra <>
* elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
packed. Add plabel, plt_abs packed booleans.
(hppa_link_hash_newfunc): Init new fields.
(hppa_stub_name): Use size_t len vars.
(hppa_add_stub): Likewise.
(elf32_hppa_build_stubs): Likewise.
(hppa_build_one_stub): Kill some compiler warnings.
(elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
if dynamic linking. Munge the local plt offsets into
local_got_refcounts. Set h->plabel for all global PLABELs. Use
size_t len vars. Add assert for plabel addend.
(elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
(elf32_hppa_hide_symbol): New function.
(elf_backend_hide_symbol): Define.
(elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
with h->plabel set. Don't make plt entries to have dynamic syms
when they have been forced local. If plt entry is used by a
plabel, make it PLABEL_PLT_ENTRY_SIZE.
(elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
Set up .plt offsets for local syms.
(elf32_hppa_relocate_section): Initialise plt entries for local
syms. Leave weak undefined plabels zero. Make global plabel
relocs against function symbol, and leave the addend zero.
Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
(elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
relocs instead of SEGREL32 for dynamic got relocs.
(elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
(elf_backend_got_header_size): Adjust.
(elf32_hppa_set_gp): Calculate an "ideal" LTP.
* elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
(hppa_type_of_stub): Use it instead of #if 0
(hppa_discard_copies): Use it here too.
(elf32_hppa_size_dynamic_sections): And here.
* elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
(elf32_hppa_link_hash_table_create): And here.
(hppa_build_one_stub): And here. Instead keep track of stub
offset using _raw_size.
(elf32_hppa_size_stubs): Likewise.
(elf32_hppa_build_stubs): Likewise.
(hppa_size_one_stub): Likewise. Resize reloc section too.
* elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
first_fini_sec handling. Don't search for reloc section or set
hplink->reloc_section_created here.
(elf32_hppa_size_stubs): Instead search for reloc sections, and
set reloc_section_created here.
(hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
(elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
and DT_FINI.
(elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
* elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
with `hplink->root.'.
(elf32_hppa_check_relocs): Likewise.
(elf32_hppa_gc_sweep_hook): Likewise.
(elf32_hppa_adjust_dynamic_symbol): Likewise.
(hppa_handle_PIC_calls): Likewise.
(elf32_hppa_size_dynamic_sections): Likewise.
(elf32_hppa_set_gp): Likewise.
(elf32_hppa_relocate_section): Likewise.
(elf32_hppa_finish_dynamic_symbol): Likewise.
(elf32_hppa_finish_dynamic_sections): Likewise.
From David Huggins-Daines <>
* elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
defined weak symbols in shared links.
(final_link_relocate): Calls to defined weak symbols in shared
objects must go via import stubs, as the target might not be known
at link time.
2000-09-14 Alexandre Oliva <>
* elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
the original entries with EMPTY_HOWTOs, and added new ones to fill
in the gap.
(sh_elf_info_to_howto): Make sure the new gap isn't used.
(sh_elf_relocate_section): Likewise.
2000-09-13 Anders Norlander <>
* cpu-mips.c (arch_info_struct): Add mips:4K
* bfd-in2.h (bfd_mach_mips4K): New define.
* archures.c: Add bfd_mach_mips4K to comment.
* elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
E_MIPS_ARCH_2 for bfd_mach_mips4K.
2000-09-13 Marco Franzen <>
* som.c (som_write_symbol_strings): Do not used fixed buffers,
use size_t as a counter.
(som_write_space_strings): Similarly.
2000-09-12 Jason Eckhardt <>
* elf32-i860.c (elf32_i860_relocate_pc26): New function
and prototype.
(elf32_i860_relocate_section): Invoke new function from here.
2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
target section name instead of dumping core when the target symbol is
2000-09-09 Kazu Hirata <>
* riscix.c: Remove DEFUN.
2000-09-08 Nick Clifton <>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
initialise flags in output bfd if the input bfd is the default
architecture with the default flags.
2000-09-08 Kazu Hirata <>
* archive.c: Fix formatting.
* coff-arm.c: Likewise.
* doc/chew.c: Likewise.
2000-09-08 Alan Modra <>
* section.c (bfd_get_unique_section_name): Put a dot before the
numeric suffix.
2000-09-07 Kazu Hirata <>
* doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
* elf.c: Fix formatting.
2000-09-07 Alexandre Oliva <>
* config.bfd (sh-*-linux*): Added.
* (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
* targets.c: Declare them.
* elf32-sh-lin.c: New file.
* Compile it.
* elf32-sh.c: Don't override defines from elf32-sh-lin.c.
* configure, Rebuilt.
2000-09-06 Geoffrey Keating <>
* xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
pseduo-section when determining where the TOC ends.
* coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
output x_tvndx as it is only two bytes wide.
* coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
reloc is 26 or 32 bits wide.
* coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
for relocs that don't change anything. Also look at the full
6 bits of bitsize.
2000-09-06 Philip Blundell <>
* config.bfd (arm*-*-uclinux*): New target.
2000-09-06 Alexandre Oliva <>
* configure: Rebuilt with new libtool.m4.
2000-09-06 Alan Modra <>
* section.c (bfd_get_unique_section_name): Avoid c++ reserved
word for variable name.
* bfd-in2.h: Regenerate.
2000-09-05 Nick Clifton <>
* Regenerate.
* libbfd.h: Regenerate.
* po/bfd.pot: Regenerate.
* doc/bfdint.texi: Remove CVS date string - it foils compares with
local versions.
2000-09-05 Steven Johnson <>
* cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2000-09-05 Alan Modra <>
Shared library and PIC support.
* elf32-hppa.c (PLT_ENTRY_SIZE): New.
(STUB_SUFFIX): Define.
(enum elf32_hppa_stub_type): New.
(struct elf32_hppa_stub_hash_entry): Rename offset to
stub_offset. Add a number of new fields.
(struct elf32_hppa_link_hash_entry): New.
(struct elf32_hppa_link_hash_table): Add numerous fields. Remove
(elf32_hppa_hash_table): Rename to hppa_link_hash_table.
(elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
(elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
new fields.
(hppa_link_hash_newfunc): New function.
(elf32_hppa_link_hash_table_create): Use above function. Init new
(elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
instead of addend, and remove sym_name from args. Don't use
symbol name for local syms, instead use sym index.
(elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
stub type rather than size. Pass in hash and handle import stub
case. Also pass in reloc instead of offset so we can calculate
PCREL22F and PCREL12F branches properly.
(elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
import and export stubs too.
(elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
import and export stub sizing.
(elf32_hppa_check_relocs): New function.
(elf32_hppa_adjust_dynamic_symbol): New function.
(hppa_discard_copies): New function.
(elf32_hppa_size_dynamic_sections): New function.
(elf_backend_size_dynamic_sections): Define.
(elf32_hppa_finish_dynamic_symbol): New function.
(elf_backend_finish_dynamic_symbol): Define.
(elf32_hppa_size_stubs): Stash params in link hash table, and move
some local vars into the link hash table too. For shared links,
trundle over function syms, generating export stubs. Handle
PCREL22F branches. Break out stub creation code from here..
(hppa_add_stub): .. to here. New function.
(elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
call the bfd linker. Use elf_gp to record global pointer.
Calculate a value from sections if $global$ is missing.
(bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
(elf32_hppa_gc_mark_hook): New function.
(elf_backend_gc_mark_hook): Define.
(elf32_hppa_gc_sweep_hook): New function.
(elf_backend_gc_sweep_hook): Define.
(elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
Add rel to args, and remove howto, input_bfd, offset, addend,
sym_name as we can recalculate these locally. Handle calls to
dynamic objects, extra PIC relocs, PCREL22F branches. Change
handling of undefined weak syms. Check that stubs are in range.
Only look for import stubs on PCREL17F and PCREL22F relocs. Add
message on hitting a DPREL21L reloc that needs fixing. Subtract
off PC for PCREL14F. Break out code that does a stub lookup from
(hppa_get_stub_entry): here. New function.
(elf32_hppa_relocate_insn): Merge into final_link_relocate.
(elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
relocs, etc. etc.
(elf32_hppa_finish_dynamic_sections): New function.
(elf_backend_finish_dynamic_sections): Define.
(elf_backend_final_write_processing) Define.
(hppa_handle_PIC_calls): New function.
(elf32_hppa_build_stubs): Call it. Pass link_info to
(elf32_hppa_create_dynamic_sections): New function
to create .plt and .got then set .plt flags correctly.
(elf_backend_create_dynamic_sections): Define.
(elf32_hppa_object_p): New function.
(elf_backend_object_p): Define.
(elf32_hppa_elf_get_symbol_type): New function.
(elf_backend_get_symbol_type): Define.
(elf_backend_can_gc_sections): Define.
(elf_backend_want_got_plt): Define.
(elf_backend_plt_alignment): Set to 2.
(elf_backend_plt_readonly): Define.
(elf_backend_want_plt_sym): Define.
(elf_backend_got_header_size): Reserve one entry.
* elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
(elf32_hppa_size_stubs): Pass in multi_subspace.
(elf32_hppa_set_gp): Declare.
* section.c (SEC_HAS_GOT_REF): Define new flag for asection.
(bfd_get_unique_section_name): New function.
* bfd_in2.h: Regenerate.
* elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
(elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
From David Huggins-Daines <>
* elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
(elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
(elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
been updated in finish_dynamic_symbol before modifying function
* elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
eight entries. Replace NULL with bfd_elf_generic_reloc. Add
(_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
comments. Handle format == 12 for R_HPPA_PCREL_CALL.
(elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
(elf_hppa_relocate_insn): Likewise. Reformat some comments.
(elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
From David Huggins-Daines <>
* elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
style of local labels as well.
2000-09-03 Philip Blundell <>
* elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
references to undefined symbols in debugging sections.
2000-09-02 H.J. Lu <>
BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2000-09-02 Jason Eckhardt <>
* elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
(elf32_i860_is_local_label_name): New function and prototype.
2000-09-02 Nick Clifton <>
* Increase version number to 2.10.91.
* configure: Regenerate.
* aclocal.m4: Regenerate.
* Regenerate.
* po/bfd.pot: Regenerate.
2000-09-02 Daniel Berlin <>
* elf.c (_bfd_elf_make_section_from_shdr): Add
.gnu.linkobce.wi. to the list of debug section names.
2000-09-02 Nick Clifton <>
* dwarf2.c (find_debug_info): New function: Locate a section
containing dwarf2 debug information.
(bfd_dwarf2_find_nearest_line): Find all sections containing
debug information and include them in the stash.
2000-09-01 Niibe Yutaka <>, Kaz Kojima <>, Alexandre Oliva <>
* elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
(sh_reloc_map): Add new relocs.
(sh_elf_check_relocs, sh_elf_link_hash_newfunc,
sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
(elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
elf_sh_plt_entry_be, elf_sh_plt_entry_le,
elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
New array constants.
(elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
New variables.
(elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
elf_sh_plt_reloc_offset): Define.
(elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
elf_sh_link_hash_table): New structs.
(sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
(sh_elf_relocate_section, sh_elf_check_relocs): Handle new
relocation types.
elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
elf_backend_plt_readonly, elf_backend_want_plt_sym,
elf_backend_got_header_size, elf_backend_plt_header_size):
New relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
2000-09-01 Alan Modra <>
* elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2000-08-31 J"orn Rennecke <>
* elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
not initialized, set them to indicate the SH1 instruction set.
2000-08-31 Alexandre Oliva <>
* acinclude.m4: Include libtool and gettext macros from the
top level.
* aclocal.m4, configure: Rebuilt.
2000-08-29 Michael Snyder <>
* elf.c: Eliminate references to __sparcv9 macro; replace with
autoconf variables HAVE_PSINFO32_T etc.
* Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
* Ditto.
* acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
* aclocal.m4: Ditto.
* configure: Regenerate.
2000-08-27 Alan Modra <>
* elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
for any shared link, not just shared -Bsymbolic.
(elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
any shared link, and pass link info to it.
(elf_i386_size_dynamic_sections): Update comment.
(elf_i386_discard_copies): Modify to discard relocs for symbols
that have been forced local.
(elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
that have been forced local.
2000-08-24 Denis Chertykov <> & Nick Clifton <>
* elflink.h (elf_link_add_object_symbols): Allow common
symbols to have an alignment of 1 if explicitly requested, and
not overridden by other definitions.
2000-08-22 Doug Kwan <>
* coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
* coffcode.h (coff_set_flags): Add detection of w65 architecture.
2000-08-22 H.J. Lu <>
* elf-bfd.h (elf_link_hash_table): Add runpath.
* bfd-in.h (bfd_elf_get_runpath_list): New prototype.
* bfd-in2.h: Rebuilt.
* elf.c (_bfd_elf_link_hash_table_init): Initialize the
"runpath" field to NULL.
(bfd_elf_get_runpath_list): New function.
* elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
DT_RUNPATH entries.
2000-08-22 Alexandre Oliva <>
* elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
explicitly. Improve validation of r_type.
2000-08-21 H.J. Lu <>
* elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
dynamic allocated content space. Add a comment to remind us that
one day this ought to be fixed.
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2000-08-21 Jason Eckhardt <>
* elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
field with the newly relocated value instead of adding it to the
existing immediate field.
(elf32_i860_relocate_splitn): Likewise.
(elf32_i860_relocate_highadj): Likewise.
2000-08-16 Jason Eckhardt <>
* elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
was previously just a stub).
2000-08-16 Alexandre Oliva <>
* elflink.c (_bfd_elf_create_got_section): Don't abort().
Formatting fixes.
(_bfd_elf_create_dynamic_sections): Likewise.
2000-08-16 Andrew Macleod <>
* elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
for undefined symbols to be the beginning of the section.
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
four extra entries at the beginning of the .rela.plt section.
(sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
section to account for the four reserved entries in the .plt section.
2000-08-15 Geoffrey Keating <>
* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
to the list of NOPs we recognize after a branch-and-link.
Use the ori NOP when one is needed.
* coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
for large archives.
2000-08-14 Jim Wilson <>
* elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
(elf64_ia64_print_private_bfd_data): Likewise. Also handle
2000-08-11 Alexandre Oliva <>
* elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2000-08-10 Jason Eckhardt <>
* elf32-i860.c (elf32_i860_relocate_section): New function.
(i860_final_link_relocate): New function.
(elf32_i860_relocate_splitn): New function.
(elf32_i860_relocate_pc16): New function.
(elf32_i860_relocate_highadj): New function.
(elf32_i860_howto): Minor adjustments to some relocations.
(elf_info_to_howto_rel): Define.
(elf_backend_relocate_section): Define.
2000-08-10 Nick Clifton <>
* elf32-arm.h: Fix formatting.
2000-08-10 Bernd Schmidt <>
* elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2000-08-08 Jason Eckhardt <>
* elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2000-08-07 Kazu Hirata <>
* ieee.c (ieee_write_debug_part): Rewrite a comment.
* elf64-ia64.c: Fix a typo.
2000-08-05 Jason Eckhardt <>
* elf32-i860 (elf32_i860_howto_table): New structure.
(lookup_howto): New function.
(elf32_i860_reloc_type_lookup): New function.
(elf32_i860_info_to_howto_rela): New function.
(elf_code_to_howto_index): New structure.
(elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
(bfd_elf32_bfd_reloc_type_lookup): Re-define as
2000-08-04 Rodney Brown <>
* som.c (struct fixup_format): Constify `format'.
(som_hppa_howto_table): Use SOM_HOWTO macro.
(try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
(som_bfd_reloc_type_lookup): Likewise.
(compare_subspaces): Remove unused `count1', `count2'.
(som_begin_writing): Remove unused `total_reloc_size'.
(som_bfd_derive_misc_symbol_info): Decorate unused parameter.
(som_print_symbol, som_bfd_is_local_label_name): Likewise.
(som_set_reloc_info): Constify `cp'. Remove unused `addend'.
(som_find_nearest_line): Decorate unused parameter(s).
(som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
(som_bfd_link_split_section): Likewise.
2000-08-03 Nick Clifton <>
* section.c: Restore backed out code.
* elf.c: Restore backed out code.
(copy_private_bfd_data): Fix bug preventing stipped dynamic
binaries from working.
* bfd-in2.h: Regenerate.
2000-08-03 H.J. Lu <>
* section.c: Back out the change made by Nick Clifton
<> on 2000-07-31. It breaks stripping dynamic
* bfd-in2.h: Likewise.
* elf.c: Likewise.
2000-08-03 Alexandre Oliva <>
* elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2000-07-31 Jason Eckhardt <>
* reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
* bfd-in2.h, libbfd.h: Regenerate.
2000-07-31 Nick Clifton <>
* section.c (struct sec): Add new boolean field 'segment_mark'.
(STD_SECTION): Initialise new field to zero.
* bfd-in2.h: Regenerate.
* elf.c (copy_private_bfd_data): Reorganise section to segment
mapping to cope with moved sections requiring new segments,
and overlapping segments.
(SEGMENT_END): New macro: Return the end address of a segment.
(IS_CONTAINED_BY_VMA): New macro: Determine if a segment
contains a section by comparing their VMA addresses.
(IS_CONTAINED_BY_LMA): New macro: Determine if a segment
contains a section by comparing their LMA addresses.
(INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
section should be included in a segment.
(SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
follows another in memory.
(SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
segments overlap.
2000-07-22 Jason Eckhardt <>
* cpu-i860.c: Added comments.
* elf32-i860.c (TARGET_LITTLE_SYM): Defined to
(TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
(ELF_MAXPAGESIZE): Changed to 4096.
* targets.c (bfd_elf32_i860_little_vec): Declaration of
new target.
(bfd_target_vector): Added bfd_elf32_i860_little_vec.
* config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
config for little endian elf32 i860.
(targ_defvec): Define for the new config above
as "bfd_elf32_i860_little_vec".
(targ_selvecs): Define for the new config above
as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
* (bfd_elf32_i860_little_vec): Added recognition
of new target vec.
* configure: Regenerated.
2000-07-27 H.J. Lu <>
* elflink.h (elf_merge_symbol): Take one more argument,
dt_needed, to indicate if the symbol comes from a DT_NEEDED
entry. Don't overide the existing weak definition if dt_needed
is true.
(elf_link_add_object_symbols): Pass dt_needed to
elf_merge_symbol ().
2000-07-27 Nick Clifton <>
* elflink.h (elf_link_size_reloc_section): Zeroes the section's
allocated contents.
2000-07-25 Geoffrey Keating <>
* (*-*-aix*): AIX has 'long long' always.
* coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
(xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
(xcoff_write_archive_contents_big): Don't update the offset
of the symbol table, xcoff_write_armap will do it.
2000-07-23 Ulf Carlsson <>
* elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
of dynobj for SGI_COMPAT checks.
2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
* bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
* bfd-in2.h: Regenerate.
2000-07-21 Nick Clifton <>
* elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
range symbol indices in relocs and issue an error message.
2000-07-20 H.J. Lu <>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
info->new_dtags when setting DT_FLAGS_1. It will only be set
by the new linker options. It shouldn't break anything.
2000-07-20 H.J. Lu <>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
only if info->new_dtags is true.
2000-07-20 H.J. Lu <>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2000-07-20 Hans-Peter Nilsson <>
* (ALL_MACHINES): Add cpu-cris.lo.
(ALL_MACHINES_CFILES): Add cpu-cris.c.
(BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
(BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
(cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
* Rebuild.
* aclocal.m4: Rebuild.
* aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
* archures.c (enum bfd_architecture): Add bfd_arch_cris.
(bfd_cris_arch): Declare.
(bfd_archures_list): Add bfd_cris_arch.
* bfd-in2.h: Rebuild.
* config.bfd: (cris-*-*): New target.
* (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
* configure: Rebuild.
* elf.c (prep_headers): Add bfd_arch_cris.
* libbfd.h: Rebuild.
* libaout.h (enum machine_type): Add M_CRIS.
* reloc.c: Add CRIS relocations.
* targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
(bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
* cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
* po/, po/bfd.pot: Regenerate.
2000-07-19 H.J. Lu <>
* elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
* elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
* elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
* elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
* elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
DT_RPATH is set.
Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2000-07-19 H.J. Lu <>
* bfd-in.h (bfd_elf_set_dt_needed_soname): New.
* bfd-in2.h: Rebuild.
* elf-bfd.h (elf_obj_tdata): Add dt_soname.
(elf_dt_soname): New.
* elf.c (bfd_elf_set_dt_needed_soname): New.
* elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
entry if the shared object loaded by DT_NEEDED is used to
resolve the reference in a regular object.
2000-07-19 H.J. Lu <>
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
DT_DEPAUDIT and DT_AUDIT as strings.
2000-07-19 Nick Clifton <>
* format.c: Fix formatting.
2000-07-19 H.J. Lu <>
* elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2000-07-19 H.J. Lu <>
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2000-07-18 Andrew Cagney <>
* elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
renamed functions from here...
(assign_section_numbers): Use renamed functions.
(prep_headers): Use renamed functions.
* bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
* bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
* bfd-in2.h: Regenerate.
2000-07-18 Ulf Carlsson <>
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
parenthesis in if statement.
2000-07-17 Koundinya K <>
Enable the support for Traditional MIPS.
* elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
return ict_none appropriately for traditional mips targets.
(STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
(STUB_MOVE): Conditionalize for traditonal mips.
(STUB_LI16): Likewise.
(_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
room for RTPROC header.
(_bfd_mips_elf_modify_segment_map): For a normal mips executable set
the permission for the PT_DYNAMIC as read, write and execute.
(mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
for traditonal mips.
(_bfd_mips_elf_create_dynamic_sections): Add the symbol
_DYNAMIC_LINKING for traditonal mips.
(_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
in case of traditonal mips.
(_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
entry is required. For a function if PLT is not required then set the
corresponding hash table entry to 0.
(_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
traditonal mips.
(_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
shared object set the value to 0.
(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
_DYNAMIC_LINKING for traditonal mips.
(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
for traditonal mips.
2000-07-15 H.J. Lu <>
* aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2000-07-12 Charles Wilson <>
* libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
out a structure that is BFD_IN_MEMORY.
2000-07-11 Alan Modra <>
* elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
bfd pointer. Print section id instead of bfd pointer for local
syms. Prefix addend with `+' for global syms as well as local.
Correct calculation of name component lengths.
(elf64_hppa_check_relocs): Update call to get_dyn_name.
From David Huggins-Daines <>
* elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
* elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
(elf64_hppa_modify_segment_map): Likewise.
2000-07-11 Andrew Cagney <>
* elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
addresses to be "naturally" sign extended. Return -1 if unknown.
* bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
* bfd-in2.h: Regenerate.
2000-07-11 Andrew Cagney <>
* ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
and ECOF_SIGNED_64 to list ways to extract an offset.
(ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
* elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
* elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2000-07-11 Andrew Cagney <>
* elfcode.h (elf_object_p): Use bfd_set_start_address and not
(elf_swap_ehdr_in): Sign extend e_entry when applicable.
(elf_swap_ehdr_out): Ditto.
2000-07-10 Alexander Aganichev <>
* archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
compatibility with older binutils.
2000-07-10 Alan Modra <>
* section.c (bfd_make_section_anyway): Start section_id at 0x10.
(STD_SECTION): Avoid negative ids, instead use 0 to 3.
From Ryan Bradetich <>
* dwarf1.c (parse_die): Cure signed/unsigned char warnings.
(parse_line_table): Ditto.
(_bfd_dwarf1_find_nearest_line): Ditto.
* syms.c (cmpindexentry): Remove extra `*' from params.
2000-07-09 Koundinya K <>
* elf32-mips.c (sort_dynamic_relocs): New Function.
(_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
via qsort to sort the dynamic relocations in increasing r_symndx
2000-07-09 Alan Modra <>
* elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
ATTRIBUTE_UNUSED to unused args.
(get_opd): Likewise.
(get_plt): Likewise.
(get_dlt): Likewise.
(get_stub): Likewise.
(elf64_hppa_adjust_dynamic_symbol): Likewise.
(elf64_hppa_link_output_symbol_hook): Likewise.
(elf64_hppa_check_relocs): Delete unused var.
(elf64_hppa_size_dynamic_sections): Likewise.
(elf64_hppa_finalize_opd): Likewise.
(elf64_hppa_finalize_dynreloc): Likewise.
(elf64_hppa_modify_segment_map): Likewise.
(elf64_hppa_finish_dynamic_sections): Likewise.
* elf-hppa.h (elf_hppa_final_write_processing): Add
ATTRIBUTE_UNUSED to unused args.
(elf_hppa_final_link_relocate): Likewise.
(elf_hppa_record_segment_addrs): Add paretheses.
(elf_hppa_relocate_section): Constify dyn_name.
From David Huggins-Daines <>
* config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
rearrange case statement so that it gets preferred to 32-bit ones.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
asection->id instead of address of asection structure.
(elf32_hppa_size_stubs): Likewise.
* elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
for .init* and .fini*.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
and addends used in stub names to 32 bits.
(elf32_hppa_size_stubs): Likewise.
* elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
not bfd_put_64. Fix minor comment typo and formatting.
Changes to create multiple linker stubs, positioned immediately
before the section where they are required.
* elf32-hppa.c: Don't include hppa_stubs.h.
(elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
(elf32_hppa_stub_hash_table): Delete.
(elf32_hppa_link_hash_entry): Delete.
(elf32_hppa_link_hash_table): Use plain bfd_hash_table for
stub_hash_table, and store the struct here rather than a pointer.
Delete output_symbol_count. Add offset array. Change
global_value to a bfd_vma.
(elf32_hppa_stub_hash_lookup): Use table instead of table->root.
(elf32_hppa_stub_hash_traverse): Delete.
(elf32_hppa_name_of_stub): Delete.
(elf32_hppa_link_hash_lookup): Delete.
(elf32_hppa_link_hash_traverse): Delete.
(elf32_hppa_stub_hash_table_init): Delete.
(elf32_hppa_size_of_stub): Pass input section and offset rather
than location and calculate location here. Don't pass name as all
stubs are now the same size.
(elf32_hppa_stub_hash_newfunc): Init new fields.
(elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
(elf32_hppa_bfd_final_link_relocate): Cast enums to int before
comparing against ints. Rewrite stub handling code.
(elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
Case enums to int before comparing against ints. Remove
bfd_reloc_dangerous case.
(elf32_hppa_build_one_stub): Rewrite.
(elf32_hppa_size_one_stub): New function.
(elf32_hppa_build_stubs): Rewrite.
(elf32_hppa_size_stubs): Pass in linker call-back functions.
Rewrite stub-handling specific code.
* elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
* elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
* hppa_stubs.h: Delete.
* (SOURCE_HFILES): Remove hppa_stubs.h
(elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
* Regenerate.
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
* libhppa.h (hppa_field_adjust): Correct e_nsel case.
* elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
and section name for bfd_reloc_notsupported error message.
(elf32_hppa_bfd_final_link_relocate): Print reasons for returning
(elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
undefined weak symbols for all relocs.
(elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
offsets are relative to one past the delay slot.
(elf32_hppa_size_stubs): Account for reloc addend when calculating
branch destination. Put addend into stub name too.
(elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
adjust by 8 when deciding whether a linker stub is needed. Put
addend into stub name as for above.
* elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
various args and vars.
(elf32_hppa_bfd_final_link_relocate): Here too.
(elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
inner block var to avoid shadowing.
* elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
* elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
(elf_hppa_fake_sections): Rename local var to avoid shadowing.
* libhppa.h: Change practically all unsigned ints to plain ints.
Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
From Ryan Bradetich <>
* libhppa.h (hppa_opcode_type): New enum to replace #define's.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
suit above.
From David Huggins-Daines <>
* elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
to the new OP_* ones.
* elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
error exit. Bail out earlier on plabel relocs that we aren't
interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
string, and then don't free our copy.
(elf32_hppa_build_one_stub): Make insn unsigned int.
* libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
available with BL, not BE and BLE.
* elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
code for elf arg relocs.
(elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
argument with elf_link_hash_entry h. Handle undefined weak
symbols. Move $global$ lookup from here...
(elf32_hppa_relocate_section): here. Return correct error
message for non-handled relocs.
(elf32_hppa_size_of_stub): Correctly test branch range. Previous
wrong test was -0x3ffff to +0x40000.
* elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
Handle them as such.
(elf_hppa_relocate_insn): Fix a typo.
(assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
assemble_17, assemble_21): Delete.
Supply defines for all 64 possible opcodes.
(bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
formats. Handle COMICLR.
(hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
-10, -16, 16, 22.
* elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
(elf32_hppa_bfd_final_link_relocate): Major rewrite.
(elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
to suit.
(elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
the local syms - did this code get deleted accidentally? Ignore
undefined and undefweak syms.
* elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
block. Use it instead of elf64_hppa_hash_table (info).
(elf_hppa_final_link_relocate): Use hppa_info instead of
elf64_hppa_hash_table (info).
* libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
(hppa_rebuild_insn): Mask immediate bits here instead.
* elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2000-07-08 Alan Modra <>
* section.c (struct sec): Add id field. Tidy comment formatting.
(bfd_make_section_anyway): Set id.
(STD_SECTION): Init id too.
Change CONST to const throughout.
* archures.c (bfd_arch_info): Tidy comment.
(bfd_arch_list): Change a CONST to const.
* libbfd-in.h: Tidy comments and replace CONST with const.
* elf-bfd.h: Likewise.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* libcoff.h: Regenerate.
2000-07-07 DJ Delorie <>
* archive.c (_bfd_write_archive_contents): Add an informative
2000-07-06 Kazu Hirata <>
* srec.c: Fix formatting.
2000-06-05 DJ Delorie <>
2000-07-04 Alexandre Oliva <>
* coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
value of PC-relative offsets.
2000-07-03 Jim Wilson <>
* elf64-alpha.c (alpha_elf_size_info): New.
(elf_backend_size_info): Define to alpha_elf_size_info.
* elfcode.h (elf_size_info): Change hash bucket size to 4.
2000-07-03 Ulf Carlsson <>
* elf32-mips.c: Include elf32-target.h again for the traditional
MIPS targets.
2000-07-03 Marek Michalkiewicz <>
* elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
(avr_info_to_howto_rela): Likewise.
(elf32_avr_gc_mark_hook): Likewise.
(elf32_avr_gc_sweep_hook): Likewise.
(elf32_avr_relocate_section): Likewise.
2000-07-03 Mark Elbrecht <>
* cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
an external symbol for a non-shared, non-relocatable link.
2000-07-03 Nick Clifton <>
* cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
is an external symbol.
(IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
external symbol.
2000-07-03 Kazu Hirata <>
* reloc16.c: Fix formatting.
2000-07-01 Koundinya K <>
* config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
to add a new target for traditional mips i.e
bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
* Likewise.
* configure: Rebuild.
* targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
(bfd_elf32_tradlittlemips_vec): Likewise.
* elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
to see that elfNN_bed does not get redefined even if the target file
is included twice for a chip. See elf32-mips.c.
2000-07-01 Alan Modra <>
* (DEP): Fix 2000-06-22. grep after running dep.sed
* Regenerate.
2000-06-30 DJ Delorie <>
* peicode.h (coff_swap_filehdr_in): can't use e_magic because we
can't assume the PE header is at 0x80.
2000-06-29 Mark Elbrecht <>
* syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2000-06-28 Mark Elbrecht <>
* go32stub.h: Update stub.
2000-06-26 Marek Michalkiewicz <>
* archures.c (bfd_mach_avr5): Define.
* bfd-in2.h (bfd_mach_avr5): Define.
* cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
bfd_mach_avr5, add bfd_mach_avr4. Update comments.
(compatible): Update comment. Add missing test.
* elf32-avr.c (avr_final_link_relocate): Support 8K wrap
for avr2 and avr4. Simplify 8K wrap code.
(bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
(elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2000-06-26 Kazu Hirata <>
* coff-h8300.c: Fix formatting.
* cpu-h8300.c: Likewise.
2000-06-24 Alexandre Oliva <>
* elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
for local symbols whose names are unknown.
2000-06-22 Alan Modra <>
* (DEP): grep for leading `/' in DEP1, and fail if we
find one.
* Regenerate.
* doc/ Regenerate.
2000-06-20 H.J. Lu <>
* Rebuild dependency.
* Rebuild.
2000-06-20 Maciej W. Rozycki <>
* elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
(elf_backend_copy_indirect_symbol): Map to the new function.
2000-06-20 Alan Modra <>
* archive.c (normalize): Correct pointer comparison when checking
for backslashes.
(bfd_bsd_truncate_arname): Likewise.
(bfd_gnu_truncate_arname): Likewise.
2000-06-20 Ulf Carlsson <>
* elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
sections elf_{text,data}_{section,symbol}.
* elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
(_bfd_mips_elf_hide_symbol): New function.
(elf_backend_hide_symbol): Map to the new function.
(_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
definitions of mips_elf_{text,data}_{section,symbol}.
(mips_elf_local_relocation_p): Try to find the direct symbol
based on new check_forced argument.
(mips_elf_calculate_relocation): Use new version of
(mips_elf_relocate_section): Likewise.
(_bfd_mips_elf_relocate_section): Likewise.
(mips_elf_sort_hash_table): Only assert that have enough GOT
(mips_elf_got16_entry): Match all 32 bits to the existing GOT
entry if the relocation based on the new external argument.
(mips_elf_create_dynamic_relocation): Assert that we have a
section contents allocated where we can swap out the dynamic
(mips_elf_calculate_relocation): Find the real hash-table entry
correctly by using h->root.root.type. Only create a dynamic
relocation entry if the symbol is defined in a shared library.
Create an external GOT entry for the GOT16 relocation if the
symbol was forced local.
(_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
dynamic index if the symbol was forced local.
2000-06-20 Maciej W. Rozycki <>
* elf32-mips.c: Fix typos in comments.
2000-06-19 Mark Kettenis <>
* rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2000-06-18 Stephane Carrez <>
*, bfd-in2.h, libbfd.h, configure: Rebuild.
BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
* (bfd_elf32_m68hc12_vec): Recognize.
(bfd_elf32_m68hc11_vec): Likewise.
* config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
Supports 68hc11 & 68hc12 at the same time.
* targets.c (bfd_elf32_m68hc12_vec): Declare and put in
(bfd_elf32_m68hc11_vec): Likewise.
* elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
* archures.c (bfd_m68hc12_arch): Define and register in global list
(bfd_m68hc11_arch): Likewise.
* reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
BFD_RELOC_M68HC11_3B): Define.
* cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
* cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2000-06-18 Ulf Carlsson <>
* elf_bfd.h (struct elf_backend_data): Add info argument to
(_bfd_elf_link_hash_hide_symbol): Likewise.
* elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
* elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
* elflink.h (elf_link_add_object_symbols): Likewise.
(elf_link_assign_sym_version): Likewise.
2000-06-18 H.J. Lu <>
* coff-i386.c (coff_i386_reloc): Don't return in case of
output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
Compensate PE relocations when linking with non-PE object
files to generate a non-PE executable.
2000-06-17 Ulf Carlsson <>
* elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
GOT entries if we're doing a static link or -Bsymbolic link.
2000-06-15 Ulf Carlsson <>
* elflink.h (elf_link_adjust_relocs): Check for and call backend
specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
(elf_link_output_relocs): Likewise.
(elf_reloc_link_order): Likewise.
2000-06-16 Nicholas Duffek <>
* archures.c (enum bfd_architecture): #define constants for
PowerPc and RS6000 machine numbers.
* bfd-in2.h: Regenerate.
* coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
and RS6000 machine numbers using #defined constants from
* cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
machine numbers using #defined constants from archures.c. Add
entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
64-bit words in 620 entry.
* cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
RSC, and RS2.
(bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2000-06-16 Nicholas Duffek <>
* coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
* libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
* libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2000-06-16 Nicholas Duffek <>
* bfd-in.h (bfd_family_coff): Define.
* bfd-in2.h: Regenerate.
* coffgen.c (coff_count_linenumbers, coff_symbol_from,
coff_find_nearest_line): Check COFFness using bfd_family_coff()
instead of bfd_target_coff_flavour.
* cofflink.c (_bfd_coff_final_link): Likewise.
* cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
exclude XCOFF files.
* reloc.c (bfd_perform_relocation, bfd_install_relocation):
* targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
* xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
* xcofflink.c (XCOFF_XVECP): Delete.
(bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
check for bfd_target_xcoff_flavour.
2000-06-16 Nicholas Duffek <>
* rs6000-core.c: Support 64-bit core files, support pre-4.3 core
files on AIX 4.3.
(read_hdr): New function.
(rs6000coff_core_p): Store mstsave or __context64 struct instead
of trying to extract individual registers. Set abfd->arch_info
to match the architecture that created the core file.
(rs6000coff_get_section_contents): Delete.
* xcoff-target.h (rs6000coff_get_section_contents): Delete.
2000-06-14 H.J. Lu <>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
is NULL.
2000-06-13 H.J. Lu <>
* configure: Regenerate.
2000-06-13 J"orn Rennecke <>
* peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2000-06-08 David O'Brien <>
* (VERSION): Update to show this is the CVS mainline.
2000-06-07 Alan Modra <>
* elf32-d10v.c: Include elf/d10v.h
(enum reloc_type): Delete.
* elf32-d30v.c: Include elf/d30v.h
(enum reloc_type): Delete.
* Run "make dep-am" to regenerate dependencies.
* Regenerate.
* elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
(elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
move HOWTOs into elf_howto_table.
(R_386_standard, R_386_ext_offset): Define.
(R_386_ext, R_386_vt_offset, R_386_vt): Define.
(elf_i386_reloc_type_lookup): Modify calculation of index into
elf_howto_table since we've removed the padding.
(elf_i386_info_to_howto_rel): Likewise.
(elf_i386_relocate_section): Likewise.
2000-06-06 Michael Snyder <>
* elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2000-06-05 H.J. Lu <>
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
an error when seeing an undefined symbol with hidden/internal
attribute. It is handled in *_relocate_section ().
2000-06-05 H.J. Lu <>
* elflink.h (elf_fix_symbol_flags): Follow the link for the
indirect symbol for the ELF_LINK_NON_ELF bit.
(elf_link_output_extsym): Don't output the indirect symbol even
if the ELF_LINK_NON_ELF bit is set.
2000-06-01 J.T. Conklin <>
* config.bfd (i[3456]86-*-netbsdelf*): New target.
(i[3456]86-*-netbsdaout*): New target.
(i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
(i[3456]86-*-openbsd*): Likewise.
2000-05-30 Andrew Cagney <>
* trad-core.c: From hpux-core.c, include <dirent.h> or
<sys/ndir.h> when possible.
2000-05-31 Nick Clifton <>
* opintl.h (_(String)): Explain why dgettext is used instead
of gettext.
2000-05-31 Ulrich Drepper <>
* elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
definitions. We must not assume they are sorted in the file
according to their index numbers.
2000-05-31 Alan Modra <>
* elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
R_PARISC_DIR17F are for absolute branches; Handle them as such.
2000-05-30 Nick Clifton <>
* cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
80960CA, 80960MC as valid machine names.
2000-05-30 H.J. Lu <>
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
visibility bits if the symbol is undefined. Correctly handle
weak undefined symbols with hidden and internal attributes.
* elflink.h (elf_link_add_object_symbols): Always turn the
symbol into local if it has the hidden or internal attribute.
2000-05-29 Philip Blundell <>
* ppcboot.c: Add packed attribute if compiling with GCC.
2000-05-29 Anatoly Vorobey <>
* elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2000-05-26 Michael Snyder <>
* elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
elfcore_grok_psinfo): Add code to allow debugging a 32-bit
corefile on a 64-bit (Sparc Solaris) host. Also clean up
a few old comments.
2000-05-26 Alan Modra <>
* Update dependencies with "make dep-am"
* Regenerate.
* sysdep.h (gettext, dgettext, dcgettext, textdomain,
bindtextdomain): Replace defines with those from intl/libgettext.h
to quieten gcc warnings.
2000-05-26 Eli Zaretskii <>
* aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
* archive.c (normalize, bfd_bsd_truncate_arname,
bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
file names with backslashes.
* cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
before opening it.
* sysdep.h: Include filenames.h.
2000-05-26 Alan Modra <>
* opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2000-05-26 Jakub Jelinek <>
* elf64-sparc.c (sparc64_elf_relax_section): New.
(sparc64_elf_relocate_section): Optimize tail call into branch always
if possible.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
(elf32_sparc_relax_section): New.
2000-05-26 Jakub Jelinek <>
* elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
Remove unusued variables.
(sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
(sparc64_elf_merge_private_bfd_data): Fix shared library case from
previous fix, so that shared libs really don't influence targets
extension mask and memory model.
2000-05-23 H.J. Lu <>
* elf64-alpha.c (elf64_alpha_relocate_section): Check
h->root.other not h->other.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2000-05-23 H.J. Lu <>
* elf32-i386.c (elf_i386_relocate_section): Don't allow the
undefined symbol with the non-default visibility attributes.
* elf-hppa.h (elf_hppa_relocate_section): Likewise.
* elf32-arm.h (elf32_arm_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2000-05-22 Richard Henderson <>
* elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
PCREL22, PCREL64I. Zero size of special relocs.
(elf64_ia64_reloc_type_lookup): Likewise.
(USE_BRL, oor_brl, oor_ip): New.
(elf64_ia64_relax_section): New.
(elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
(elf64_ia64_install_value): Likewise, plus PCREL21BI.
(elf64_ia64_relocate_section): Likewise.
(bfd_elf64_bfd_relax_section): New.
* reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
* bfd-in2.h, libbfd.h: Regenerate.
2000-05-22 Nick Clifton <>
* : Add peigen.lo to MIPS PE targets.
* configure: Regenerate.
2000-05-22 Momchil Velikov <>
* libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
only if it is known for both input and output bfds. Separate
error message strings as in some languages, it may be necessary
to change more than one place in the string to change between
'big' and 'little'.
* elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
endianess checks, call _bfd_generic_verify_endian_match() instead.
* elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
* elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
endianess before checking bfd flavours.
2000-05-22 H.J. Lu <>
* elflink.h (elf_link_output_extsym): Clear the visibility
field for symbols not defined locally.
2000-05-18 Alan Modra <>
* libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
(hppa_rebuild_insn): Mask immediate bits here instead.
* elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2000-05-18 Momchil Velikov <>
* elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
relocs for an executable, ensure that they are virtual addresses.
2000-05-18 Jeffrey A Law (
* config.bfd (hppa*64*-*-hpux11*): New target triplet.
2000-05-17 S. Bharadwaj Yadavalli <>
Rick Gorton <>
* elflink.h: Add emitrelocations support: when enabled, relocation
information and relocation sections are put into final output
executables. If the emitrelocations flag is set, do the following:
(elf_bfd_final_link): Emit relocation sections.
(elf_link_input_bfd): Compute relocation section contents.
(elf_gc_sections): Don't clean relocation sections.
2000-05-16 Catherine Moore <>
* som.c (som_decode_symclass): Recognize weak symbols.
2000-05-16 Szabolcs Szakacsits <>
* peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
read idata section only from dataoff.
(pe_print_edata): Correctly check for valid eat_member.
2000-05-16 J"orn Rennecke <>
* elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2000-05-14 Philip Blundell <>
* config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2000-05-12 Alan Modra <>
* targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
* peigen.c (pe_print_idata): Look for .idata section and print
info even if data directory has zero entries. Read idata section
starting from dataoff, and adjust all data offsets to suit. Cast
all bfd_vma vars to unsigned long before passing to fprintf.
* peigen.c (pe_print_edata): Similarly, look for .edata section
and print info even if data directory has zero entries. Cast
all bfd_vma vars to unsigned long before passing to fprintf.
From Szabolcs Szakacsits <>
* peigen.c (pe_print_idata): Use bfd_section_size rather than data
directory size which may be bogus.
* peigen.c (pe_print_edata): Similarly.
2000-05-09 Alan Modra <>
* elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
section is empty.
(copy_private_bfd_data): Allow for space possibly taken up by elf
headers when calculating segment physical address from lma.
2000-05-08 Alan Modra <>
* versados.c (versados_scan): Init stringlen and pass_2_done.
* trad-core.c (trad_unix_core_file_p): Return
bfd_error_wrong_format rather than bfd_error_file_truncated.
* peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
add_data_entry. DataDirectory virtual address is relative.
(pe_print_idata): Account for relative DataDirectory virtual
addresses. Don't trash datasize inside POWERPC_LE_PE code.
(pe_print_edata): Similarly.
From Szabolcs Szakacsits <>
* peigen.c (dir_names): Add Delay Import Directory.
(pe_print_idata): Always search for bfd section containing
idata address rather than looking up section name. Print this
section name rather than .idata.
(pe_print_edata): Similarly. Also print some fields as %08lx.
(_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2000-05-05 Clinton Popetz <>
* xcoff.h: Rename to xcoff-target.h
* Change all instances of xcoff.h to xcoff-target.h
* coff-rs6000.c: Ditto.
* coff64-rs6000.c: Ditto.
* coff-pmac.c: Ditto.
* Regenerate.
2000-05-05 Clinton Popetz <>
* coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
2000-05-04 Michael Snyder <>
* elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
* bfd-in.h: Prototype bfd_elf_get_arch_size.
* bfd-in2.h: Prototype bfd_elf_get_arch_size.
2000-05-04 Alan Modra <>
* libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2000-05-03 Martin v. Löwis <>
* elflink.h (elf_link_add_object_symbols): Reset dynindx for
hidden and internal symbols.
(elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
assign a PLT or GOT entry to symbols with hidden and
internal visibility.
2000-05-03 Mark Elbrecht <>
* bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
the .bss section.
* bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2000-05-02 H.J. Lu <>
* elf.c (prep_headers): Use ELFOSABI_NONE instead of
2000-05-02 Alan Modra <>
* targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
* (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
* Regenerate.
2000-05-01 Jim Wilson <>
* (BFD32_BACKENDS): Add efi-app-ia32.lo.
(BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
(BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
(BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
* Rebuild.
2000-05-02 Alan Modra <>
* config.bfd: Re-enable elf32-hppa. It now compiles, even if it
doesn't work very well.
* elf-hppa.h (elf_hppa_internal_shdr): Define.
(elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
Set hdr->s_type to 1 if ARCH_SIZE == 32.
(_bfd_elf_hppa_gen_reloc_type): Add prototype.
(elf_hppa_info_to_howto): Likewise.
(elf_hppa_info_to_howto_rel): Likewise.
(elf_hppa_reloc_type_lookup): Likewise.
(elf_hppa_is_local_label_name): Likewise.
(elf_hppa_fake_sections): Likewise.
(elf_hppa_final_write_processing): Likewise.
(elf_hppa_howto_table): Fully initialise all entries.
(_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
(elf_hppa_info_to_howto): Likewise.
(elf_hppa_info_to_howto_rel): Likewise.
(elf_hppa_reloc_type_lookup): Likewise.
(elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
elf_hppa_record_segment_addrs, elf_hppa_final_link,
elf_hppa_relocate_section, elf_hppa_final_link_relocate,
elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
elf32-hppa.c mess is cleaned up.
(elf_hppa_final_link_relocate): Make insn and r_type unsigned
int. Delete r_field. In case R_PARISC_PCREL21L, don't set
r_field then call hppa_field_adjust inline func with variable
r_field arg, instead call hppa_field_adjust with fixed arg.
In case R_PARISC_PCREL22F, don't set r_field.
(elf_hppa_relocate_insn): Change args and return type to unsigned
int. Call re_assemble_* funcs to do the work.
* elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
sign extending.
* libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
(sign_extend): Mask first before sign extending.
(low_sign_extend): Rewrite without condition expression.
(ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
(assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
assemble_17, assemble_21, sign_unext, low_sign_unext): Return
result as function return value rather than through pointer arg.
Accept unsigned int args, and return unsigned int.
(re_assemble_3): New. Combines function of dis_assemble_3 with
re-assembly of opcode and immediate.
(re_assemble_12): Likewise.
(re_assemble_16): Likewise.
(re_assemble_17): Likewise.
(re_assemble_21): Likewise.
(re_assemble_22): Likewise.
(hppa_field_adjust): Rewrite and document, paying attention to
size of types and signed/unsigned issues.
(get_opcode): Shift before masking.
(FDLW): Rename to FLDW.
(bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
(hppa_rebuild_insn): Change args and return value to unsigned
int. Make use of re_assemble_*. Correct case 11.
* dep-in.sed: Handle ../opcodes/.
* (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
elf64-hppa.h, hppa_stubs.h, xcoff.h.
(BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
elfarm-nabi.lo dependencies outside of auto-dependency area.
Regenerate dependencies.
* Regenerate.
* (TRAD_HEADER): Test non-null before
* configure: Regenerate.
* reloc.c: Fix mis-spelling in comment.
2000-05-01 Alan Modra <>
* coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
* vms.c (vms_openr_next_archived_file): Return NULL.
2000-04-28 Clinton Popetz <>
* coffcode.h Copy changes mistakenly done to libcoff.h in
4/24/2000 patch.
2000-04-29 Andreas Jaeger <>
* libbfd-in.h: Correctly check GCC version.
* bfd-in.h: Likewise.
* libhppa.h: Likewise.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
2000-04-28 Clinton Popetz <>
(coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
on xcoff.h
* Regenerate.
* xcoff.h: New file.
* coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
* coff-rs6000.c: Move all declarations and defines that are
common to the xcoff backends into xcoff.h
* coff64-rs6000.c: Ditto,
2000-04-28 Clinton Popetz <>
* coff-mips.c (mips_ecoff_backend_data): Add initialization of
_bfd_coff_force_symnames in strings and
_bfd_coff_debug_string_prefix_length to their default values.
* coff-sh.c: (bfd_coff_small_swap_table): Ditto.
2000-04-28 Clinton Popetz <>
* coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
_bfd_coff_force_symnames in strings and
_bfd_coff_debug_string_prefix_length to their default values.
2000-04-27 Alan Modra <>
* elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
Check local_got_refcounts before dereferencing.
* elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
before deciding we don't need R_PPC_PLT32 relocation.
(ppc_elf_gc_sweep_hook): Check local_got_refcounts before
* elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
* elf32-i386.c (elf_i386_check_relocs): Reference count .got and
.plt entries.
(elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
(elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
(elf_i386_relocate_section): Allow for .plt to go missing.
(elf_i386_finish_dynamic_symbol): Use same test to decide if we
can use a relative reloc for got as elf_i386_relocate_section.
(bfd_elf32_bfd_final_link): Define to use gc form of final link.
2000-04-26 Clinton Popetz <>
* config.bfd: Remove extraneous bfd_powerpc_64_arch.
2000-04-24 Clinton Popetz <>
* (coff64-rs6000.lo): New rule.
* Regenerate.
* coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
xcoff_is_local_label_name, xcoff_rtype2howto,
xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
(xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
(MINUS_ONE): New macro.
(xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
(coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
coff_SWAP_aux_out): Map to the new functions.
* coff64-rs6000.c: New file.
* libcoff.h (bfd_coff_backend_data): Add new fields
_bfd_coff_force_symnames_in_strings and
bfd_coff_debug_string_prefix_length): New macros for above fields.
* coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
of using coff_swap_sym_in directly.
(FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
(coff_set_flags) Set magic for XCOFF64.
(coff_compute_section_file_positions): Add symbol name length to
string section length if bfd_coff_debug_string_prefix_length is
(coff_write_object_contents): Don't do reloc overflow for XCOFF64.
(coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
using coff_swap_lineno_in directly.
(bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
and _bfd_coff_debug_string_prefix_length fields.
* coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
symbol names into strings table when
bfd_coff_force_symnames_in_strings is true.
SET_RELOC_VADDR): New macros.
(coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
(coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
(coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
changes within RS6000COFF_C specific code.
(coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
* reloc.c (bfd_perform_relocation, bfd_install_relocation):
Extend existing hack on target name.
* xcofflink.c (XCOFF_XVECP): Extend existing hack on
target name.
* coff-tic54x.c (ticof): Keep up to date with new fields
in bfd_coff_backend_data.
* config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
targ_selvecs to include rs6000coff64_vec for rs6000.
* Add rs6000coff64_vec case.
* cpu-powerpc.c: New bfd_arch_info_type.
2000-04-24 Jeffrey A Law (
* config.bfd: Only disable elf32-hppa vectors, not all of the
BSD and OSF configuration support. Provide (disabled) clauses
for PA64 support.
* Add clause for PA64 support.
* configure: Rebuilt.
* targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
(bfd_elf64_hppa_vec): Declare.
* (BFD64_BACKENDS): Add elf64-hppa.lo
(BFD64_BACKENDS_CFILES): Add elf64-hppa.c
(elf64-hppa.lo): Add dependencies.
* Rebuilt.
* elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
2000-04-24 Jason Eckhardt <>
* libhppa.h (dis_assemble_16): New function.
(pa_arch): Added pa20w element.
2000-04-24 Ulrich Drepper <>
* elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
* elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
definitions to get external names.
(elf_write_relocs): Renamed from write_relocs and make global.
(elf_slurp_reloc_table): Make global.
(_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
* archive.c (hpux_uid_gid_encode): New function.
(bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
defined and the ID is greater than 99999.
(bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
special uid/gid fields into 32 bit values.
2000-04-21 Matthew Green <>
* config.bfd: Add NetBSD/sparc64 support.
Fri Apr 21 13:20:53 2000 Richard Henderson <>
David Mosberger <>
Timothy Wall <>
Jim Wilson <>
* (ALL_MACHINES): Add cpu-ia64.lo.
(ALL_MACHINES_CFILES): Add cpu-ia64.c.
(BFD64_BACKENDS): Add elf64-ia64.lo.
(BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
(cpu-ia64.lo, elf64-ia64.lo): New rules.
* Rebuild.
* archures.c (enum bfd_architecture): Add bfd_arch_ia64.
(bfd_ia64_arch): Declare.
(bfd_archures_list): Add bfd_ia64_arch.
* bfd-in2.h: Rebuild.
* config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
* configure: Rebuild.
* (ia64-*-linux*): New host.
* (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
* elf.c (prep_headers): Add bfd_arch_ia64.
* libbfd.h: Rebuild.
* reloc.c: Add IA-64 relocations.
* targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
(bfd_target_vect): Add bfd_elf64_ia64_little_vec.
* cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
2000-04-21 Richard Henderson <>
* elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
contents when performing a partial link.
(bfd_elf_d30v_reloc_21): Likewise.
2000-04-20 H.J. Lu <>
* elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
patch to symbols defined by a shared object.
* elf32-ppc.c (ppc_elf_relocate_section): Similarly.
2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
K&R compiler fixes.
* dwarf2.c (concat_filename): Avoid string literal concatenation.
* ieee.c (ieee_get_symtab): Don't initialise union in struct.
Mon Apr 17 19:14:36 2000 David Mosberger <>
* (BFD64_BACKENDS): Mention coff-ia64.lo.
(BFD64_BACKENDS_CFILES): Mention coff-ia64.c
(coff-ia64.lo): Add dependency.
* Regenerate.
* coff-ia64.c: New file.
* efi-app-ia32.c: Ditto.
* efi-app-ia64.c: Ditto.
* coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
(coff_set_flags): Ditto.
(coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
* config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
* (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
* configure: Regenerate.
* libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
* peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
data_start. Use above macros to read fields that are 64 bit wide for
COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
(_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
FileAlignment and SectionAlignment to minimum alignment if they
are zero.
(_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
(_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
Use above macros to write fields that are 64 bit wide for
(pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5*4 otherwise. This should be right for IA-32 and IA-64, but may
be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
begin address, end address, and unwind info address only. Use
GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
print addresses.
HIGH3ADJ relocation names.
(_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
* targets.c: Declare bfd_efi_app_ia32_vec and
(bfd_target_vector): Mention bfd_efi_app_ia32_vec and
2000-04-17 Timothy Wall <>
* bfd-in2.h: Add prototypes for tic54x load page access.
* bfd-in.h: Regenerate.
* coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
in customized _set_arch_mach function.
* coffcode.h (coff_set_alignment_hook): Set section load page if
the appropriate macro is defined.
(write_object_contents): Read section load page.
2000-04-13 Alan Modra <>
* elf32-hppa.h: Update copyright date.
* elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
* elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
* elf32-d30v.c (MAX32): Don't use LL suffix.
(MIN32): Define in terms of MAX32.
(bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
* coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
* peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
2000-04-12 Alan Modra <>
* dep-in.sed: Match space before file name, not after.
* Regenerate dependencies.
* Regenerate.
* reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
case, allow address wrap-around stupidly removed 2000-03-17. Sign
extend without an if statement.
2000-04-11 Alan Modra <>
* coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
signed quantites.
* elf32-mips.c (gprel16_with_gp): Likewise.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
here using -0x40000, not (int)0xfffc0000.
(elf32_hppa_size_of_stub): Likewise.
2000-04-11 Timothy Wall <>
* coff-tic54x.c: Now builds with all targets.
* Add coff/tic54x.h to coff-tic54x.o dependencies.
* Regenerate.
* coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
unitialized variable.
Fri Apr 7 15:56:57 2000 Andrew Cagney <>
* (WARN_CFLAGS): Set to -W -Wall by default. Add
--enable-build-warnings option.
* (AM_CFLAGS, WARN_CFLAGS): Add definitions.
*, configure: Re-generate.
2000-04-07 Nick Clifton <>
* reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
* elf32-arm.h (elf32_arm_final_link_relocate): Handle
* elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
(elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
* elfarm-oabi.c: Define OLD_ARM_ABI and change include from
elf/arm-oabi.h to elf/arm.h
* Fix dependency for elfarm-oabi.c
* Regenerate.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
2000-04-06 Michael Snyder <>
* elfcore.h (elf_core_file_p): preserve value of tdata at entry,
and restore it on failure. Release newly allocated tdata on
Fri Apr 7 11:33:47 2000 Jim Wilson <>
* dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
(decode_line_info): Set it. Report error if unit->line_offset is
equal to or larger than it.
2000-04-07 Timothy Wall <>
* targets.c: Added vecs for tic54x.
* reloc.c: Added relocs for tic54x.
* libbfd.h: Regenerated.
* configure: Add TI COFF vecs for tic54x.
* Ditto.
* config.bfd (targ_cpu): Recognize new tic54x target.
* coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
* bfd-in2.h: Add tic54x target and relocations.
*, Add tic54x target.
* archures.c (bfd_archures_list): Add tic54x target.
* coff-tic54x.c: New.
* cpu-tic54x.c: New.
2000-04-06 Michael Snyder <>
* elfcore.h (elf_core_file_p): call backend_object_p which
thereby gets an opportunity to update the arch/machine type.
2000-04-06 Timothy Wall <>
* coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
class. Handle SEC_CLINK and SEC_BLOCK flags.
* section.c: Add SEC_CLINK and SEC_BLOCK flags.
* bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
2000-04-06 Nick Clifton <>
* elf32-arm.h (elf32_arm_set_private_flags): Only check for
EF_INTERWORK if this is an unknown EABI.
(elf32_arm_merge_private_bfd_data): Check EABI version
numbers. Only check EF_xxx flags if the EABI version number
is unknown.
(elf32_arm_check_private_bfd_data): Only check EF_xxx flags
if the EABI version number is unknown.
(elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
if the EABI version number is unknown.
Wed Apr 5 22:04:20 2000 J"orn Rennecke <>
* reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
* elf32-sh.c (sh_elf_howto_tab): Change special_func to
sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
(sh_elf_reloc_loop): New function.
(sh_elf_reloc): No need to test for always-to-be-ignored relocs
any more.
(sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
(sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
* bfd-in2.h, libbfd.h: Regenerate.
2000-04-04 Alan Modra <>
* po/bfd.pot: Regenerate.
* Remove extraneous mkdep comment.
(MKDEP): Use gcc -MM rather than mkdep.
(DEP): Quote when passing vars to sub-make. Add warning
message to end.
(DEP1): Rewrite for "gcc -MM".
Update dependencies.
* Regenerate.
2000-04-03 Kevin Buettner <>
* Added corefile support for AIX 4.3. In particular,
AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
compiling rs6000-core.c.
* configure: Regenerated.
2000-04-03 H.J. Lu <>
* cache.c (bfd_open_file): Unlink the output file only if
it has non-zero size.
2000-04-01 Ken Block USG <>
* elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
relative relocations for non-loaded sections in shared objects.
(elf64_alpha_check_relocs): Similarly.
Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <>
* aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
BFD_RELOC_16 to switch for extended relocs.
(MY_swap_ext_reloc_in): New.
(MY_swap_ext_reloc_out): New.
(NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
than NAME(aout,swap_ext_reloc_in) for extended relocs.
(NAME(aout,squirt_out_relocs)): Similarly use
(aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
2000-04-03 Kazu Hirata <>
* coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
the R_PCRWORD_B case.