aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
AgeCommit message (Collapse)AuthorFilesLines
1997-02-28 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_labelIan Lance Taylor1-6/+12
to _bfd_is_local_label_name. (bfd_target): Likewise. * syms.c (bfd_is_local_label): Define as function, not macro. (bfd_is_local_name): Define. * libbfd.c (bfd_generic_is_local_label_name): Rename from bfd_generic_is_local_label, and take a string rather than a symbol. * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define. (_bfd_nosymbols_bfd_is_local_label_name): Define. (bfd_generic_is_local_label): Don't declare. (bfd_generic_is_local_label_name): Declare. * bfd-in2.h, libbfd.h: Rebuild. * All backends: Change local_label to local_label_name.
1997-02-21 * elf32-m32r.c: Rewrite to use ELF backend linker.David Edelsohn1-0/+4
Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns. Add small data area support (R_M32R_SDA16). * reloc.c: Document BFD_RELOC_M32R_SDA16. * bfd-in2.h,libbfd.h: Regenerated.
1997-02-20fix with make headersIan Lance Taylor1-0/+1
1997-02-20Since d10v is public now, remove all sanitization statementsMichael Meissner1-5/+0
1997-02-19Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+34
* Makefile.in, archures.c, config.bfd, configure.in, elf.c, reloc.c, targets.c: New target, elf-*-D30V. * bfd-in2.h, configure, libbfd.h: Rebuilt. * cpu-d30v.c, elf32-d30v.c: New files.
1997-02-18 * reloc.c (struct reloc_howto_struct): Fix typo in comment.Fred Fish1-1/+5
* bfd-in2.h: Regenerated. start-sanitize-tic80 * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function. (rtype2howto): Add function. (tic80_howto_table): Add. end-sanitize-tic80
1997-02-11 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.Ian Lance Taylor1-0/+3
(elf_mips16_gprel_howto): New static variable. (mips16_gprel_reloc): New static function. (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL. (mips_info_to_howto_rel): Handle R_MIPS16_GPREL. (mips_elf_relocate_section): Handle R_MIPS16_GPREL. * reloc.c (BFD_RELOC_MIPS16_GPREL): Define. * bfd-in2.h, libbfd.h: Rebuild.
1997-01-27 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.David Edelsohn1-1/+12
* bfd-in2.h, libbfd.h: Regenerated. * elf32-m32r.c: Add support for them.
1997-01-16 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type ofIan Lance Taylor1-2/+3
auxiliary_filters parameter to be const char * const *. Accept a NULL terminated array. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. (bfd_elf32_size_dynamic_sections): Update declaration. * bfd-in2.h: Rebuild.
1997-01-03fix copyrightsIan Lance Taylor1-1/+1
1997-01-03Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>Ian Lance Taylor1-0/+6
elf64-alpha multiple .got rewrite: * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry. (bfd_elf*_mkobject): Don't define here ... * elfxx-target.h: ... but rather here. Default always_size_sections hook to NULL. * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was what the #defines in elf-bfd.h transmuted it to anyway. * section.c: Add SEC_LINKER_CREATED flag. * bfd-in2.h: Rebuild. * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to relocation section flags. (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY to recognize generated bits. * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections): Likewise. * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections, mips_elf_create_compact_rel_section, mips_elf_create_got_section, mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise. * elf32-ppc.c (ppc_elf_create_linker_section, ppc_elf_size_dynamic_sections): Likewise. * elf32-sparc.c (elf32_sparc_check_relocs, elf32_sparc_size_dynamic_sections): Likewise. * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to section flags. (_bfd_elf_create_dynamic_sections): Likewise. (_bfd_elf_make_linker_section_rela): Likewise. * elflink.h (elf_link_create_dynamic_sections): Likewise. (bfd_elf,size_dynamic_sections): Call the always_size_sections hook. (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY to identify generated bits. (elf_link_input_bfd): Likewise. * elf64-alpha.c: Rewrite everything touching relocations.
1996-12-31 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): AddIan Lance Taylor1-4/+4
filter_shlib and auxiliary_filter_shlib parameters. * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and DT_FILTER. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. (bfd_elf64_size_dynamic_sections): Likewise. * bfd-in2.h: Rebuild.
1996-12-30 * archures.c (enum bfd_architecture): Add bfd_arch_tic80Fred Fish1-3/+3
for TI TMS320c80 (MVP). (bfd_archures_list): Add bfd_tic80_arch. * bfd-in2.h: Regenerate by running "make headers".
1996-12-28(Lay some groundwork for TIc80 port that will be filled in incrementally.)Fred Fish1-6/+20
* TODO: Correct a misspelling. start-sanitize-tic80 * coff-tic80.c: New file for TI TMS320C80 (MVP). * cpu-tic80.c: New file for TI TMS320C80 (MVP). * configure.in (case $vec): Add tic80coff_vec entry. * configure: Regenerate with autoconf. * archures.c (bfd_tic80_arch): Declare. * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80. * config.bfd (case ${targ}): Add tic80*-*-coff* target. * targets.c (tic80coff_vec): Add decl as extern bfd_target. (bfd_target_vector): Add tic80coff_vec entry. end-sanitize-tic80
1996-10-17 * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,Jeff Law1-0/+9
R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET. (elf_v850_howto_table): Corresponding changes. (elf_v850_reloc_map): Corresponding changes. * reloc.c: Add additional V850 relocations. * bfd-in2.h, libbfd.h: Rebuilt.
1996-10-14Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>Ian Lance Taylor1-0/+7
* reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a mistake to have reused the ECOFF LITERAL for ELF since they have different semantics. * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL. * bfd-in2.h, libbfd.h: Rebuild. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got section overflow. * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a dynamic relocation for an undefweak symbol when we are building a static executable.
1996-10-03Grrr. The mn10200 and mn10300 are _not_ similar enough to easily supportJeff Law1-1/+2
with a single generic configuration. So break them up into two different configurations. See the individual ChangeLogs for additional detail.
1996-10-03 * cpu-mn10x00.c, elf32-mn10x00.c: New files.Jeff Law1-11/+12
* Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o. (BFD32_BACKENDS): Similarly for elf32-mn10x00.o. (elf32-mn10x00.o): Add dependencies. * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00. (bfd_mn10x00_arch): Declare. (bfd_archures_list): Add bfd_mn10x00_arch. * config.bfd: Add mn10x00-*-*. * configure.in: Add bfd_elf32_mn10x00_vec. * elf.c (prep_headers): Handle bfd_arch_mn10x00. * targets.c (bfd_elf32_mn10x00_vec): Declare. (bfd_target_vector): Add bfd_elf32_mn10x00_vec. * bfd-in2.h, configure: Rebuilt. Stubbing out Matsushita support.
1996-09-12 * reloc.c: Add m32r relocs.David Edelsohn1-0/+16
* bfd-in2.h, libbfd.h: Rebuilt.
1996-09-10 * bfd-in2.h: Rebuilt after m32r changes.Jeff Law1-1/+9
1996-08-30 Add SH ELF support.Ian Lance Taylor1-0/+31
* elf32-sh.c: New file. * elf.c (prep_headers): Handle bfd_arch_sh. * elfcode.h (write_relocs): Handle absolute symbol. * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare. (_bfd_elf64_link_read_relocs): Declare. * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from elf_link_read_relocs. Make globally visible. Change all callers. (elf_link_input_bfd): Get external symbols from cache in symtab_hdr->contents. Get contents from cache in elf_section_data. * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not already defined. * reloc.c: Define BFD_RELOC_SH_* relocs. * libbfd-in.h (_bfd_sh_align_load_span): Declare. * coff-sh.c (sh_insns_conflict): Fix a return value. (_bfd_sh_align_load_span): New globally visible function, broken out of sh_align_load. (sh_align_load): Call _bfd_sh_align_load_span. (sh_swap_insns): Change relocs parameter to PTR. * bfd-in2.h, libbfd.h: Rebuild. * targets.c (bfd_elf32_sh_vec): Declare. (bfd_elf32_shl_vec): Declare. * config.bfd (sh-*-elf*): New target. * configure.in (bfd_elf32_sh_vec): New target vector. (bfd_elf32_shl_vec): New target vector. * configure: Rebuild. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add elf32-sh.o. (BFD32_BACKENDS_CFILES): Add elf32-sh.c. * elf.c (map_sections_to_segments): Check that LMA does not skip a page before checking D_PAGED.
1996-08-08Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>Ian Lance Taylor1-10/+2
* evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup. (evax_initialize): Remove evax_reloc_table. (evax_close_and_cleanup): Ditto. (reloc_nil): Ditto. (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64 entries. (evax_bfd_reloc_type_lookup): Ditto. * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set cooked_size == raw_size. * evax-emh.c (_bfd_evax_register_filename): Remove. * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands. * evax-misc.c (add_new_contents): Malloc section at full size. (_bfd_save_evax_section): Memcpy section contents directly. * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove. (evax_reloc_table): Remove. * hosts/alphavms.h (O_ACCMODE): Define if needed. * makefile.vms: Add better support for DEC C compilation Add evax.h dependencies * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc. (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove. (BFD_RELOC_ALPHA_BASEREG): Remove. * bfd-in2.h, libbfd.h: Rebuild.
1996-08-08 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:Stu Grossman1-1/+1
Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX include file. * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE isn't defined.
1996-07-31Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-0/+2
* reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL): Added, for internal use by the ARM gas. * libbfd.h: Rebuilt * bfd-in2.h: Rebuilt
1996-07-19 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONGIan Lance Taylor1-9/+21
(replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h to AC_OUTPUT call. * configure: Rebuild. * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@. (BFD_HOST_64_BIT): Define conditionally. (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined. (bfd_vma): Typedef as BFD_HOST_U_64_BIT. (symvalue, bfd_size_type): Likewise. * bfd-in2.h: Rebuild. * Makefile.in (do_clean): Remove bfd-tmp.h. (do_distclean): Remove bfd-in3.h. (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h. (bfd-in3.h): New target.
1996-07-18start-sanitize-d10vMartin Hunt1-0/+21
Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com> * Makefile.in (ALL_MACHINES): Add cpu-d10v.o (BFD32_BACKENDS) Add elf32-d10v.o * archures.c: Add bfd_d10v_arch. * bfd-in2.h: Add bfd_d10v_arch. * config.bfd (d10v-*-*): New target. * configure: (bfd_elf32_d10v_vec) New vector. * configure.in: (bfd_elf32_d10v_vec) New vector. * cpu-d10v.c: New file. * elf.c (prep_headers): Added case bfd_arch_d10v. * elf32-d10v.c: New file. * libbfd.h: Rebuild. * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L, BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define. * targets.c (bfd_elf32_d10v_vec): New vector. end-sanitize-d10v
1996-07-17remove sanitization accidentally inserted in last commitIan Lance Taylor1-2/+0
1996-07-17 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 andStu Grossman1-0/+2
bfd_mach_i386_i8086 machine types.
1996-07-15 * bfd-in2.h: Add bfd_mach_i386_i386 and bfd_mach_i386_i8086Stu Grossman1-0/+2
machine types.
1996-07-05No longer need to sanitize away h8/s stuff.Jeff Law1-2/+8
1996-06-18Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>Ian Lance Taylor1-5/+29
Added support for Alpha OpenVMS: * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files. * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files. * config.h-vms, makefile.vms: New files. * config.bfd (alpha-*-*vms*): New target. * configure.in (evax_alpha_vec): New target vector. * configure: Rebuild. * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define. (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define. * targets.c (bfd_target_evax_flavour): Define. (evax_alpha_vec): Declare. (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec if BFD64 is defined. * bfd-in2.h, libbfd.h: Rebuild. * Makefile.in: Rebuild dependencies. (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o, evax-emh.o, and evax-misc.o. (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c, evax-etir.c, evax-emh.c, and evax-misc.c. (HFILES): Add evax.h.
1996-04-02 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.David Edelsohn1-5/+8
(aout_32_sunos4_write_object_contents): Likewise. * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_sparc_{sparclet,sparclite}. * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define. (bfd_mach_sparc_v9_p): Update. * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite. * libaout.h (enum machine_type): Add M_SPARCLET. * sunos.c (MACHTYPE_OK): Define. * bfd-in2.h: Regenerated.
1996-03-29 * section.c (SEC_LINK_ONCE): Define.Ian Lance Taylor1-1/+29
(SEC_LINK_DUPLICATES): Define. (SEC_LINK_DUPLICATES_DISCARD): Define. (SEC_LINK_DUPLICATES_ONE_ONLY): Define. (SEC_LINK_DUPLICATES_SAME_SIZE): Define. (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define. * bfd-in2.h: Rebuild. * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT. (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set SEC_LINK_ONCE, and look through the symbol table for the setting for SEC_LINK_DUPLICATES. (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is set for a section, find the section symbol in the symbol table, and set the aux entry based on SEC_LINK_DUPLICATES. * coffgen.c (coff_print_symbol): Add a space before "checksum". * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. * coff-i386.c (i386coff_vec): Likewise. * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
1996-03-27Remove SEC_LINKER_MARK, and add a linker_mark bitfield to the asectionIan Lance Taylor1-6/+13
structure instead.
1996-03-27 * section.c (SEC_LINKER_MARK): Define.Ian Lance Taylor1-1/+11
* bfd-in2.h: Rebuild. * aoutx.h (NAME(aout,final_link)): Mark sections included in the link. (aout_link_input_bfd): Don't link unmarked sections. * cofflink.c (_bfd_coff_final_link): Mark sections included in the link. (_bfd_coff_link_input_bfd): Don't link unmarked sections. * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in the link. * elflink.h (elf_bfd_final_link): Mark sections included in the link. (elf_link_input_bfd): Don't link unmarked sections. * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included in the link. (xcoff_link_input_bfd): Don't link unmarked sections.
1996-02-21* bfd.c (tdata): Add netbsd_core_data.J.T. Conklin1-0/+2
* bfd-in2.h: Regenerated.
1996-02-14Add reloc.c entries MIPS_CALL_HI16/MIPS_CALL_LO16.Ian Lance Taylor1-0/+2
1996-02-13 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.Ian Lance Taylor1-1/+5
(BFD_RELOC_MIPS_GOT_LO16): Define. * bfd-in2.h, libbfd.h: Rebuild. * elf32-mips.c (mips_reloc_map): Map new relocs.
1996-02-06Rename XL to JX, and remove sanitization.Ian Lance Taylor1-3/+1
1996-02-05 * archures.c (bfd_mach_i960_hx): Define.Ian Lance Taylor1-0/+6
* bfd-in2.h: Rebuild. * cpu-i960.c (scan_960_mach): Accept machine "hx". (MATRIX): Expand entries for HX. (arch_info_struct): Add i960:hx entry. * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx. * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX. (coff_set_flags): Handle bfd_mach_i960_hx.
1996-01-24 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checkingDavid Edelsohn1-4/+2
of flags, only flags used are controlled by mach number. Bump up output file mach number to highest of input file mach numbers. (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1. (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa. Also, delete v8plus sanitization.
1996-01-23 * bfd-in2.h: Regenerated.David Edelsohn1-0/+2
1996-01-22 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.David Edelsohn1-2/+7
start-sanitize-v8plus (bfd_mach_sparc_{v8plus,v8plusa}): Define. end-sanitize-v8plus (bfd_mach_sparc_v9a): Define. * bfd-in2.h: Regenerated. * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to bfd_mach_sparc_v9. * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec to bfd_elf32_sparc_vec. * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info. start-sanitize-v8plus Add v8plus{,a} support. end-sanitize-v8plus Add v9a support. start-sanitize-v8plus * elf32-sparc.h: #include "elf/sparc.h". (elf32_sparc_set_private_flags, elf32_sparc_copy_private_bfd_data, elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p, elf32_sparc_final_write_processing): New functions. (bfd_elf32_bfd_set_private_flags, bfd_elf32_bfd_copy_private_bfd_data, bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p, elf_backend_final_write_processing): Define. end-sanitize-v8plus
1996-01-15Add new PPC relocationsMichael Meissner1-0/+16
1996-01-11Add support for SHT_ORDERED and SHF_EXCLUDEMichael Meissner1-1/+11
1996-01-09Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>Ian Lance Taylor1-10/+25
* coff-alpha.c (alpha_relocate_section): During final link, allow output .lita section to be bigger than 64k by adjusting gp value on a per-input section basis. * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning field. (struct ecoff_section_tdata): Add gp field. Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com> Handle Alpha ECOFF changes in OSF/1 3.2. * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos field. * coff-alpha.c: Include "aout/ar.h". (alpha_ecoff_get_relocated_section_contents): Don't require an ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1 3.2 doesn't generate one. (alpha_relocate_section): Likewise. (alpha_ecoff_slurp_armap): Define. (alpha_ecoff_slurp_extended_name_table): Define. (alpha_ecoff_construct_extended_name_table): Define. (alpha_ecoff_truncate_arname): Define. (alpha_ecoff_write_armap): Define. (alpha_ecoff_generic_stat_arch_elt): Define. (alpha_ecoff_update_armap_timestamp): Define. (ARFZMAG): Define. (alpha_ecoff_read_ar_hdr): New static function. (alpha_ecoff_get_elt_at_filepos): New static function. (alpha_ecoff_openr_next_archived_file): New static function. (alpha_ecoff_get_elt_at_index): New static function. (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field. (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from _bfd_ecoff to alpha_ecoff. * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos field from backend structure, rather than always calling _bfd_get_elt_at_filepos. * coff-mips.c (mips_ecoff_backend_data): Initialize get_elt_at_filepos field. * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied from _bfd_generic_read_ar_hdr with minor changes. (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag. * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare. * libbfd.h: Rebuild. * bfd-in.h (BFD_IN_MEMORY): Define. * libbfd-in.h (struct bfd_in_memory): Define. * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag. (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file. (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set. (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag. * bfd.c (struct _bfd): Change iostream field from char * to PTR. (bfd_get_size): Handle BFD_IN_MEMORY flag. * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files. (bfd_open_file): Cast to PTR, not char *, when setting iostream. (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set. * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting iostream. (bfd_openstreamr): Likewise. * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if BFD_IN_MEMORY is not set. * riscix.c (riscix_some_aout_object_p): Likewise. * bfd-in2.h, libbfd.h: Rebuild. * targets.c (bfd_target): Add _bfd_get_elt_at_index field. (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index. (bfd_get_elt_at_index): Define. * archive.c (_bfd_generic_get_elt_at_index): Rename from bfd_get_elt_at_index. Change index parameter from int to symindex. * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare. (_bfd_noarchive_get_elt_at_index): Define. (_bfd_archive_bsd_get_elt_at_index): Define. (_bfd_archive_coff_get_elt_at_index): Define. * bfd-in2.h, libbfd.h: Rebuild. * aout-target.h (MY_get_elt_at_index): Define if not defined. * coff-rs6000.c (xcoff_get_elt_at_index): Define. * ieee.c (ieee_get_elt_at_index): Define. * libecoff.h (_bfd_ecoff_get_elt_at_index): Define. * oasys.c (oasys_get_elt_at_index): Define. * som.c (som_get_elt_at_index): Define.
1995-12-07 * xcofflink.c (struct xcoff_loader_info): Add export_definedsIan Lance Taylor1-1/+1
field. (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter. (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT for all symbols. * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. * bfd-in2.h: Rebuild.
1995-12-02 * ihex.c: New file; support for Intel Hex format.Ian Lance Taylor1-0/+2
* targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour. (ihex_vec): Declare. (bfd_target_vector): Always include ihex_vec. * bfd.c (struct _bfd): Add ihex_data field to tdata union. * Makefile.in: Rebuild dependencies. (BFD_LIBS): Add ihex.o (BFD_LIBS_CFILES): Add ihex.c. * bfd-in2.h: Rebuild.
1995-12-01 * bfd.c (bfd_record_phdr): New function.Ian Lance Taylor1-2/+6
* bfd-in.h (bfd_record_phdr): Declare. * bfd_in2.h: Rebuild.
1995-11-08 * libbfd.c (bfd_get_file_window): Change writable parameter fromIan Lance Taylor1-1/+1
int to boolean; update all callers. Pass MAP_SHARED if not writable--it's required on Solaris. Cast fprintf argument to avoid warning. * bfd-in.h (bfd_get_file_window): Update declaration. * bfd-in2.h: Rebuild. * aoutx.h: Update calls to bfd_get_file_window.