aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2001-09-14Fix bug emitting R_SPARC_UA32 relocs into shared objectsNick Clifton2-1/+6
2001-09-14Add support for arm-openbsd targetNick Clifton2-1/+5
2001-09-14 /bfd/ChangeLogThiemo Seufer2-7/+20
* config.bfd: Change machine triplets from mips*el*-* to mips*el-*. Add support for mips64. /ChangeLog * config.sub: Change machine triplets from mipsel*-* to mips*el-*. Add support for mips64. /gas/ChangeLog * configure.in: Change machine triplets from mips-*-linux-gnu* to mips*-*-linux*.
2001-09-13* elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.Alexandre Oliva2-0/+5
2001-09-13* elf.c (prep_headers): Get the machine code from the elfAlexandre Oliva1-1/+2
backend data. * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. * elf-arc.c (arc_elf_final_write_processing): Don't override e_machine, it's now properly set in prep_headers. * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and EM_AVR_OLD. (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
2001-09-12* elf.c (prep_headers): Get the machine code from the elfAlexandre Oliva11-120/+56
backend data. * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. * elf-arc.c (arc_elf_final_write_processing): Don't override e_machine, it's now properly set in prep_headers. * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and EM_AVR_OLD. (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
2001-09-11 * elf64-alpha.c (elf64_alpha_section_flags): New.Richard Henderson2-1/+24
(elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
2001-09-11 * elf64-alpha.c (elf64_alpha_relocate_section): Do notRichard Henderson2-3/+16
apply HINT relocations against dynamic symbols.
2001-09-112001-09-11 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* inker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
2001-09-09 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.Richard Henderson2-438/+7
2001-09-09 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdispRichard Henderson2-8/+35
following a call to a near function.
2001-09-09 * elf64-alpha.c (elf64_alpha_relocate_section): Soft failRichard Henderson2-3/+24
relocation errors. Fail gp-relative relocations against dynamic symbols.
2001-09-08 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULARAlan Modra3-6813/+6833
as well as DEF_DYNAMIC in test for avoided copy relocs. (allocate_plt_and_got_and_discard_relocs): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. (allocate_plt_and_got_and_discard_relocs): Likewise.
2001-09-07 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handlingThiemo Seufer2-1/+6
of R_MIPS_PC16. * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL. (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded PIC, BFD_RELOC_16_PCREL for the rest. (mips_ip): Likewise. (md_pcrel_from): return the right offset for the differently shifted pcrel relocs. (md_apply_fix): Handle BFD_RELOC_16_PCREL. * gas/mips/beq.d: Check branches to external labels. * gas/mips/beq.s: Likewise. * gas/mips/bge.d: Likewise. * gas/mips/bge.s: Likewise. * gas/mips/bgeu.d: Likewise. * gas/mips/bgeu.s: Likewise. * gas/mips/blt.d: Likewise. * gas/mips/blt.s: Likewise. * gas/mips/bltu.d: Likewise. * gas/mips/bltu.s: Likewise. * gas/mips/elempic.d: Switch from R_MIPS_GNU_REL16_S2 to R_MIPS_PC16. * gas/mips/empic.d: Likewise. * gas/mips/empic.s: Likewise. * gas/mips/telempic.d: Likewise. * gas/mips/tempic.d: Likewise.
2001-09-06 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTOThiemo Seufer2-6953/+6908
definitions. (mips_elf64_howto_table_rel): Likewise.
2001-09-06Fix import symbols for AIX.Tom Rix5-14/+48
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