aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1996-09-07Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+7
* elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16 and R_D10V_18 to be 1 (word).
1996-09-05 * stabs.c (_bfd_link_section_stabs): If the output_section fieldIan Lance Taylor1-0/+6
of either section is bfd_abs_section, then the linker is discarding the section and we should not optimize it. PR 10555.
1996-09-04 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling ofJeff Law2-17/+124
low order sign bit propogationfor R_V850_HI16_S. Fixes c-torture execute/950221-1.c, maybe others.
1996-09-03 * Makefile.in (aout-sparcle.o): New target.David Edelsohn4-20/+59
* aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian. * config.bfd (sparclet-*-aout*): Add case. * configure.in (sparcle_aout_vec): Add case. * configure: Regenerated. * libaout.h (machine_type): Add M_SPARCLET_LE. * targets.c (sparcle_aout_vec): Declare. (bfd_target_vector): Add sparcle_aout_vec. * aout-sparcle.c: New file.
1996-09-03 * elf32-v850.c (bfd_elf3_v850_reloc): New function forJeff Law1-2/+27
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. Fixing more stuff.
1996-09-02Remove reloc.c from v850_files.Mark Alexander1-1/+1
1996-09-01 * .Sanitize: Remove reloc.c from v850_files.Mark Alexander1-0/+6
1996-09-01 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):Ian Lance Taylor1-0/+6
Rewrite to use BFD file read routines and to avoid using a fixed length for the file name.
1996-08-31 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.Jeff Law2-0/+58
(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}. So we don't get "reloc XXX not supported" messages anymore.
1996-08-31* elf32-v850.c (reloc_type): Add R_V850_HI16_S.J.T. Conklin3-1/+209
(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.
1996-08-30 Add SH ELF support.Ian Lance Taylor6-27/+188
* 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-30 * ihex.c (ihex_scan): Removed unnecessary extbase variable.Ian Lance Taylor2-28/+47
(ihex_write_object_contents): Remove extbase; always use segbase instead.
1996-08-29Recognize i686-*-* for pentium proMichael Meissner4-56/+201
1996-08-27 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed forIan Lance Taylor2-64/+94
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.
1996-08-23 * configure.host (HLDENV): New variable to set. Set it forIan Lance Taylor1-0/+4
*-*-sysv4*, since those linkers may not support -R but they always support LD_RUN_PATH.
1996-08-23 * libieee.h (NSECTIONS): Don't define.Ian Lance Taylor1-0/+17
(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. PR 10377.
1996-08-20* Makefile.in (ALL_MACHINES): Add cpu-v850.o.J.T. Conklin2-0/+57
(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.
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: ----------------------------------------------------------------------