start-sanitize-v850 Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com) * elf32-v850.c (bfd_elf3_v850_reloc): New function for handling V850 specific relocs. (elf_v850_howto_table): Use the new function for some relocations. Twiddle masks & shifts for some relocs. Set partial_inplace where needed. end-sanitize-v850 Mon Sep 2 12:12:34 1996 Ian Lance Taylor * cpu-mips.c: Add an explicit mips:3000 entry, and change the default architecture to a machine number of 0. * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number for E_MIPS_ARCH_1. (_bfd_mips_elf_merge_private_bfd_data): If the machine number of the output BFD is the default, set it from the first input BFD. start-sanitize-v850 Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com) * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs insert at bitpos zero. The HI16 relocs are shifted right by 16 bits. Fix src_mask for all relocs. (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is little endian! (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little endian! end-sanitize-v850 Sun Sep 1 15:41:08 1996 Ian Lance Taylor * rs6000-core.c (rs6000coff_core_file_matches_executable_p): Rewrite to use BFD file read routines and to avoid using a fixed length for the file name. start-sanitize-v850 Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com) * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}. (elf_v850_howto_table): Add support for R_V850_{32,16,8}. (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8} to R_V850_{32,16,8}. Fri Aug 30 18:06:04 1996 J.T. Conklin * elf32-v850.c (reloc_type): Add R_V850_HI16_S. (elf_v850_howto_table): Add info for HI16_S reloc. (v850_reloc_map): Add HI_16_S reloc. * reloc.c: Define BFD_RELOC_V850_* relocs. end-sanitize-v850 Fri Aug 30 11:49:19 1996 Ian Lance Taylor Add SH ELF support. * 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. * ihex.c (ihex_scan): Removed unnecessary extbase variable. (ihex_write_object_contents): Remove extbase; always use segbase instead. Thu Aug 29 16:52:17 1996 Michael Meissner * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. * configure.host (i[345]86-*-*): Ditto. * config.bfd (i[345]86-*-*): Ditto. * configure: Regenerate. * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86 elf. Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com) * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument. * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype. * som.c (hppa_som_gen_reloc_type): Add new argument. If we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that will have an ST_CODE type, change the symbol's type to ST_DATA. * som.c (hppa_som_gen_reloc_type): Update prototype. Tue Aug 27 00:12:22 1996 Ian Lance Taylor * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible. (mips_elf_size_dynamic_sections): Don't require .got to exist. (mips_elf_finish_dynamic_sections): Likewise. Thu Aug 22 10:54:38 1996 Ian Lance Taylor * configure.host (HLDENV): New variable to set. Set it for *-*-sysv4*, since those linkers may not support -R but they always support LD_RUN_PATH. * libieee.h (NSECTIONS): Don't define. (ieee_data_struct): Change section_table to asection **. Add section_table_size. * ieee.c (get_section_entry): If the table isn't big enough, make it bigger. (ieee_slurp_sections): Remove assertion about number of sections. (ieee_object_p): Adjust initialization of ieee to match changes to the structure. * xcofflink.c (xcoff_mark): Don't copy relocs for undefined symbols merely because we are generating a shared library. (xcoff_build_ldsyms): Don't set up global linkage code for an undefined symbol merely because we are generating a shared library. start-sanitize-v850 Tue Aug 20 15:06:05 1996 J.T. Conklin * Makefile.in (ALL_MACHINES): Add cpu-v850.o. (BFD32_BACKENDS) Add elf32-v850.o. * archures.c: Add bfd_v850_arch. * bfd-in2.h: Add bfd_v850_arch. * config.bfd (v850-*-*): New target. * configure: (bfd_elf32_v850_vec) New vector. * configure.in: (bfd_elf32_v850_vec) New vector. * cpu-v850.c: New file. * elf.c (prep_headers): Added case bfd_arch_v850. * elf32-v850.c: New file. * targets.c (bfd_elf32_v850_vec): New vector. end-sanitize-v850 Fri Aug 16 16:25:35 1996 Ian Lance Taylor * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define a function code symbol for an XMC_XO symbol. Thu Aug 15 12:33:29 1996 Stan Shebs * mpw-config.in: Update editing of autoconf vars to reflect Jul 18 configure.in change. * mpw-make.sed: Update editing of include pathnames to be more general, add @DASH_C_FLAG@ to explicit compile rule edit. Thu Aug 15 10:35:13 1996 Richard Henderson * elf64-alpha.c (elf64_alpha_output_extsym): The section from which to offset to get the .plt entry address is ".plt". Thu Aug 15 16:40:30 1996 James G. Smith * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM, BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET): Added, for internal use by the ARM gas. * libbfd.h: Rebuilt * bfd-in2.h: Rebuilt Wed Aug 14 17:02:09 1996 Richard Henderson * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo in section dynidx start. Tue Aug 13 14:35:38 1996 Ian Lance Taylor * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an optimization for g++. Tue Aug 13 17:04:40 1996 Michael Meissner * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has the -mrelocatable-lib bit set and the other doesn't, clear the -mrelocatable-lib bit in the header. Sat Aug 10 22:59:17 1996 Ian Lance Taylor * elflink.h (elf_link_add_object_symbols): Do not resolve a common symbol against a STT_FUNC symbol in a shared library. Fri Aug 9 12:44:57 1996 Ian Lance Taylor * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor symbol is found, automatically define the corresponding function code. * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux if sym.n_numaux is not zero. (_bfd_coff_link_input_bfd): Permit the symbol and the hash table entry to disagree about the number of aux entries if the symbol has zero. * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn section if it might be needed, not just if info->shared. (mips_elf_adjust_dynamic_symbol): Make room for a null element at the start of .rel.dyn if we are going to use it. (mips_elf_finish_dynamic_sections): Only clear the first element of .rel.dyn if the size is greater than zero. Thu Aug 8 16:24:55 1996 Ian Lance Taylor * xcofflink.c (xcoff_link_input_bfd): If we already called the undefined_symbol callback for a symbol, then don't issue any more warnings about loader relocs. (_bfd_ppc_xcoff_relocate_section): Don't do any further processing after calling the undefined_symbol callback. * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define. (xcoff_link_add_symbols): Permit multiple definitions of a symbol as the AIX linker seems to do. Thu Aug 8 12:21:56 1996 Klaus Kaempf * 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. Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com) * archive.c (bsd_write_armap): Ifdef around calls to getuid and getgid if _WIN32 is defined. * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef. Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com) * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c: 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. Wed Aug 7 14:11:44 1996 Philippe De Muyter * configure.in: Call BFD_NEEDED_DECLARATION on strstr and realloc. * acconfig.h (NEED_DECLARATION_STRSTR): New macro. (NEED_DECLARATION_REALLOC): New macro. * configure, config.in: Rebuild. * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR. (realloc): Declare if NEED_DECLARATION_REALLOC. * aclocal.m4 (BFD_NEED_DECLARATION): Include or if they exist. * ieee.c (ieee_set_section_contents): Cast bfd_alloc return. Wed Aug 7 12:12:03 1996 Ian Lance Taylor * cpu-i386.c (i8086_arch): Architecture info for the i8086. Based on patches from Eric Valette : * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC, LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8. (elf_howto_table): Add entries for new relocs. (elf_i386_reloc_type_lookup): Handle new relocs. (elf_i386_info_to_howto): Just call abort. (elf_i386_info_to_howto_rel): Check that the reloc type is valid. (elf_i386_relocate_section): Likewise. start-sanitize-d10v Tue Aug 6 12:54:56 1996 Martin M. Hunt * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32. end-sanitize-d10v Mon Aug 5 13:42:41 1996 Ian Lance Taylor * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section, only get the LMA from the phdr if they are in the same part of the file. * elf.c (map_sections_to_segments): Rewrite tests for starting a new segment to make them more comprehensible. If the relationship between the LMA and the VMA changed, start a new segment. Don't check dynsec when deciding whether to start a new segment for a writeable section; -N will now handle this. Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com) * libhppa.h: Remove "esel" changes. Not the right approach. * som.c: Corresponding changes. (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols which don't have a SOM symbol type associated with them. Reverses a 1994 change. Wed Jul 31 15:50:55 1996 Ian Lance Taylor Make ld -N more reasonable for ELF: * elf.c (map_sections_to_segments): If D_PAGED is not set, set phdr_in_section to false, and always use a single load segment. (elf_sort_sections): Sort sections by LMA after VMA. (assign_file_positions_for_segments): If D_PAGED is not set, don't align to maxpagesize. (assign_file_positions_except_relocs): Likewise. * elfcode.h (elf_object_p): If a section is loaded but not page aligned, clear D_PAGED. Wed Jul 31 15:00:12 1996 James G. Smith * 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 Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com) * libhppa.h (R_HPPA_ESEL): New field selector. (e_esel): Similarly. * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel, then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream. (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR. Tue Jul 30 13:31:27 1996 Ian Lance Taylor * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular archive search before looking for stripped dynamic objects. Fri Jul 26 17:51:39 1996 Ian Lance Taylor * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined symbol a warning rather than an error. Wed Jul 24 12:02:53 1996 Ian Lance Taylor * elf.c (assign_file_positions_for_segments): Track the virtual memory position separately from the file position, and use it to compute the alignment adjustment. start-sanitize-d10v Tue Jul 23 10:43:31 1996 Martin M. Hunt * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long" and fixed mask on R_D10V_10_PCREL_L. end-sanitize-d10v Mon Jul 22 15:30:30 1996 Ian Lance Taylor * elf64-mips.c: Include "aout/ar.h". (mips_elf64_slurp_armap): New static function. (mips_elf64_write_armap): New static function. (bfd_elf64_archive_*): Define. * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined. Use instead of bfd_generic_archive_p. (bfd_elfNN_write_archive_contents): Define if not defined. Use instead of _bfd_write_archive_contents. (bfd_elfNN_mkdarchive): Define if not defined. Use instead of _bfd_generic_mkarchive. (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than _bfd_archive_coff. (TARGET_LITTLE_SYM): Likewise. * archive.c (bfd_slurp_armap): Check for and reject an archive map name of /SYM64/. * Makefile.in: Rebuild dependencies. * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS sections. (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS sections. (_bfd_mips_elf_fake_sections): Likewise. * libecoff.h (ecoff_data_type): Add rdata_in_text field. * ecoff.c (ecoff_compute_section_file_positions): Copy rdata_in_text from backend info to tdata. Clear it if any data section comes before .rdata. (_bfd_ecoff_write_object_contents): Use rdata_in_text field in tdata rather than backend info. Fri Jul 19 18:15:51 1996 Ian Lance Taylor * configure.in: Fix test for whether a compiler has a 64 bit type. From Jim Wilson . Thu Jul 18 15:39:10 1996 Ian Lance Taylor * configure.host (mips-sgi-irix6*): New host. * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG (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. * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From Andrew Gierth . * configure.host: Set INSTALL_SHLIB. * configure.in: Call AC_SUBST (INSTALL_SHLIB). * configure: Rebuild. * Makefile.in (install): Use @INSTALL_SHLIB@. * config.bfd (mips*-*-irix6*): New target. * configure.host: Handle Irix 6 shared library like Irix 5. * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD symbol for a magic name. (xcoff_link_input_bfd): Don't change the reloc symbol for an XMC_TD symbol. (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an XMC_TD symbol. Thu Jul 18 11:36:31 1996 Stan Shebs * mpw-config.in: Add ELF support to mips config, create the elf32-target.h file in the object dir. * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines. Wed Jul 17 18:02:32 1996 Kim Knuttila * coff-ppc.c: Redid debug scheme - numerous fprintf's gone. Also removed most abort calls, in favor of using bfd reporting. start-sanitize-d10v Wed Jul 17 14:51:52 1996 Martin M. Hunt * 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 Wed Jul 17 10:58:55 1996 Kim Knuttila * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com) * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and bfd_mach_i386_i8086 machine types. Wed Jul 10 12:42:56 1996 Ian Lance Taylor * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT and _FINI sections. Wed Jul 10 11:18:21 1996 Richard Henderson * coffcode.h (coff_set_section_contents): A/UX does not require special handling of the _LIB section. Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com) * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct value for R_RELBYTE. * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks" array if one was allocated. Tue Jul 9 12:21:54 1996 Ian Lance Taylor From Kazumoto Kojima : * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields use_rld_obj_head and rld_value. (mips_elf_link_hash_table_create): Initialize new fields. (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as dynamic. (mips_elf_create_dynamic_sections): Create .rld_map section. If __rld_obj_head symbol not seen, create an __rld_map symbol. (mips_elf_size_dynamic_sections): Make space in .rld_map section. Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry. (mips_elf_finish_dynamic_symbol): Save value of __rld_map or __rld_obj_head symbol. (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP. Mon Jul 8 16:18:03 1996 Ian Lance Taylor * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry. * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use ppc_elf_addr16_ha_reloc. (ppc_elf_addr16_ha_reloc): New static function. * coff-mips.c (struct mips_hi): Define. (mips_refhi_list): New static variable. (mips_refhi_addr, mips_refhi_addend): Remove. (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs. (mips_reflo_reloc): Process mips_refhi_list. (mips_relhi_list): New static variable. (mips_relhi_addr, mips_relhi_addend): Remove. (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs. (mips_rello_reloc): Process mips_relhi_list. (mips_relocate_section): Permit an arbitrary number of REFHI or RELHI relocs before the associated REFLO or RELLO reloc. Fri Jul 5 19:27:49 1996 Ian Lance Taylor * aout-target.h (MY(callback)): Set reloc_count fields. Thu Jul 4 12:00:37 1996 Ian Lance Taylor * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic sections unless this is a SunOS link. * VERSION: Set to 2.7.1. * Released binutils 2.7. Wed Jul 3 14:59:47 1996 Ian Lance Taylor * i386aout.c: Include "aout/aout64.h". (i386aout_write_object_contents): New static function. (MY_write_object_contents): Define. * netbsd.h (MY(write_object_contents)): Make sure that adjust_sizes_and_vmas is called before fiddling with the magic number. Tue Jul 2 23:30:39 1996 Ian Lance Taylor * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo. Sun Jun 30 13:34:33 1996 Ian Lance Taylor * libbfd-in.h (itos, stoi): Don't define. * libbfd.h: Rebuild. * i386lynx.c (KEEPIT): Define as udata.i. (NAME(lynx,swap_std_reloc_out)): Don't use stoi. (NAME(lynx,swap_ext_reloc_out)): Likewise. * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than flags. Don't use stoi. * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000. * elf.c (map_sections_to_segments): Don't start a new segment for a writable section if it's on the same page as the previous segment. Reset the writable variable for a readonly section. Sat Jun 29 16:18:51 1996 Kim Knuttila * peicode.h (coff_swap_aouthdr_in): Missing initializations of first_thunk_address, thunk_size, and import_table_size. * peicode.h: Improved some diagnostics regarding edata sections. * coff-ppc.c (coff_ppc_relocate_section): Earlier error check on IMGLUE relocs. (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's. (TARGET_LITTLE_SYM): Added missing D_PAGED. Fri Jun 28 13:48:45 1996 Ian Lance Taylor * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol with XCOFF_DEF_DYNAMIC set is really defined. (xcoff_link_check_dynamic_ar_symbols): Likewise. (xcoff_link_add_symbols): Only create special sections if using an XCOFF hash table. * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like aixcoff-rs6000. (bfd_install_relocation): Likewise. Fri Jun 28 11:17:00 1996 Richard Henderson * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags field. (ALPHA_ELF_LINK_HASH_LU_ADDR): Define. (ALPHA_ELF_LINK_HASH_LU_MEM): Define. (ALPHA_ELF_LINK_HASH_LU_FUNC): Define. (elf64_alpha_link_hash_newfunc): Initialize flags field. (elf64_alpha_check_relocs): Record types of LITUSE entries that are found for LITERAL relocs. (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address taken, we cannot generate a .plt entry for the symbol. Thu Jun 27 11:24:29 1996 Ian Lance Taylor * configure.in: Add AC_ISC_POSIX, and check for setitimer and sysconf functions (for gprof). * configure, config.in: Rebuild. Wed Jun 26 16:29:02 1996 Ian Lance Taylor * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in an archive if it has a map. If the object file has the wrong xvec, reject it. * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a BRADDR, SREL16, SREL32, or SREL64 reloc against an external symbol. (alpha_relocate_section): Likewise. * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof. (coff_swap_filehdr_out): Use FILHSZ, not sizeof. (coff_swap_sym_out): Use SYMESZ, not sizeof. (coff_swap_aux_out): Use AUXESZ, not sizeof. (coff_swap_lineno_out): Use LINESZ, not sizeof. (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof. (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof. * peicode.h: Corresponding changes. Tue Jun 25 15:28:34 1996 Michael Meissner * elflink.h (elf_create_pointer_linker_section): Comment out code dealing with making GOT pointers negative of the GOT symbol for now. Tue Jun 25 11:41:24 1996 Richard Henderson * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't increment the .rela.plt size until after we're done creating the .plt entry. (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the .rela.plt offset directly rather than calculating it. Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir): Use autoconf-set values. * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values. (docdir): Deleted. * configure.in (AC_PREREQ): autoconf v2.5 or higher. * configure: Rebuilt. Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com) * som.c (som_write_fixups): Fix typo in R_END_TRY for exception handling code > 1k away. Mon Jun 24 18:41:06 1996 Michael Meissner * elflink.h (elf_create_pointer_linker_section): If DEBUG is defined, output whenever the symbol is updated. Mon Jun 24 17:58:12 1996 Jouke Numan * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC section to 0 if user_set_vma is set. * elflink.h (elf_bfd_final_link): Likewise. Sun Jun 23 20:42:51 1996 Doug Evans Partially undo patch of Jun 20. * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE. (coff_compute_section_file_positions): Likewise. (coff_write_object_contents): Likewise. Re-add deleted code, but use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE. * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef. Fri Jun 21 17:38:15 1996 Joel Sherrill * config.bfd: Add support for *-*-rtems* configurations. Fri Jun 21 15:19:59 1996 Ian Lance Taylor * elf.c (prep_headers): Add bfd_arch_alpha case. Fri Jun 21 12:35:27 1996 Richard Henderson * elf64-alpha.c: New file. * config.bfd (alpha-*-linuxecoff*): New target. (alpha-*-linux*, alpha-*-elf*): New targets. * configure.in (bfd_elf64_alpha_vec): New vector. * configure: Rebuild. * targets.c (bfd_elf64_alpha_vec): Declare. (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64. * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define. * bfd-in2.h, libbfd.h: Rebuild. * Makefile.in: Rebuild dependencies. (BFD64_BACKENDS): Add elf64-alpha.o. (BFD64_BACKENDS_CFILES): Add elf64-alpha.c. Thu Jun 20 18:14:25 1996 Ian Lance Taylor * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather than relying on a right shift of 32. Thu Jun 20 11:00:57 1996 Doug Evans * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE ifdef to COFF_WITH_PE. (coff_compute_section_file_positions): Likewise. (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE. * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete. * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef COFF_IMAGE_WITH_PE, always include. * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0. Wed Jun 19 11:37:52 1996 Ian Lance Taylor * elf.c (map_sections_to_segments): Fix up the test for -Ttext to approximate the correct answer if SIZEOF_HEADERS was not used. * binary.c (binary_set_section_contents): Set section file position based on LMA rather than VMA. Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 * linker.c (_bfd_generic_link_output_symbols): Don't output any symbols if info->strip == strip_all. Tue Jun 18 15:17:36 1996 Jeffrey A. Law * coff-h8300.c: Remove #if 0 code. (compatable): Don't allow mixing/matching of different architectures. * archures.c (bfd_mach_h8300s): Add. * bfd-in2.h: Rebuilt. * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too. (BADMAG): Likewise. (h8300_reloc16_estimate): Likewise. (h8300_reloc16_extra_cases): Likewise. (h8300_bfd_link_add_symbols): Likewise. * coffcode.h (coff_set_arch_mach_hook): Likewise. (coff_set_flags): Likewise. * cpu-h8300.c (h8300_scan): Likewise. Add H8/S to bfd_h8300_arch list. Tue Jun 18 14:42:58 1996 Klaus Kaempf 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. Tue Jun 18 13:54:18 1996 Ian Lance Taylor * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const pointer. (h8300_bfd_link_add_symbols): Likewise. Mon Jun 17 10:06:50 1996 Jeffrey A. Law * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define. * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY. Mon Jun 17 12:49:11 1996 Ian Lance Taylor * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were created. (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and R_MIPS_32 relocs if creating a shared library. Thu Jun 13 20:14:51 1996 Doug Evans * peicode.h (add_data_entry): Use pei_section_data rather than _cooked_size. Corresponds to May 13 change in coffcode.h. Thu Jun 13 10:23:40 1996 Ian Lance Taylor * cofflink.c (_bfd_coff_final_link): Handle long section names. * coffcode.h (coff_write_object_contents): If there are long section names, always set the f_symptr field, even if there are no symbols. * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field if there are no symbols. * coffgen.c (make_a_section_from_file): Check return value of _bfd_coff_read_string_table. (coff_real_object_p): Check return value of make_a_section_from_file. (_bfd_coff_read_string_table): Check that there are some symbols before trying to read the string table size. Wed Jun 12 11:16:37 1996 Ian Lance Taylor * xcofflink.c (xcoff_link_add_symbols): When considering whether to replace a symbol in a dynamic object with a symbol from another dynamic object, do the replacement if the existing symbol is global linkage code. * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly for _ptrgl, and treat it as global linkage code. * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a filename or N_SO symbol past the offset, and use it to indicate that there is no line number or function when appropriate. Tue Jun 11 15:24:48 1996 Ian Lance Taylor * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a common symbol defined by the linker. Don't export function code even if export_defineds is set. Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com) * coff-h8300.c (howto_table): Add new entries for R_BCC_INV and R_JMP_DEL. (rtype2howto): Handle R_BCC_INV and R_JMP_DEL. (h8300_symbol_address_p): New function. (h8300_reloc16_estimate): Eliminate jumps made unnecessary by relaxing. Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com) * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing problems. (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot" correctly for the two variants. Allow relaxing if the target is 128 bytes away since after relaxation it'll be 126 bytes away. (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust "dot" and "value". Allow relaxing if the target is 128 bytes away since after relaxation it'll be 126 bytes away. * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing the given section until nothing changes. Thu Jun 6 15:24:45 1996 Richard Henderson * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA alignment hack--we can get the lnnoptr info another way without suddenly increasing the alignment requirements. Set the flags for the _PDATA section. (ecoff_compute_section_file_positions): Do so. Thu Jun 6 11:24:37 1996 Ian Lance Taylor * ieee.c (ieee_write_object_contents): Put a timestamp in the file to keep the HP emulator database happy. * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*. From Kevin Buettner . Wed Jun 5 15:16:04 1996 Ian Lance Taylor * aoutx.h (translate_to_native_sym_flags): Don't try to print the name of a NULL section. Tue Jun 4 18:53:58 1996 Ian Lance Taylor * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is set, always call the notice callback. * VERSION: Increment for bfdlink.h change. Mon Jun 3 11:01:53 1996 Ian Lance Taylor * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4. (sh_relax_delete_bytes): Correct handling of differently sized trailing alignment reloc. * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined. * bfd-in2.h: Rebuild. * configure.in: Warn if there is no known 64 bit type. * configure: Rebuild. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add ppcboot.o. (BFD32_BACKENDS_CFILES): Add ppcboot.c. * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c. From Per Fogelstrom . Sat Jun 1 21:49:58 1996 Ian Lance Taylor * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in) (bfd_mips_elf64_swap_reginfo_out): Move from here... * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in) (bfd_mips_elf64_swap_reginfo_out): ...to here. Fri May 31 13:51:28 1996 Ian Lance Taylor * elf64-mips.c: Improve reloc special_functions and handling of SHT_MIPS_OPTIONS section. * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from mips_elf_hi16_reloc and make globally visible. (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and make globally visible. (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and make globally visible. (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc and make globally visible. (gprel16_with_gp): Check howto->src_mask before using value in insn. (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc and make globally visible. (gprel32_with_gp): Check howto->src_mask before fetching value. (bfd_mips_elf_swap_options_in): New function. (bfd_mips_elf_swap_options_out): New function. (_bfd_mips_elf_set_private_flags): Rename from mips_elf_set_private_flags and make globally visible. (_bfd_mips_elf_copy_private_bfd_data): Rename from mips_elf_copy_private_bfd_data and make globally visible. (_bfd_mips_elf_merge_private_bfd_data): Rename from mips_elf_merge_private_bfd_data and make globally visible. (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name for a SHT_MIPS_OPTIONS section. (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section. (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the name of a SHT_MIPS_OPTIONS section. (_bfd_mips_elf_set_section_contents): New function. (mips_elf32_section_processing): Set the GP value in a SHT_MIPS_OPTIONS section. (_bfd_mips_elf_find_nearest_line): Rename from mips_elf_find_nearest_line and make globally visible. (bfd_elf32_set_section_contents): Define. * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare. (_bfd_mips_elf_lo16_reloc): Declare. (_bfd_mips_elf_gprel16_reloc): Declare. (_bfd_mips_elf_got16_reloc): Declare. (_bfd_mips_elf_gprel32_reloc): Declare. (_bfd_mips_elf_set_private_flags): Declare. (_bfd_mips_elf_copy_private_bfd_data): Declare. (_bfd_mips_elf_merge_private_bfd_data): Declare. (_bfd_mips_elf_find_nearest_line): Declare. (_bfd_mips_elf_set_section_contents): Declare. * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from elf_info_to_howto. (elf_info_to_howto): Define. * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from elf_info_to_howto. (elf_info_to_howto): Define. * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from elf_info_to_howto. (elf_info_to_howto): Define. * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to R_MOV16B[12], to match change in coff/internal.h. Thu May 30 12:38:49 1996 Ian Lance Taylor * elf64-mips.c: Extensive additions to provide better support for writing files and for gas. * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out of mips_elf_object_p. (mips_elf32_object_p): Rename from mips_elf_object_p; call _bfd_mips_elf_object_p. (_bfd_mips_elf_final_write_processing): Rename from mips_elf_final_write_processing and make globally visible. (_bfd_mips_elf_fake_sections): Rename from mips_elf_fake_sections and make globally visible. (_bfd_mips_elf_section_from_bfd_section): Rename from mips_elf_section_from_bfd_section and make globally visible. (_bfd_mips_elf_section_processing): New function, broken out of mips_elf_section_processing. (mips_elf32_section_processing): Rename from mips_elf_section_processing; call _bfd_mips_elf_section_processing. (_bfd_mips_elf_symbol_processing): Rename from mips_elf_symbol_processing and make globally visible. (_bfd_mips_elf_read_ecoff_info): Rename from mips_elf_read_ecoff_info and make globally visible. (mips_elf32_ecoff_debug_swap): Rename from mips_elf_ecoff_debug_swap. * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than struct symbol_cache_entry. (_bfd_elf_validate_reloc): New function, moved in from elfcode.h:validate_reloc. * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed to _bfd_elf_validate_reloc. Change all callers. * elf-bfd.h (bfd_section_from_shdr): Declare. (_bfd_elf_symbol_from_bfd_symbol): Declare. (_bfd_elf_validate_reloc): Declare. (_bfd_mips_elf_object_p): Declare. (_bfd_mips_elf_fake_sections): Declare. (_bfd_mips_elf_section_from_bfd_section): Declare. (_bfd_mips_elf_section_processing): Declare. (_bfd_mips_elf_symbol_processing): Declare. (_bfd_mips_elf_read_ecoff_info): Declare. (_bfd_mips_elf_final_write_processing): Declare. * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define if already defined. * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4. (mips_elf_final_write_processing): Likewise. Wed May 29 16:15:29 1996 Ian Lance Taylor 64-bit MIPS ELF ABI objdump support: * elf64-mips.c: New file. * Makefile.in: Rebuild dependencies. (BFD64_BACKENDS): Add elf64-mips.o. (BFD64_BACKENDS_CFILES): Add elf64-mips.c. * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to targ_selvecs. (mips*-*-elf*): Likewise. * confingure.in: Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to vector switch. * configure: Rebuild. * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function, broken out of mips_elf_section_from_shdr. (mips_elf32_section_from_shdr): Rename from mips_elf_section_from_shdr. Call new function. (elf_backend_section_from_shdr): Update name of renamed function. * elf-bfd.h (struct elf_size_info): Change second parameter of write_out_phdrs to be const. Likewise for second parameter of swap_symbol_out. (struct bfd_elf_section_data): Add rel_hdr2 field. (bfd_elf32_swap_symbol_in): Change second parameter to be const. (bfd_elf32_swap_symbol_out): Likewise. (bfd_elf32_swap_reloc_in): Likewise. (bfd_elf32_swap_reloc_out): Likewise. (bfd_elf32_swap_reloca_in): Likewise. (bfd_elf32_swap_reloca_out): Likewise. (bfd_elf32_swap_phdr_in): Likewise. (bfd_elf32_swap_phdr_out): Likewise. (bfd_elf32_swap_dyn_in): Likewise. (bfd_elf32_swap_dyn_out): Likewise. (bfd_elf32_slurp_symbol_table): Declare. (bfd_elf32_write_shdrs_and_ehdr): Declare. (bfd_elf32_write_out_phdrs): Declare. (bfd_elf64_swap_symbol_in): Change second parameter to be const. (bfd_elf64_swap_symbol_out): Likewise. (bfd_elf64_swap_reloc_in): Likewise. (bfd_elf64_swap_reloc_out): Likewise. (bfd_elf64_swap_reloca_in): Likewise. (bfd_elf64_swap_reloca_out): Likewise. (bfd_elf64_swap_phdr_in): Likewise. (bfd_elf64_swap_phdr_out): Likewise. (bfd_elf64_swap_dyn_in): Likewise. (bfd_elf64_swap_dyn_out): Likewise. (bfd_elf64_slurp_symbol_table): Declare. (bfd_elf64_write_shdrs_and_ehdr): Declare. (bfd_elf64_write_out_phdrs): Declare. (_bfd_mips_elf_section_from_shdr): Declare. * elf.c (bfd_section_from_shdr): Remove assertion requiring SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc section for the section, add the new one to rel_hdr2. Increment reloc_count rather than setting it. * elfcode.h (elf_slurp_symbol_table): Define name as macro. Remove static declaration. (elf_write_shdrs_and_ehdr): Define name as macro. (elf_write_out_phdrs): Likewise. (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare. (elf_swap_shdr_in, elf_swap_shdr_out): Declare. (elf_swap_symbol_in): Change second parameter to be const. (elf_swap_symbol_out): Likewise. (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise. (elf_swap_shdr_in, elf_swap_shdr_out): Likewise. (elf_swap_phdr_in, elf_swap_phdr_out): Likewise. (elf_swap_reloc_in, elf_swap_reloc_out): Likewise. (elf_swap_reloca_in, elf_swap_reloca_out): Likewise. (elf_write_out_phdrs): Rename from write_out_phdrs. Change second parameter to be const. Make non-static. (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr. Make non-static. (elf_slurp_symbol_table): Make non-static. (NAME(_bfd_elf,size_info)): Update names of renamed functions. * elfxx-target.h (elf_info_to_howto): Define if not defined. (elf_backend_size_info): Likewise. (elfNN_bed): Use elf_backend_size_info. * targets.c (bfd_elf64_bigmips_vec): Declare. (bfd_elf64_littlemips_vec): Declare. (bfd_target_vector): Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec if BFD64 is defined. * libbfd.c (bfd_get_file_window): Add cast to fprintf argument. Tue May 28 11:42:08 1996 Ian Lance Taylor * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not zeroes, in alignment holes. * configure: Rebuild with autoconf 2.10. * aoutx.h (NAME(aout,find_nearest_line)): Make room for the potential leading underscore in the allocated buffer. Fri May 24 14:28:38 1996 Michael Meissner * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common symbols into .sbss if this is a relocatable link. Thu May 23 12:26:24 1996 Ian Lance Taylor * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about undefined symbols when creating a shared library. Fri May 17 13:54:15 1996 Ian Lance Taylor * coff-sh.c: Add a bunch of new code and static const arrays to support aligning loads and stores on four byte memory boundaries. Also: (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and R_SH_LABEL. (sh_relax_section): Look for R_SH_CODE relocs. If we find one, call sh_align_loads. (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs as unused. Thu May 16 16:34:13 1996 Ian Lance Taylor * cache.c (bfd_open_file): Unlink the file before opening it for write. From Marty Leisner . * opncls.c (bfd_fdopenr): Set opened_once. Tue May 14 12:35:32 1996 Ian Lance Taylor * som.c (som_slurp_reloc_table): Clear external_relocs cache after freeing it. * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile the code unconditionally. Mon May 13 19:51:37 1996 Ian Lance Taylor * libcoff-in.h (struct pei_section_tdata): Define structure. (pei_section_data): Define macro. * libcoff.h: Rebuild. * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE, store s_paddr field in pei_section_data. (coff_compute_section_file_positions): Use pei_section_data rather than _cooked_size, and don't overwrite an existing value. (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data. * peicode.h (coff_bfd_copy_private_section_data): Define if COFF_IMAGE_WITH_PE. (pe_bfd_copy_private_section_data): New static function if COFF_IMAGE_WITH_PE. Wed May 8 16:10:38 1996 Ian Lance Taylor * srec.c (srec_set_arch_mach): Write as a function rather than a macro definition. * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has no map, just check each member in turn to see whether it is required. Wed May 8 09:17:34 1996 Michael Meissner * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition table. Call BFD_ASSERT to validate header size, instead of calling fatal. (ppcboot_bfd_print_private_bfd_data): Put quotes around partition name. Tue May 7 16:10:19 1996 Michael Meissner * ppcboot.c: New target for looking at PPCbug boot records. * config{ure.in,.bfd}: Add support for ppcboot target. * targets.c: Ditto. * configure: Regenerate. Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com) * coff-h8300.c (howto_table): Update names to match recent changes to include/coff/internal.h. Fix minor errors in the existing relocs. Add R_MOVL1 and R_MOVL2. (rtype2howto): Similarly. (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the existing relaxing code and peform more relaxing. (h8300_reloc16_extra_cases): Likewise. Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com) * reloc16.c (bfd_coff_reloc16_get_value): Handle common symbols correctly. Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) * elfcode.h (elf_object_p): Reject generic ELF target if e_machine matches an alternate machine code in a specific backend. * netbsd-core.c (netbsd_core_vec): Remove initializer for obsolete align_power_min field. Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com) * coff-h8300.c (reloc_howto_type): Add howto entry for R_PCRWORD_B. (rtype2howto): Handle R_PCRWORD_B. (h8300_reloc16_extra_cases): Handle R_PCRWORD_B. (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit pc-relative branch (R_PCRWORD) into an 8bit pc-relative branch (R_PCWORD_B). Fri May 3 10:47:41 1996 Ian Lance Taylor * aoutx.h (translate_from_native_sym_flags): Set the section for BSF_CONSTRUCTOR symbols. * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of last_bf_index. Wed May 1 18:39:32 1996 Doug Evans * coffcode.h (coff_write_object_contents): In comdat section lookup, stop looking when section is found. Wed May 1 14:17:57 1996 Ian Lance Taylor * coffcode.h (STRING_SIZE_SIZE): Define. (styp_to_sec_flags): Handle long symbol names when looking for the section symbol. (bfd_coff_backend_data): Add _bfd_coff_long_section_names field. (bfd_coff_long_section_names): Define. (coff_write_object_contents): Handle long section names. (bfd_coff_std_swap_table): Initialize new field. * libcoff.h: Rebuild. * coffgen.c (make_a_section_from_file): Handle long section names. (coff_write_symbols): Handle long section names. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. * coff-mips.c (mips_ecoff_backend_data): Likewise. * pe-arm.c (COFF_LONG_SECTION_NAMES): Define. * pei-arm.c (COFF_LONG_SECTION_NAMES): Define. * pe-i386.c (COFF_LONG_SECTION_NAMES): Define. * pei-i386.c (COFF_LONG_SECTION_NAMES): Define. * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define. * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define. * bout.c (b_out_callback): Set lma of sections. (b_out_bfd_get_relocated_section_contents): Rename in_abfd parameter to output_bfd. Used input_bfd instead of output_bfd in several places. Tue Apr 30 17:56:39 1996 Ian Lance Taylor * aoutx.h (translate_from_native_sym_flags): Don't create SEC_CONSTRUCTOR sections. * ecoff.c (ecoff_set_symbol_info): Likewise. * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp. From Don Bowman . Tue Apr 30 17:06:32 1996 Doug Evans * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. Mon Apr 29 13:15:17 1996 Ian Lance Taylor * elf32-mips.c (struct mips_elf_link_hash_entry): Add mips_32_relocs field. (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field. (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32 relocs against a global symbol which is not defined in a regular file. (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc against a global symbol, increment mips_32_relocs. (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and the symbol is not defined in a regular file, make room in the .rel.dyn section. Fri Apr 26 18:00:37 1996 Ian Lance Taylor * ecoff.c (ecoff_compute_section_file_positions): Track the real file position and the virtual file position separately. Set filepos information bsaed on the real file position. (_bfd_ecoff_set_section_contents): Handle .lib sections like the Jan 23 change to coffcode.h. * som.c (som_slurp_symbol_table): Set the symbol count to the number of BFD symbols created. Fri Apr 26 12:34:29 1996 Michael Meissner * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the output file if linking shared objects. Loop to check all relocs, rather than returning false on first error. Thu Apr 25 13:25:12 1996 Michael Meissner * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case. (ppc_elf_additional_program_headers): If .interp section, bump # of program headers by 1. (ppc_elf_adjust_dynamic_symbol): Flesh out support. (ppc_elf_size_dynamic_sections): Add support for .plt section. (ppc_elf_check_relocs): Print out filename in debug code. Enable PLT support. (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up debug output. (ppc_elf_relocate_section): If the output section isn't defined, don't abort, just give an error message. * elflink.c (_bfd_elf_create_dynamic_sections): If the section being created is .sdata or .sdata2, don't make the symbol dynamic. Wed Apr 24 14:04:07 1996 Ian Lance Taylor * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the members of an archive for dynamic objects with no symbols, and pass them directly to check_archive_element. (xcoff_link_check_ar_symbols): Pass dynamic objects to xcoff_link_check_dynamic_ar_symbols. (xcoff_link_check_dynamic_ar_symbols): New static function. * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC from _bfd_nodynamic to _bfd_xcoff. * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound): Declare. (_bfd_xcoff_canonicalize_dynamic_symtab): Declare. (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare. (_bfd_xcoff_canonicalize_dynamic_reloc): Declare. * libcoff.h: Rebuild. * xcofflink.c (xcoff_swap_ldrel_in): New static function. (xcoff_get_section_contents): New static function. (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function. (_bfd_xcoff_canonicalize_dynamic_symtab): New function. (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function. (xcoff_dynamic_reloc): New static variable. (_bfd_xcoff_canonicalize_dynamic_reloc): New function. (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents. Tue Apr 23 12:48:42 1996 Ian Lance Taylor * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even if reloc_entry->addend is not 0. (CALC_ADDEND): Just set the addend to reloc.r_offset. Mon Apr 22 18:29:01 1996 Doug Evans * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of R_SPARC_GLOB_JMP. * elf64-sparc.c (sparc64_elf_howto_table): Likewise. Add entries for R_SPARC_[56]. (sparc_reloc_map): Add entries for R_SPARC_[56]. Mon Apr 22 15:07:24 1996 Ian Lance Taylor Optimize linking of stabs in sections as used in ELF and COFF. * stabs.c: New file. * libbfd-in.h (_bfd_link_section_stabs): Declare. (_bfd_write_section_stabs): Declare. (_bfd_write_stab_strings): Declare. * libbfd.h: Rebuild. * libcoff-in.h (struct coff_section_tdata): Add stab_info field. (struct coff_link_hash_table): Add stab_info field. * libcoff.h: Rebuild. * cofflink.c (_bfd_coff_link_hash_table_init): Initialize stab_info field. (coff_link_add_symbols): Call _bfd_link_section_stabs if appropriate. (_bfd_coff_final_link): Write out stab strings hash table. (_bfd_coff_link_input_bfd): Handle optimized stabs sections. * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings hash table. * elf-bfd.h (struct elf_link_hash_table): Add stab_info field. (struct bfd_elf_section_data): Add stab_info field. * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info field. * elflink.h (elf_link_add_object_symbols): If appropriate, call _bfd_link_section_stabs. (elf_bfd_final_link): Write out stab strings hash table. (elf_link_input_bfd): Handle optimized stabs sections. * reloc.c (_bfd_final_link_relocate): Check address against _raw_size rather than _cooked_size. * Makefile.in: Rebuild dependencies. (BFD_LIBS): Add stabs.o (BFD_LIBS_CFILES): Add stabs.c. * VERSION: Increment for bfdlink.h change. * coffgen.c (coff_renumber_symbols): Correct handling of BSF_NOT_AT_END common symbols. Fri Apr 19 19:21:56 1996 Ian Lance Taylor * coff-ppc.c (record_toc): Add cast to avoid warning. (ppc_allocate_toc_section): Likewise. (coff_ppc_relocate_section): Remove ANSI C string concatenation. (ppc_coff_reloc_type_lookup): Remove unreached code. * coffcode.h (coff_write_object_contents): Don't take the address of an array. * peicode.h (pe_print_idata): Add casts to avoid warning. (pe_print_edata): Likewise. (pe_print_reloc): Remove ANSI C string concatenation. Thu Apr 18 18:51:18 1996 Ian Lance Taylor * libcoff-in.h (struct coff_final_link_info): Add last_bf_index and last_bf fields. * libcoff.h: Rebuild. * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN symbols. (coff_swap_aux_out): Likewise. * peicode.h (coff_swap_aux_in): Likewise. (coff_swap_aux_out): Likewise. * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN symbols. * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index field. (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols. Fix up .bf endndx link fields. * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index field. * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN symbols. Wed Apr 17 12:08:24 1996 Michael Meissner * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling on Solaris PowerPC systems doesn't get confused. * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not #ifdef PPC. * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument. (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't update did_reg and did_reg2. Wed Apr 17 13:07:37 1996 Ian Lance Taylor * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow. * linker.c (_bfd_generic_link_add_one_symbol): When calling the callback routines, pass h->root.string rather than name, in case copy is true and name is transient. Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com) * elfcore.h: Add support for core files with multiple threads. (Primarily for Solaris.) Tue Apr 16 13:44:08 1996 Ian Lance Taylor * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if section->orelocation is NULL. * coffgen.c (bfd_coff_get_syment): New function. (bfd_coff_get_auxent): New function. * bfd-in.h (bfd_coff_get_syment): Declare. (bfd_coff_get_auxent): Declare. * bfd-in2.h: Rebuild. Mon Apr 15 19:06:59 1996 Ian Lance Taylor * elf32-mips.c (struct mips_hi16): Define. (mips_hi16_addr, mips_hi16_addend): Remove. (mips_hi16_list): New static variable. (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs. (mips_elf_lo16_reloc): Process mips_hi16_list. (mips_elf_relocate_section): Permit an arbitrary number of HI16 relocs before the associated LO16 reloc. Wed Apr 10 00:23:53 1996 Ian Lance Taylor * versados.c (versados_scan): Check bfd_alloc return value. (versados_object_p): Check all bfd_read return values. Require that lang field be less than 10, to avoid confusion with Intel Hex files. * libaout.h (WRITE_HEADERS): Write out the relocs even if there aren't any symbols. * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS, not 0, for an absolute symbol. (NAME(aout,swap_ext_reloc_out)): Likewise. * ihex.c (ihex_scan): Accept a length of 4 for record type 5. (ihex_write_object_contents): For a large start address, output the full 32 bit address in record type 5. * ieee.c (ieee_write_byte): Change second parameter from bfd_byte to int to avoid promotion problems in prototype. Tue Apr 9 11:44:21 1996 Ian Lance Taylor * configure.host: Use ${srcdir} when looking for picfrag. * configure.host: Switch on ${libdir}, not $(libdir). From alan@spri.levels.unisa.edu.au (Alan Modra). * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols entry point, not just for DYNAMIC objects. * sunos.c (sunos_add_dynamic_symbols): Always call sunos_create_dynamic_sections. If called with a non DYNAMIC object, don't do anything else. (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections. Mon Apr 8 12:09:36 1996 Ian Lance Taylor * configure.in: Permit --enable-shared to specify a list of directories. * configure: Rebuild. * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf* host when configuring with --enable-shard. Fri Apr 5 12:24:13 1996 Ian Lance Taylor * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra . * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE, to avoid crashing in bfd_hash_replace. * sysdep.h: Use #ifdef, not #if. Thu Apr 4 23:32:23 1996 Ian Lance Taylor * config.in: Rebuild. Thu Apr 4 18:49:09 1996 Fred Fish * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE. (AC_CHECK_HEADERS): Check for sys/time.h (AC_HEADER_TIME): Add macro. * configure: Rebuild. * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H to control what combination of