aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2001-09-05 * elf64-alpha.c (SKIP_HOWTO): New.Richard Henderson5-237/+74
(elf64_alpha_howto_table): Use it to remove dead ECOFF relocs. Fix sizes of 16-bit mem format relocs. (elf64_alpha_reloc_map): Update to match. (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate. (elf64_alpha_relax_without_lituse): Likewise. (elf64_alpha_check_relocs): Handle GPREL16. (elf64_alpha_relocate_section): Likewise. * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove. (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New. * bfd-in2.h, libbfd.h: Rebuild.
2001-09-04 * elf32-h8300.c (elf32_h8_relax_section): New function.Jeff Law2-0/+867
(elf32_h8_relax_delete_bytes): Likewise. (elf32_h8_symbol_address_p): Likewise. (elf32_h8_get_relocated_section_contents): Likewise. (bfd_elf32_bfd_relax_section): Define. (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
2001-09-04 * elf32-h8300.c (special): New function.Jeff Law2-12/+65
(h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in all relocations. (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8. Fix minor problems with 8bit and 16bit PC relative relocations.
2001-09-01 * vms-tir.c: Add missing prototypes.Andreas Jaeger5-5/+34
* vms-hdr.c: Likewise. * vms-gsd.c: Likewise. * vms-misc.c: Likewise.
2001-08-312001-08-31 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+14
* elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename with bad relocation.
2001-08-312001-08-31 Eric Christopher <echristo@redhat.com>Eric Christopher6-34/+32
Jason Eckhardt <jle@redhat.com> * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32, mips32_4k and mips64. * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k, bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64. * bfd/cpu-mips.c: Ditto. * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto. * bfd/bfd-in2.h: Regenerate.
2001-08-31 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memoryJakub Jelinek2-3/+9
value into R_ALPHA_RELATIVE's addend. (elf64_alpha_finish_dynamic_symbol): Likewise.
2001-08-31amend entry to mention only if not USE_RELNick Clifton1-1/+1
2001-08-31Do not rightshift recomputed addend during relocatable link if not USE_REL.Nick Clifton2-3/+5
2001-08-31Fix off-by-one error whilst sweeping vtable relocsNick Clifton2-3/+10
2001-08-302001-08-30 H.J. Lu <hjl@gnu.org>H.J. Lu2-5/+12
* elf32-mips.c (mips_elf_calculate_relocation): Revert the last 2 changes. (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic relocations for weak definitions.
2001-08-302001-08-30 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+10
* Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo. (BFD32_BACKENDS_CFILES): Add elf32-h8300.c. * Makefile.in: Rebuild.
2001-08-302001-08-30 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+8
* elf32-mips.c (mips_elf_calculate_relocation): Don't create dynamic relocation for undefined weak symbols when creating executables. Check h->root.root.type, instead of h->root.type.
2001-08-30Fix for xty_ld symbolsTom Rix2-4/+9
2001-08-30 * elf32-h8300.c (h8_elf_howto_table): Add new PC relativeJeff Law2-6/+54
relocations. (h8_reloc_map): Similarly. (elf32_h8_final_link_relocate): Remove incorrect overflow tests. Add support for PC relative relocations.
2001-08-30 * elf32-h8300.c: Put all prototypes together.Jeff Law2-9/+251
(elf32_h8_info_to_howto): Parameter elf_reloc is used. (elf32_h8_final_link_relocate): New function for linker. (elf32_h8_relocate_section): Similarly. (elf_backend_relocate_section): Define.
2001-08-292001-08-29 Joel Sherrill <joel@OARcorp.com>Phil Blundell2-6/+15
* configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change default from coff to elf.
2001-08-29Fix brown-paper-bag thinko in last change.Jeff Law1-1/+1
2001-08-29Fix typos in ChangeLog dates.Jeff Law1-2/+2
2001-08-29 * cpu-h8300.c (h8300_scan, compatible): Prototype.Jeff Law4-15/+140
(h8300_scan): Handle architecture:machine encodings typically found in linker scripts. * elf.c (prep_headers): Do not try to do H8 machine recognition here. * elf32-h8300.c: Add some missing prototypes. (elf32_h8_mach, elf32_h8_final_write_processing): New functions. (elf32_h8_object_p): Similarly.
2001-08-29 * targmatch.sed: Delete case statements.Alan Modra3-3/+14
* config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for aix4.3 and above.
2001-08-29 * Makefile.am (elf32-h8300.lo): New target.Joern Rennecke12-14/+336
* config.bfd (h8300*-*-elf): New case. * configure.in (bfd_elf32_h8300_vec): New case. * elf.c (prep_headers): Add case for bfd_arch_h8300. * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation. (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise. (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise. * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration. * elf32-h8300.c: New file. * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
2001-08-28Add missing prototypesNick Clifton9-197/+250
2001-08-27 * elf32-i386.c: Add missing prototypes.Daniel Jacobowitz5-0/+24
* elf32-ppc.c: Likewise. * elf32-sh-lin.c: Likewise. * elfarm-nabi.c: Likewise.
2001-08-27 * elf32-i386.c (elf_i386_grok_prstatus): New function.Daniel Jacobowitz5-0/+297
(elf_i386_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise. * elf32-ppc.c (ppc_elf_grok_prstatus): New function. (ppc_elf_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise. * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function. (elf32_shlin_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise. * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function. (elf32_arm_nabi_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Likewise.
2001-08-272001-08-27 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+13
* elf32-mips.c (mips_elf_create_dynamic_relocation): Add more sanity check. (mips_elf_calculate_relocation): Create dynamic relocation for symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR bit is not set.
2001-08-272001-08-27 H.J. Lu <hjl@gnu.org>H.J. Lu2-5/+27
* elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype. (_bfd_mips_elf_copy_indirect_symbol): Likewise. (_bfd_elf32_mips_grok_prstatus): Likewise. (_bfd_elf32_mips_grok_psinfo): Likewise. (_bfd_mips_elf_hide_symbol): Make it static and cast to `struct mips_elf_link_hash_entry *'. (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2001-08-27Add missing prototypesNick Clifton8-309/+346
2001-08-27 * config.bfd: Add powerpc64 target. Add powerpc64 vectors toAlan Modra13-34/+3965
targ64_selvecs for 32 bit powerpc targets. * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo. (BFD64_BACKENDS_CFILES): Add elf64-ppc.c. Run "make dep-am". * Makefile.in: Regenerate. * configure.in: Add elf64_powerpc vecs. * configure: Regenerate. * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit. * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target. * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec. * elf64-ppc.c: New file. * reloc.c: Add powerpc64 relocs. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate.
2001-08-27 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if theAndreas Schwab2-27/+34
reloc is against read-only section. (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_m68k_reloc_type_class): New function. (elf_backend_reloc_type_class): Define.
2001-08-27 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if theAndreas Jaeger4-65/+97
reloc is against read-only section. (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_s390_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_s390_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (ppc_elf_reloc_type_class): New. (elf_backend_reloc_type_class): Define.
2001-08-26 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if theAndreas Jaeger4-113/+130
reloc is against read-only section. (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_cris_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_backend_reloc_type_class): Define. (sh_elf_reloc_type_class): New. (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_arm_reloc_type_class): New.
2001-08-26 * oasys.c: Add missing prototypes.Andreas Jaeger5-8/+62
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused attribute for parameter. * elf.c (_bfd_elf_reloc_type_class): Likewise. * versados.c (get_4): Make static. (get_10): Make static. Add missing prototypes. (process_esd): Fix call to versados_new_symbol.
2001-08-25Add missing prototypesNick Clifton19-999/+1140
2001-08-25 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string forThiemo Seufer2-6/+11
E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2001-08-242001-08-24 H.J. Lu <hjl@gnu.org>H.J. Lu2-8/+8
* elf.c (_bfd_elf_merge_sections): Fail if not using an ELF hash structure.
2001-08-24Apply H.J.'s patch to revert change to elfxx-target.hNick Clifton6-34/+121
Apply my patch to allow SREC as output format.
2001-08-24* bfd.c (bfd_alt_mach_code): New function.Alexandre Oliva3-0/+63
* bfd-in2.h: Rebuilt.
2001-08-24* elf-m10300.c (mn10300_elf_relocate_section): Test the rightAlexandre Oliva2-2/+8
`type' field in the hash entry when deciding whether to follow a link.
2001-08-24 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, notJakub Jelinek3-25/+56
last. (elf_link_sort_relocs): Adjust accordingly. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag. (elf64_alpha_check_relocs): Set it if section this reloc is against is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against read-only section. (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation is is against read-only section. (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't check section names. (elf64_alpha_reloc_type_class): New. (elf_backend_reloc_type_class): Define.
2001-08-24 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()Thiemo Seufer2-1/+10
by bfd_malloc().
2001-08-23 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL ifAndreas Jaeger2-27/+34
the reloc is against read-only section. (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf64_x86_64_reloc_type_class): New. (elf_backend_reloc_type_class): Define.
2001-08-23Add more missing prototypesNick Clifton10-864/+907
2001-08-232001-08-23 H.J. Lu <hjl@gnu.org>H.J. Lu15-44/+70
* syms.c (bfd_print_symbol_vandf): Add abfd to arg. * bfd-in2.h (bfd_print_symbol_vandf): Regenerated. * aoutx.h (NAME(aout,print_symbol)): Pass abfd to bfd_print_symbol_vandf. * coffgen.c (coff_print_symbol): Likewise. * elf.c (bfd_elf_print_symbol): Likewise. * ieee.c (ieee_print_symbol): Likewise. * nlmcode.h (nlm_print_symbol): Likewise. * oasys.c (oasys_print_symbol): Likewise. * pdp11.c (NAME(aout,print_symbol)): Likewise. * som.c (som_print_symbol): Likewise. * srec.c (srec_print_symbol): Likewise. * tekhex.c (tekhex_print_symbol): Likewise. * versados.c (versados_print_symbol): Likewise. * vms.c (vms_print_symbol): Likewise. * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma with bfd_fprintf_vma. (bfd_elf_print_symbol): Likewise. * syms.c (bfd_print_symbol_vandf): Likewise.
2001-08-23Add missing prototypes for bout.cNick Clifton5-438/+469
2001-08-23 * elf-bfd.h (enum elf_reloc_type_class): New.Jakub Jelinek9-85/+401
(struct elf_backend_data): Add elf_backend_reloc_type_class. (_bfd_elf_reloc_type_class): New. * elfxx-target.h (elf_backend_reloc_type_class): Define. (elfNN_bed): Add elf_backend_reloc_type_class. * elf.c (_bfd_elf_reloc_type_class): New. * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_i386_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_sparc_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (sparc64_elf_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. (elfNN_ia64_hash_table_create): Clear ia64_info. (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only section. (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag instead of looking up section names for DT_TEXTREL. (elfNN_ia64_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. (struct elf_link_sort_rela): New. (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. (elf_bfd_final_link): Call elf_link_sort_relocs. Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if necessary. * bfdlink.h (struct bfd_link_info): Add combreloc and spare_dynamic_tags fields. * emultempl/elf32.em (place_orphan): Place orphan .rel* sections into .rel.dyn resp. .rela.dyn if combreloc. (get_script): If .x linker script is equal to .xn, only put it once into the binary. Add .xc and .xsc scripts. (parse_args): Handle -z combreloc and -z nocombreloc. * scripttempl/elf.sc (.rela.sbss): Fix a typo. For .xc and .xsc scripts put all .rel* or .rela* input sections but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn. * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME is elf. Strip trailing whitespace from script. Generate .xc and .xsc scripts if requested. * ldmain.c (main): Initialize link_info.combreloc and link_info.spare_dynamic_tags. * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define. (ld_options): Add --spare-dynamic-tags option. (parse_args): Likewise. * ld.texinfo: Document -z combreloc and -z nocombreloc. * ldint.texinfo: Document .xc and .xsc linker scripts. * NEWS: Add notes about -z combreloc and SHF_MERGE.
2001-08-23No corefile support for x86-bsdi systemsNick Clifton3-63/+76
2001-08-22Add missing commaNick Clifton2-1/+6
2001-08-21* coff-go32.c: Set the alignment of dwarf2 linkonce sections to 0.DJ Delorie3-1/+6
* coff-stgo32.c: Likewise.
2001-08-21* coff-go32.c: Make DWARF2 sections use an alignment of 0.DJ Delorie3-2/+11
* coff-sto32.c: Likewise.