aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1996-08-15 * mpw-config.in: Update editing of autoconf vars to reflectStan Shebs3-8/+27
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.
1996-08-15Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-0/+8
* 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
1996-08-15Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>Ian Lance Taylor2-39/+77
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo in section dynidx start.
1996-08-13 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whoseIan Lance Taylor1-0/+6
name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an optimization for g++.
1996-08-13If one module has -mrelocatable-lib and the other doesn't, clear the ↵Michael Meissner1-0/+6
-mrelocatable-lib bit
1996-08-11 * elflink.h (elf_link_add_object_symbols): Do not resolve a commonIan Lance Taylor2-3/+21
symbol against a STT_FUNC symbol in a shared library.
1996-08-10 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptorIan Lance Taylor1-0/+4
symbol is found, automatically define the corresponding function code. PR 10299.
1996-08-09 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numauxIan Lance Taylor1-0/+6
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.
1996-08-09 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dynIan Lance Taylor1-0/+9
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. Fix this case from c-torture: extern int abort(); typedef int (*frob)(); frob f[] = {abort}; main() { exit(0); }
1996-08-08 * xcofflink.c (xcoff_link_input_bfd): If we already called theIan Lance Taylor2-2/+25
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.
1996-08-08 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.Ian Lance Taylor2-7/+74
(xcoff_link_add_symbols): Permit multiple definitions of a symbol as the AIX linker seems to do. PR 10304.
1996-08-08Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>Ian Lance Taylor10-182/+70
* 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 * archive.c (bsd_write_armap): Ifdef around calls to getuid andStu Grossman1-0/+6
getgid if _WIN32 is defined. * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
1996-08-08 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:Stu Grossman3-3/+12
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-08-07 * cpu-i386.c (i8086_arch): Architecture info for the i8086.Ian Lance Taylor1-0/+2
1996-08-07Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>Ian Lance Taylor3-3/+31
* 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.
1996-08-07 Based on patches from Eric Valette <valette@crf.canon.fr>:Ian Lance Taylor1-0/+11
* 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.
1996-08-06Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+6
* elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
1996-08-05 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,Ian Lance Taylor2-1/+9
only get the LMA from the phdr if they are in the same part of the file.
1996-08-05 * elf.c (map_sections_to_segments): Rewrite tests for starting aIan Lance Taylor2-22/+69
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.
1996-08-02 * libhppa.h: Remove "esel" changes. Not the right approach.Jeff Law2-19/+23
* 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. More PA EH tweakage (to get exception handling tables properly relocated in shared libraries).
1996-07-31 Make ld -N more reasonable for ELF:Ian Lance Taylor2-7/+40
* 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.
1996-07-31Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion4-0/+15
* 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-30 * libhppa.h (R_HPPA_ESEL): New field selector.Jeff Law3-10/+104
(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. Making another stab at EH support on the PA.
1996-07-30 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regularIan Lance Taylor2-12/+21
archive search before looking for stripped dynamic objects. PR 10187.
1996-07-26 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefinedIan Lance Taylor2-4/+8
symbol a warning rather than an error. PR 10208.
1996-07-24tipoIan Lance Taylor1-1/+1
1996-07-24 * elf.c (assign_file_positions_for_segments): Track the virtualIan Lance Taylor2-2/+12
memory position separately from the file position, and use it to compute the alignment adjustment. PR 10039.
1996-07-23start-sanitize-d10vMartin Hunt2-7/+14
Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com> * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long" and fixed mask on R_D10V_10_PCREL_L. end-sanitize-d10v
1996-07-22 * elf64-mips.c: Include "aout/ar.h".Ian Lance Taylor2-16/+41
(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.
1996-07-22 * elf32-mips.c (_bfd_mips_elf_final_write_processing): HandleIan Lance Taylor1-7/+91
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.
1996-07-22 * libecoff.h (ecoff_data_type): Add rdata_in_text field.Ian Lance Taylor1-0/+9
* 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.
1996-07-19 * configure.in: Fix test for whether a compiler has a 64 bitIan Lance Taylor3-2/+7
type. From Jim Wilson <wilson@cygnus.com>. VS: ----------------------------------------------------------------------
1996-07-19 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONGIan Lance Taylor6-63/+150
(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-19rebuildIan Lance Taylor1-1/+1
1996-07-18 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. FromIan Lance Taylor1-0/+3
Andrew Gierth <ANDREWG@microlise.co.uk>.
1996-07-18 * configure.host: Set INSTALL_SHLIB.Ian Lance Taylor5-27/+38
* configure.in: Call AC_SUBST (INSTALL_SHLIB). * configure: Rebuild. * Makefile.in (install): Use @INSTALL_SHLIB@.
1996-07-18 * config.bfd (mips*-*-irix6*): New target.Ian Lance Taylor3-5/+12
* configure.host: Handle Irix 6 shared library like Irix 5.
1996-07-18 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TDIan Lance Taylor2-76/+109
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.
1996-07-18 * mpw-config.in: Add ELF support to mips config, create theStan Shebs3-9/+20
elf32-target.h file in the object dir. * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
1996-07-18Removed debug, fixed diagnostics, etcKim Knuttila1-0/+5
1996-07-18start-sanitize-d10vMartin Hunt13-78/+598
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-17Removed bogus printfKim Knuttila2-13/+29
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 Grossman3-3/+7
bfd_mach_i386_i8086 machine types.
1996-07-15 * bfd-in2.h: Add bfd_mach_i386_i386 and bfd_mach_i386_i8086Stu Grossman2-0/+7
machine types.
1996-07-10 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INITIan Lance Taylor2-25/+71
and _FINI sections.
1996-07-10Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>Ian Lance Taylor1-0/+5
* coffcode.h (coff_set_section_contents): A/UX does not require special handling of the _LIB section.
1996-07-09 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correctJeff Law1-0/+8
value for R_RELBYTE. Something -Wall caught. * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks" array if one was allocated. Something I ran into today.
1996-07-09 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:Ian Lance Taylor2-2/+128
* 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.