aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1997-03-28 From David S. Miller <davem@caip.rutgers.edu> and H.J. LuIan Lance Taylor3-0/+783
<hjl@gnu.ai.mit.edu>: * sparclinux.c: New file. * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets. * configure.in (sparclinux_vec): Add to list of vectors. * configure: Rebuild. * targets.c (sparclinux_vec): Declare. (bfd_target_vector): Add sparclinux_vec. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add sparclinux.o. (BFD32_BACKENDS_CFILES): Add sparclinux.c.
1997-03-28Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor1-0/+5
* m68klinux.c (MACHTYPE_OK): Define. * i386linux.c (MACHTYPE_OK): Define.
1997-03-28 * coff-mips.c (mips_ecoff_backend_data): Initialize newIan Lance Taylor1-0/+4
bfd_coff_backend_data field. * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1997-03-28 * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecsIan Lance Taylor2-4/+6
for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu <hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>.
1997-03-28 * bfd.c: Include "libiberty.h".Ian Lance Taylor1-0/+6
(strerror): Don't declare. (bfd_errmsg): Call xstrerror rather than strerror.
1997-03-27 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPYIan Lance Taylor1-0/+6
reloc even if the symbol is in the .bss section. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
1997-03-27 * coffcode.h (bfd_coff_backend_data): Add new fieldIan Lance Taylor1-0/+8
_bfd_coff_default_section_alignment_power. (bfd_coff_default_section_alignment_power): Define. (bfd_coff_std_swap_table): Initialize new field. * libcoff.h: Rebuild. * cofflink.c (coff_link_add_symbols): Limit alignment of a common symbol to the default section alignment.
1997-03-27 * COPYING: Update FSF address.Ian Lance Taylor1-0/+4
1997-03-27Thu Mar 27 00:45:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+10
* elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the 21-bit absolute that made it act as a relative.
1997-03-26 * elf32-ppc.c (ppc_elf_check_relocs): Only create the got sectionIan Lance Taylor1-0/+5
if it is needed.
1997-03-26 * aoutx.h (some_aout_object_p): Change executable test to fixStu Grossman1-0/+5
problems with embedded a.out systems.
1997-03-25 * stabs.c (_bfd_stab_section_offset): New function.Ian Lance Taylor2-9/+44
* libbfd-in.h (_bfd_stab_section_offset): Declare. * libbfd.h: Rebuild. * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a stab reloc. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-mips.c (mips_elf_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1997-03-25 * stabs.c (_bfd_link_section_stabs): Copy over the first headerIan Lance Taylor5-10/+584
symbol. Check for memory allocation failure of *psinfo. (_bfd_write_section_stabs): Add psinfo parameter. Change all callers. Set the value of the header symbol. * libbfd-in.h (_bfd_write_section_stabs): Update declaration. * libbfd.h: Rebuild.
1997-03-25 * coff-tic80.c (tic80_howto_table): Add R_ABS entry.Fred Fish1-0/+8
(rtype2howto): Handle R_ABS reloc type. Also abort on unhandled reloc types, rather than silently failing to generate an output file.
1997-03-24 * targmatch.sed: Use the hold space to put the #ifdef around theIan Lance Taylor1-0/+7
the string constant. * targets.c (UNSUPPORTED_TARGET): Don't define. (find_target): Don't check for UNSUPPORTED_TARGET. (bfd_set_default_target): Don't try to optimize by checking for default.
1997-03-24 * Makefile.in: Rebuild dependencies.Ian Lance Taylor1-0/+5
(ALL_MACHINES_CFILES): Add cpu-m32r.c. (BFD32_BACKENDS_CFILES): Add elf32-m32r.c. (elf32-m32r.o): Remove explicit target.
1997-03-24 * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* orIan Lance Taylor1-0/+3
i[3456]86-*-linux*.
1997-03-24 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don'tIan Lance Taylor2-15/+37
count section symbols for sections that were created by the linker, or are not allocatable or not loadable. (elf32_sparc_finish_dynamic_sections): Output output section symbols for section for which we made space for them.
1997-03-21Remove m32r sanitization.David Edelsohn5-56/+6
1997-03-21 * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.David Edelsohn1-22/+19
(m32r_hi16_list): New static local. (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up. (m32r_elf_do_hi16_reloc): Delete. (m32r_elf_relocate_hi16): New function. (m32r_elf_lo16_reloc): New function. (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding LO16 reloc. * elf32-m32r.c (m32r_elf_create_linker_section): Delete. (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support. (m32r_elf_final_sda_base): New function. (m32r_elf_relocate_section): Rewrite sdata support. (m32r_elf_finish_dynamic_sections): Delete. Bring over from m32r-970131 branch.
1997-03-21 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there isIan Lance Taylor2-9/+25
no .rela.plt section, don't output a DT_PLTGOT dynamic entry. Handles the case of a shared library with no function calls.
1997-03-20 Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.Ian Lance Taylor9-427/+598
* coff-svm68k.c: New file. Just defines some macros and includes coff-m68k.c. * coff-m68k.c: Add functions to handle common addends, moved in from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro. Control whether relocs are visible using STATIC_RELOCS. * cf-m68klynx.c: Simplify greatly: just define macros to control coff-m68k.c. * coff-aux.c: Likewise. Just leave add_one_symbol routine. * targets. (m68ksysvcoff_vec): Declare. (bfd_target_vector): Add m68ksysvcoff_vec. * config.bfd (m68*-motorola-sysv*): New target. * configure.in (m68ksysvcoff_vec): New vector. * configure: Rebuild. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add coff-svm68k.o. (BFD32_BACKENDS_CFILES): Add coff-svm68k.c.
1997-03-20 * binary.c (binary_set_section_contents): Don't get misled if theIan Lance Taylor1-0/+4
first section is not loadable. From Matthew L. Martin <mlm@xedia.com>.
1997-03-20 * elflink.h (elf_bfd_final_link): Set the value of a sectionIan Lance Taylor2-1/+15
symbol to the section address unless doing a relocateable link.
1997-03-19 * Makefile.in: Rebuild dependencies.Ian Lance Taylor1-0/+1
1997-03-19Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>Ian Lance Taylor3-11/+803
* Many files: Add function prototypes. * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare. * ecofflink.c: Include "libcoff.h" and "libecoff.h". * elf32-ppc.c (ppc_elf_fake_sections): Make static. * opncls.c (bfd_openstreamr): Change stream parameter to PTR. * peicode.h: Change several void * parameters to PTR. * srec.c (srec_get_symbol_info): Make static. * syms.c (bfd_symbol_is_absolute): Remove.
1997-03-19start-sanitize-m32rIan Lance Taylor1-0/+5
* elf32-m32r.c (m32r_elf_is_local_label_name): Remove. (bfd_elf32_bfd_is_local_label): Don't define. end-sanitize-m32r
1997-03-18 * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc ratherIan Lance Taylor2-5/+7
than malloc.
1997-03-18fix tipo in commentIan Lance Taylor1-2/+3
1997-03-18 * bfd-in.h: Don't include obstack.h.Ian Lance Taylor12-701/+396
(struct bfd_hash_table): Change memory field to PTR. * bfd.c (struct _bfd): Change memory field to PTR. * bfd-in2.h: Rebuild. * libbfd-in.h (bfd_release): Declare as function, don't define as macro. * libbfd.h: Rebuild. * opncls.c: Include "objalloc.h" rather than "obstack.h". Use objalloc routines rather than obstack routines. (obstack_chunk_alloc, obstack_chunk_free): Don't define. (getpagesize): Don't define. (_bfd_new_bfd): Don't set _bfd_chunksize. (bfd_openr): Free new bfd and objalloc on failure. (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise. (bfd_alloc_size): Remove. (bfd_release): New function. * hash.c: Include "objalloc.h" rather than "obstack.h". Use objalloc routines rather than obstack routines. (obstack_chunk_alloc, obstack_chunk_free): Don't define. * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use objalloc routines rather than obstack routines. (obstack_chunk_alloc, obstack_chunk_free): Don't define. (struct accumulate): Change memory to struct objalloc *. * liboasys.h (oasys_data_type): Remove oasys_obstack field. * dep-in.sed: Don't remove obstack.h from dependency list. * Makefile.in: Rebuild dependencies. (BFD_H_DEPS): Remove obstack.h. (install): Don't install obstack.h. * Many files: Don't include "obstack.h". * VERSION: Bump.
1997-03-17 * srec.c (srec_scan): Rewrite to not use obstack_1grow.Ian Lance Taylor2-71/+134
1997-03-17 * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.Ian Lance Taylor4-25/+6
* libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare. * libbfd.h: Rebuild. * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow. * sunos.c (sunos_add_dynamic_symbols): Likewise.
1997-03-17 * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. RemoveIan Lance Taylor6-42/+65
old version of bfd_alloc. * libbfd-in.h (bfd_alloc_by_size_t): Don't declare. * libbfd.h: Rebuild. * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
1997-03-15 * elf32-mips.c (mips_elf_is_local_label_name): Accept the genericIan Lance Taylor1-0/+5
ELF local label syntax as well.
1997-03-15 * config.bfd (powerpc-*-beos*): New target.Fred Fish1-0/+8
* configure.in (powerpc-*-beos*): Add case that explicitly does not set COREFILE for now. A future BeOS version is expected to support core files. * configure: Regenerate with autoconf.
1997-03-15 * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 isIan Lance Taylor2-1/+11
seen with a local symbol, rather than crashing.
1997-03-14 * elfcode.h (elf_slurp_symbol_table): Don't try to read theIan Lance Taylor2-4/+11
version symbols if there aren't any.
1997-03-13 * coff-tic80.c (coff_rtype_to_howto): DefineFred Fish2-5/+87
(coff_tic80_rtype_to_howto): Clone generic coff version and add code to handle the funky TI "internal relocations".
1997-03-13 * elflink.h (elf_link_add_object_symbols): Don't warn about typeIan Lance Taylor2-2/+7
or size changes because of a weak symbol. PR 11827.
1997-03-13 * cisco-core.c (SIGEMT): Define if not defined.Ian Lance Taylor1-0/+4
1997-03-13 * elflink.h (elf_link_add_object_symbols): Use extsymoff whenIan Lance Taylor3-38/+274
setting ever. Sanity check the version number. Sort out copying flags and other information when adding an indirect symbol. (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic symbols added by the backend. Clear the entire contents of the versym section. (elf_export_symbol): Ignore indirect symbols. (elf_link_output_extsym): Accept a section without an owner in an assert. * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the version count. Correct the allocation of x_versymp.
1997-03-13 * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner ofIan Lance Taylor1-21/+49
the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA. Don't return bfd_und_section_ptr when info->shared. (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12. (mips_elf_create_dynamic_sections): Correct type: ^= for &=. (mips_elf_check_relocs): Resolve an indirect symbol in sym_hashes. (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into SHN_MIPS_TEXT or SHN_MIPS_DATA.
1997-03-11 From Eric Youngdale <eric@andante.jic.com>:Ian Lance Taylor1-46/+197
* elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define. * elf.c (bfd_elf_print_symbol): Correct errors in last change. * elflink.h (elf_link_add_object_symbols): Handle cases in which a versioned symbol appears in both a regular and a shared object. (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when appropriate. Improve error message. (struct elf_outext_info): Rename from elf_finfo_failed. Change all uses. Add localsyms field. (elf_bfd_final_link): When generating a shared library, call elf_link_output_extsym to output all local symbols. (elf_link_output_extsym): Handle symbols which were forced to become local.
1997-03-10 From Eric Youngdale <eric@andante.jic.com>:Ian Lance Taylor4-56/+344
* elf-bfd.h (elf_symbol_type): Add version field. * elfcode.h (elf_slurp_symbol_table): Set version field. * elflink.h (elf_link_add_object_symbols): When creating an indirect symbol for a default version symbol, set DEF_DYNAMIC if appropriate. Set up an indirection from the nondefault version of the symbol as well. (NAME(bfd_elf,size_dynamic_sections)): Call elf_link_assign_sym_version before checking whether there are any versions. Always record the version name as a dynamic symbol. Initialize counters. (elf_link_assign_sym_version): After finding a version, see if a symbol should be forced to local scope. Create a new version definition if appropriate. (elf_link_output_extsym): Correct indirect symbol handling. * elf.c (bfd_elf_print_symbol): Print version information. (bfd_section_from_shdr): Turn version sections into BFD sections. (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info if sh_info is not already set. (_bfd_elf_copy_private_section_data): Copy sh_info for version sections. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell _bfd_stringtab_add to copy the name into permanent memory if appropriate.
1997-03-07 * coffcode.h (bfd_coff_backend_data): ChangeIan Lance Taylor1-0/+8
_bfd_coff_compute_section_file_positions to return a boolean value. Change all callers. (coff_compute_section_file_positions): Change return type to boolean. If the size of the last section changed, then output a zero byte at the end of the file. * libcoff.h: Rebuild. PR 11806.
1997-03-07Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor1-0/+4
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
1997-03-07 * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate spaceIan Lance Taylor2-42/+215
for at least 6 output symbols. (xcoff_write_global_symbol): When emitting TOC entry relocs, also emit a TC csect to represent the space they take up. For an XO symbol, just emit a reference, not a csect. PR 11793.
1997-03-07Update copyrights.Jeff Law2-2/+2
1997-03-07xIan Lance Taylor1-0/+1
1997-03-07 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, sinceIan Lance Taylor1-0/+4
Solaris doesn't like the combined options, and the -f is unnecessary.