aboutsummaryrefslogtreecommitdiff
path: root/bfd/config.bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-06-07 * Makefile.am (ALL_MACHINES): Add ms1 support.Aldy Hernandez1-0/+4
(ALL_MACHINES_CFILES): Same. (BFD32_BACKENDS): Same. (BFD32_BACKENDS_CFILES): Same. * Makefile.in: Regenerate. * archures.c (bfd_architecture): Add ms1 entries. Externalize bfd_ms1_arch. (bfd_archures_list): Add bfd_ms1_arch. * bfd-in2.h: Regenerate. * cpu-ms1.c: New file. * elf32-ms1.c: New file. * targets.c: Define extern of bfd_elf32_ms1_vec. Add bfd_elf32_ms1_vec to _bfd_target_vector. * configure.in: Add bfd_elf32_ms1_vec case. * configure: Regenerate. * config.bfd: Add ms1-*-elf to table.
2005-05-052005-05-05 Paul Brook <paul@codesourcery.com>Paul Brook1-1/+1
bfd/ * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks. * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need elf-vxworks.lo. * configure: Regenerate. * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo. (BFD32_BACKENDS_CFILES): Add elf-vxworks.c. (elf32-i386.lo): Depend on elf-vxworks.h. (elf-vxworks.lo): New rule. * Makefile.in: Regenerate. * elf-bfd.h (elf_backend_data): Update type of elf_backend_emit_relocs. (_bfd_elf_link_output_relocs): Update prototype. * elflink.c (_bfd_elf_link_output_relocs): Always use bed->elf_backend_emit_relocs when outputting relocations. * elfxx-target.h (elf_backend_emit_relocs): Default to _bfd_elf_link_output_relocs. * targets.c (bfd_elf32_i386_vxworks_vec): Declare. (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec. * elf32-i386.c: Add elf32-i386-vxworks target BFD. (elf_i386_plt0_entry): Remove padding. (elf_i386_pic_plt0_entry): Ditto. (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define. (PLT_NON_JUMP_SLOT_RELOCS): Define. (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and plt0_pad_byte fields. (elf_i386_link_hash_table_create): Zero them. (elf_i386_create_dynamic_sections): Create static relocation section. (allocate_dynrelocs): Allocate space for static PLT relocations. (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT symbols. Give PLT symbols function type. Don't strip PLT sections if we have exported symbols from them. (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on VxWorks. (elf_i386_finish_dynamic_sections): Allow different pad bytes. Add relocation for GOT location. Fill in PLT static relocations. (elf_i386_vxworks_link_hash_table_create): New function. (elf_i386_vxworks_link_output_symbol_hook): New function. * elf-vxworks.h: New file. gas/ * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS. gas/testsuite/ * gas/i386/i386.exp: Don't run divide test on vxworks. ld/ * Makefile.am: Add eelf_i386_vxworks. * Makefile.in: Regenerate. * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks. * emulparams/elf_i386_vxworks.sh: New file. * emulparams/vxworks.sh: New file. * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
2005-04-29 * config.bfd: Add h8300*-*-rtemscoff.Daniel Jacobowitz1-1/+6
Switch h8300*-*-rtems* to elf.
2005-03-23Accept any C library to accompany a GNU Linux implementation, not just the GNUNick Clifton1-14/+14
C library.
2005-03-15Add support for an x86_64-elf targetNick Clifton1-0/+4
2005-01-31Remove obsolete targetsNick Clifton1-3/+3
2005-01-062005-01-06 Paul Brook <paul@codesourcery.com>Paul Brook1-1/+5
bfd/ * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss. * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec. * configure: Regenerate. * elf32-arm.c: Add VxWorks target bfd. (USE_REL): Remove. (elf32_arm_link_hash_table): Add use_rel. (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate, elf32_arm_relocate_section): Replace USE_REL with runtime check. Correct offset calculation for RELA case. (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p, elf_backend_default_use_rela_p, elf_backend_rela_normal): Define. (elf32_arm_vxworks_link_hash_table_create): New function. * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration. (bfd_elf32_littlearm_vxworks_vec): Ditto. (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec. gas/ * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS. (md_begin): Handle TE_VXWORKS for FP defaults. (md_apply_fix3): Correct rela offsets. (elf32_arm_target_format): Add VxWorks targets. ld/ * Makefie.am: Add earmelf_vxworks. * Makefile.in: Regenerate. * configure.tgt: Make arm-*-vxworks a separate case. * emulparams/armelf_vxworks.sh: New function.
2004-12-16Add support for s390x-ibm-tpf targetNick Clifton1-0/+3
2004-11-08Add support fpr MAXQ processorNick Clifton1-0/+5
2004-11-04./Daniel Jacobowitz1-10/+9
* configure.in (arm-*-oabi*, thumb-*-oabi*): Remove. * configure: Regenerated. bfd/ * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace elfarm-nabi with elf32-arm. Remove elfarm-oabi. (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h dependency. * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list to a new removed list. Remove normal configuration stanzas. * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec) (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace elfarm-nabi.lo with elf32-arm.lo. (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove. * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h. * elf32-arm.h: Remove. * elfarm-oabi.c: Remove. * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec and bfd_elf32_littlearm_oabi_vec. * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated. gas/ * configure.in: Remove arm-*-oabi and thumb-*-oabi. * config/tc-arm.c (target_oabi): Delete. (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks. (arm_opts): Remove moabi. * doc/as.texinfo (Overview): Remove documentation of -moabi. * doc/c-arm.texi (ARM Options): Likewise. * configure: Regenerated. ld/ * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o. (earmelf_oabi.c): Remove rule. * configure.tgt: Remove arm-*-oabi and thumb-*-oabi. * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files. * Makefile.in: Regenerated.
2004-11-04 * config.bfd: Support crisv32-*-* like cris-*-*.Hans-Peter Nilsson1-1/+2
* archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32) (bfd_mach_cris_v10_v32): New macros. * cpu-cris.c: Tweak formatting. (get_compatible): New function. (N): New macro. (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New bfd_arch_info_type:s. (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach, get_compatible for member compatible and link bfd_cris_arch_v32 as next. * elf32-cris.c (cris_elf_pcrel_reloc) (cris_elf_set_mach_from_flags): New functions. (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL> <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc. (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct numbers for bfd_mach_cris_v32. (PLT_ENTRY_SIZE_V32): New macro. (elf_cris_plt0_entry): Drop last comma in initializer. (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32) (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New PLT initializers. (cris_elf_relocate_section): Change all "%B(%A)" messages to "%B, section %A". (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries. (elf_cris_finish_dynamic_sections): Similar. (elf_cris_adjust_dynamic_symbol): Similar. (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B, section %A". <switch with PIC relocs>: Emit error and return FALSE for bfd_mach_cris_v10_v32. <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>: Emit warning when generating textrel reloc. (cris_elf_object_p): Call cris_elf_set_mach_from_flags. (cris_elf_final_write_processing): Set flags according to mach. (cris_elf_print_private_bfd_data): Display EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32. (cris_elf_merge_private_bfd_data): Drop variables old_flags, new_flags. Don't call cris_elf_final_write_processing. Don't look at the actual elf header flags at all; use bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference in bfd_get_mach for ibfd and obfd and handle merging of compatible objects. (bfd_elf32_bfd_copy_private_bfd_data): Define. * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8) (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16) (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs. * bfd-in2.h, libbfd.h: Regenerate.
2004-11-02 * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.Daniel Jacobowitz1-0/+2
2004-10-23* config.bfd: Add mips64*-*-openbsd.Mark Kettenis1-0/+6
2004-10-20 * config.bfd: Set targ_underscore=yes for PE COFF targets.Danny Smith1-0/+1
2004-10-15 * config.bfd: Whitespace cleanup.Alan Modra1-36/+36
* Makefile.am: Run "make dep-am" * Makefile.in: Regenerate.
2004-10-08bfd/Daniel Jacobowitz1-1/+7
* config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*. * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function. (elf_backend_section_from_shdr): Define. binutils/ * readelf.c (get_x86_64_section_type_name): New function. (get_section_type_name): Use it. gas/ * config/tc-i386.c: Include "elf/x86-64.h". (i386_elf_section_type): New function. * config/tc-i386.h (md_elf_section_type): Define. (i386_elf_section_type): New prototype. gas/testsuite/ * gas/i386/i386.exp: Don't run divide test for targets where '/' is a comment. Run x86-64-unwind for 64-bit ELF targets. * gas/i386/x86-64-unwind.d, gas/i386/x86-64-unwind.s: New. include/ * elf/common.h (PT_SUNW_EH_FRAME): Define. * elf/x86-64.h (SHT_X86_64_UNWIND): Define. ld/ * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2004-09-03 * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.Mark Mitchell1-1/+5
* configure.in (bfd_elf32_bigarm_symbian_vec): Add it. (bfd_elf32_littlearm_symbian_vec): Likewise. * configure: Regenerated. * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags. * elf32-arm.h (PLT_HEADER_SIZE): Do not define. (PLT_ENTRY_SIZE): Likewise. (bfd_vma_elf32_arm_symbian_plt_entry): New variable. (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size, and symbian_p. (create_got_section): Don't create sections when generating BPABI objects. (elf32_arm_create_dynamic_sections): Tidy. (elf32_arm_link_hash_table_create): Set plt_header_size, plt_entry_size, and symbian_p. (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when generating BPABI objects. (allocate_dynrelocs): Use htab->plt_header_size, not PLT_HEADER_SIZE. Do not add to .got.plt when generating BPABI objects. (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs. * elfarm-nabi.c: Add SymbianOS target vectors. * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags. (_bfd_elf_link_create_dynamic_sections): Likewise. * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro. (elfNN_bed): Use it. * targets.c (bfd_elf32_bigarm_symbian_vec): New variable. (bfd_elf32_littlearm_symbian_vec): Likewise. (_bfd_target_vector): Add them. * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h. * Makefile.in: Regenerated. * configure.in: Set em for arm*-*-symbianelf*. * configure: Regenerated. * config/tc-arm.c (elf32_arm_target_format): Use Symbian target vectors when appropriate. * config/te-symbian.h: New file. * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o. (earmsymbian.c): New target. * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * emulparams/armsymbian.sh: New file.
2004-08-19 * config.bfd (arm*-*-symbianelf*): New target.Mark Mitchell1-1/+2
(arm*-*-eabi*): Likewise.
2004-07-29bfd:Jason Thorpe1-1/+5
* config.bfd (hppa*-*-netbsd*): Set targ_defvec to bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec to targ_selvecs. * configure.in (bfd_elf32_hppa_nbsd_vec): Add case. * configure: Regenerate. * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd" case that accepts OSABI=NetBSD and OSABI=SysV. (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to the base of .got or .data (if .got does not exist). (elf32_hppa_post_process_headers): For elf32-hppa-netbsd, set OSABI=NetBSD. (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case. (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case. * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration. (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec. gas: * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd" for TE_NetBSD. ld: * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2004-07-09Rename sh-symbian-elf toolchain to sh-*-symbianelfNick Clifton1-1/+1
2004-07-07Add new port: crx-elfNick Clifton1-0/+6
2004-07-06Add support for sh-symbian-elf targetNick Clifton1-0/+5
2004-07-02 * config.bfd: Add want64 to configuration target s390-*-linux*.Martin Schwidefsky1-0/+1
2004-06-26* config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.Mark Kettenis1-1/+1
2004-05-24Add support for an m88k-openbsd targetNick Clifton1-0/+4
2004-05-17Add PowerPC LynxOS supportNick Clifton1-4/+11
2004-05-13Change or32-rtems target from COFF to ELF formatNick Clifton1-2/+2
2004-05-06* configure.in (bfd_elf32_frvfdpic_vec): New.Alexandre Oliva1-1/+6
* configure: Rebuilt. * targets.c (bfd_elf32_frvfdpic_vec): New. * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default on the latter. * elf32-frv.c: Prefix all identifiers added for FDPIC support with frvfdpic instead of frv. Rearrange elf-target macros such that the FDPIC-specific ones are only defined for this new target vector. (bfd_elf32_frvfdpic_vec): Declare. (IS_FDPIC): New. (elf32_frv_relocate_section): Use it to enable segment checking and to control rofixup emission. Add output section vma to applied relocation in non-LOAD non-ALLOC sections. Use _bfd_error_handler for errors. (_frv_create_got_section): Create .rel.got and .rofixup only in FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the linker script. (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC. (elf32_frvfdpic_modify_segment_map): Likewise. (elf32_frv_finish_dynamic_sections): New, do-nothing. (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve error message if we miscompute the rofixup size. (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC. (frvfdpic_elf_encode_eh_address): Likewise. (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC. Record relocs only in FDPIC. Make sure _gp is defined for GPREL relocs. Reject unknown relocation types. (elf32_frv_object_p): Make sure target vector matches FDPIC bits. (frv_elf_merge_private_bfd_data): Likewise. (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as 0x4000 for newly-added elf32-frvfdpic.
2004-04-11 /bfd/ChangeLogThiemo Seufer1-10/+7
* config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets. * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3* targets amd aout_mips_big_vec, aout_mips_little_vec target vectors. * configure: Regenerate. /gas/ChangeLog * Makefile.am: Remove mips from aout targets. * Makefile.in: Regenerate. * configure.in: Remove mips-dec-bsd* target. * configure: Regenerate. /ld/ChangeLog * configure.host: Remove mips*-dec-bsd* target. * configure.tgt: Likewise.
2004-03-30Add (linker) support for CR16C processorNick Clifton1-0/+5
2004-03-27 Remove MPW support, no longer used.Stan Shebs1-1/+1
* config.bfd (powerpc-*-mpw*): Remove configuration. * mpw-config.in, mpw-make.sed: Remove files. * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
2004-03-17Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.Alan Modra1-2/+7
2004-03-15 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD isAlan Modra1-0/+1
selected.
2004-03-13* config.bfd: Add x86_64-*-openbsd*.Mark Kettenis1-1/+1
* configure.in (x86_64-*-openbsd*): Set COREFILE to netbsd-core.lo. * configure: Regenerate.
2004-01-062003-12-17 Alexandre Oliva <aoliva@redhat.com>Alexandre Oliva1-1/+1
* elf32-frv.c (_frv_osec_readonly_p): New. (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for undefweak symbol. (_frv_count_got_plt_entries): Adjust expected count accordingly. (elf32_frv_relocate_section): Likewise. Error out if attempting to emit rofixups or dynamic relocs in read-only segments. Use _bfd_elf_section_offset to adjust r_offsets in rofixups and dynamic relocations. 2003-12-12 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic relocations or fixups involving merged sections correctly. Avoid crash when undefined symbol is referenced by R_FRV_32 or R_FRV_FUNCDESC_VALUE. 2003-12-02 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of input section holding local symbol to addend of R_FRV_32 or R_FRV_FUNCDESC_VALUE dynamic relocation. 2003-11-27 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg. (elf32_frv_always_size_sections): Don't store pointer to __stacksize symbol in sec_info. (elf32_frv_modify_segment_map): Look it up here. 2003-11-26 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address of the lazy PLT entry, not only its offset, as the low word of a function descriptor. 2003-11-10 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize if a hash table entry already exists but is not a definition. 2003-11-05 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc. (_frv_add_rofixup): Don't inline. (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address for undefweak symbols. (elf32_frv_relocate_section): Avoid crash while computing relocation when linking with shared library. Only emit rofixups and dynamic relocations for alloc&load sections. Mark binaries with inter-segment relocations for relocation as a unit. (_frv_create_got_section): Rename .rofixup.got to .rofixup. (DEFAULT_STACK_SIZE): New. (_frv_count_got_plt_entries): Fix thinko in deciding whether to emit rofixups or dynamic relocs when linking dynamic non-PIE executables. (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and shared libs too. Reserve the last entry for the GOT pointer. (elf32_frv_finish_dynamic_sections): Emit it. (elf32_frv_always_size_sections): New. (elf32_frv_modify_segment_map): New. (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC sections. (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set. (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC. (elf_backend_always_size_sections): New. (elf_backend_modify_segment_map): New. 2003-10-31 Alexandre Oliva <aoliva@redhat.com> * config.bfd: Added frv-*-*linux*. * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for ABS section, instead of crashing. (elf32_frv_relocate_section): Don't crash before warning about different segments in non-PIC relocation. 2003-10-17 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24 relocs to undefweak symbols. (elf32_frv_relocate_section): Ditto for undefined symbols. 2003-10-06 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure gotfixup section was created. 2003-09-30 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_howto_table): Change GOT12, FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to complain_overflow_signed. * elf32-frv.c (_frv_add_rofixup): Do not error out if contents have not been allocated. (_frv_emit_got_relocs_plt_entries): Return non-void. Assert privfd only if dynamic sections were created. (elf32_frv_relocate_section): Compute gprel_segment, and use it for GPREL relocs. When linking relocatable FDPIC executables, emit warnings for relocations that would be illegal on PIE or shared libraries. Emit rofixup for R_FRV_32 only if input object is not FDPIC. (_frv_create_got_section): Define _gp symbol in the rofixup section. (elf32_frv_finish_dynamic_sections): If rofixups needed but dynamic sections missing, error out requesting -melf32frvfd. 2003-09-19 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange computation of addends from section and global or local symbol value. Change return type to bfd_boolean, and return a failure if a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a nonzero addend is required. (elf32_frv_relocate_section): Likewise. Print error for unsupported nonzero addends. 2003-09-18 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections, force everything local. (_frv_emit_got_relocs_plt_entries): Cope with NULL sec. * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup. (frv_gotfixup_section): New. (FRV_SYM_LOCAL): Accept undefweak and local common symbols. (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd and relocsfdv. (_frv_add_rofixup): New. (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and improve some ugly conditions. (elf32_frv_relocate_section): Likewise. Reject inter-segment relocations in fdpic. (_frv_create_got_section): Create .rofixup.got section. (struct _frv_dynamic_got_info): Added fixups. (_frv_count_got_plt_entries): Account in-GOT relocations into relocs32, relocsfd and relocsfdv. Account them into relocs or fixups, as appropriate. (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify sizing of gotrel. (elf32_frv_finish_dynamic_sections): Verify that the right number of relocations and fixups was generated. (elf32_frv_check_relocs): Compute relocs32, relocsfd and relocsfdv. * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL. (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function descriptor of a (formerly-)global symbol is local. (struct frv_pic_relocs_info): Adjust comments. (_frv_emit_got_relocs_plt_entries): Adjust. (elf32_frv_relocate_section): Likewise. (_frv_count_got_plt_entries): Likewise. * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global symbol's value to addend in the common preamble. Decay dynamic symbols to section+offset if they bind or call locally, for GOT and FUNCDESC_VALUE, respectively. (elf32_frv_relocate_section): Likewise. (elf32_frv_check_relocs): Don't register as dynamic symbols of internal or hidden visibility. 2003-09-17 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as argument, so as to not call _bfd_elf_rel_local_sym to compute it. (elf32_frv_relocate_section): Pass relocation addend in. Use original relocation addend to look up the got relocs/plt entries table. Do not call _bfd_elf_rel_local_sym. Don't error out when processing relocations that reference .scommon symbols. 2003-09-15 Alexandre Oliva <aoliva@redhat.com> Introduce support for dynamic linking. * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits. (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto, elf32_frv_rel_funcdesc_value_howto): New REL descriptors. (frv_reloc_type_lookup): Return REL howtos for executables and dynamic libraries. (frv_info_to_howto_rel): New. (struct frv_elf_link_hash_table): New. (frv_hash_table, frv_got_section, frv_gotrel_section, frv_plt_section, frv_pltrel_section, frv_relocs_info, frv_got_initial_offset, frv_plt_initial_offset): New macros. (frv_elf_link_hash_table_create): New. (struct frv_pic_relocs_info): New. (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New. (frv_pic_relocs_info_find): New. (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local): New. (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New. (_frv_add_dyn_reloc, _frv_osec_to_segment): New. (_frv_emit_got_relocs_plt_entries): New. (elf32_frv_relocate_section): Add support for dynamic linking. Handle new relocations. (_frv_create_got_section): New. (elf32_frv_create_dynamic_sections): New. (ELF_DYNAMIC_INTERPRETER): New. (struct _frv_dynamic_got_info): New. (_frv_count_got_plt_entries): New. (struct _frv_dynamic_got_plt_info): New. (_frv_compute_got_alloc_data): New. (_frv_get_got_entry, _frv_get_fd_entry): New. (_frv_assign_got_entries, _frv_assign_plt_entries): New. (_frv_resolve_final_relocs_info): New. (elf32_frv_size_dynamic_sections): New. (elf32_frv_finish_dynamic_sections): New. (elf32_frv_adjust_dynamic_symbol): New. (elf32_frv_finish_dynamic_symbol): New. (elf32_frv_check_relocs): Handle new relocs. Explain how the whole thing works. (elf_info_to_howto_rel): Define. (bfd_elf32_bfd_link_hash_table_create): Define. (elf_backend_create_dynamic_sections): Define. (elf_backend_adjust_dynamic_symbol): Define. (elf_backend_size_dynamic_sections): Define. (elf_backend_finish_dynamic_symbol): Define. (elf_backend_finish_dynamic_sections): Define. (elf_backend_want_got_sym): Define. (elf_backend_got_header_size): Define. (elf_backend_want_got_plt): Define. (elf_backend_plt_readonly): Define. (elf_backend_want_plt_sym): Define. (elf_backend_plt_header_size): Define. (elf_backend_may_use_rel_p): Define. (elf_backend_may_use_rela_p): Define. (elf_backend_default_use_rela_p): Define. 2003-08-08 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New. (frv_reloc_map): Map the corresponding BFD relocs to them. (frv_reloc_type_lookup): ... and back to BFD relocs. * reloc.c: New relocs. * bfd-in2.h, libbfd.h: Rebuilt. 2003-08-04 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO, R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI, R_FRV_FUNCDESC_GOTLO): New. (frv_reloc_map): Map the corresponding BFD relocs to them. (frv_reloc_type_lookup): ... and back to BFD relocs. * reloc.c: New relocs. * bfd-in2.h, libbfd.h: Rebuilt.
2004-01-02Add m68k-uclinux targetNick Clifton1-1/+1
2003-12-19Add support for m32r-linux target, including a RELA ABI and PIC.Nick Clifton1-0/+15
2003-12-03Add vax-linux-gnu targetNick Clifton1-1/+18
2003-10-30Remove separate vxworks stanza; merge withother common ELF triples.Nick Clifton1-10/+13
2003-10-06Change target of hppa-netbsd portNick Clifton1-2/+2
2003-10-06Add i386-knetbsd-gnu triplet.Nick Clifton1-1/+1
2003-09-03Add *kfreebsd-gnu configuration supportNick Clifton1-6/+6
2003-08-01Add code to catch obsolete configurations and warn about them unlessNick Clifton1-0/+14
--enable-obsolete is used. Use this to mark vax-vms port as obsolete.
2003-07-17Define ARM_COFF_BUGFIX for arm-wince-pe targetsNick Clifton1-1/+1
2003-07-16 * config.bfd, configure.host, configure.in: Remove ia64-aix support.Richard Henderson1-4/+0
* elfxx-ia64.c, targets.c: Likewise.
2003-07-12Set maxpagesize for NTO targets to 4kNick Clifton1-0/+1
2003-07-102001-09-12 Alexandre Oliva <aoliva@redhat.com>Alexandre Oliva1-0/+5
* elf32-am33lin.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. 2001-06-02 Nick Clifton <nickc@cambridge.redhat.com> * elf32-am33lin.c: Rename global functions. 2001-05-09 Alexandre Oliva <aoliva@redhat.com> * config.bfd (am33_2.0, am33_2.0-*-linux*): Added. * configure.in (bfd_elf32_am33lin_vec): Added. * Makefile.am (BFD32_BACKENDS): Added elf32-am33lin.lo. (elf32-am33lin.lo): List dependencies. * aclocal.m4, configure, Makefile.in: Rebuilt. * elf-m10300.c (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, ELF_ARCH, ELF_MACHINE_CODE, ELF_MAXPAGESIZE): Define only if ELF_ARCH was not defined before. (elf_symbol_leading_char): Define if not defined. * elf32-am33lin.c: Override the definitions above. * targets.c (bfd_elf32_am33lin_vec): New.
2003-06-20Add tic4x-*-rtems*.Nick Clifton1-1/+1
2003-06-13Add i386-netbsd-gnu target.Nick Clifton1-1/+1
2003-06-12(i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3]): New target (was ↵Nick Clifton1-4/+11
i[3-7]86-*-openbsd* before). (i[3-7]86-*-openbsd*): Change to use bfd_elf32_i386_vec. (vax-*-openbsd*): New target.