aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-07-06 * coff-alpha.c (alpha_ecoff_mkobject_hook): New hook toPeter Schauer1-0/+9
additionally copy object type information from the alpha file header to the BFD flags. (alpha_ecoff_backend_data): Use it. (ecoffalpha_little_vec): Add DYNAMIC to object_flags. * aout64.c: Fix typo in conditional QMAGIC definition.
1994-07-06 * hppabsd-core.c (hppabsd_core_core_file_p): Sanity check theJeff Law1-0/+5
value of clicksz to help weed out non HPPA BSD core files.
1994-07-05 Mach 3 support.Stan Shebs5-5/+111
* config.bfd (m88*-*-mach3*, mips*-dec-mach3*, mips*-*-mach3*): New targets. * configure.host (i[34]86-*-mach3*, ns32k-*-mach3*): Recognize "mach3" instead of "mach". (m88*-*-mach3*, mips*-dec-mach3*, mips*-*-mach3*): New hosts. * targets.c (m88kmach3_vec): New target vector. (bfd_target_vector): Add i386mach3_vec and m88kmach3_vec, but inside #if 0. * aoutx.h (some_aout_object_p) [MACH]: Recognize executables by checking for execute permission, instead of looking at entry point. * i386mach3.c: Update, define MACH, N_TXTOFF, N_TXTADDR, N_SHARED_LIB, don't include aout/*.h files, etc. * m88kmach3.c: New file, m88k Mach 3 target. * config/m88k-mach3.mt, config/mips-mach3.mt: New files, target makefile fragments. * config/i386mach3.mh, config/m88kmach3.mh, config/mipsmach3.mh: New files, host makefile fragments. * hosts/m88kmach3.h, hosts/mipsmach3.h: New files, host definitions.
1994-07-05 * elfcode.h (swap_out_syms): Get alignment of common symbol fromIan Lance Taylor2-28/+61
st_value field of saved ELF symbol information, if there is any.
1994-07-05 * som.h (R_HPPA_COMPLEX): Define.Jeff Law2-0/+86
* elf32-hppa.h (R_HPPA_COMPLEX): Define. (elf32_hppa_reloc_type): Delete R_PARISC_STUB_CALL_17.
1994-07-01 * Support code for enabling the new style linker for PA ELF.Jeff Law4-57/+35
* elfcode.h (swap_symbol_in, swap_symbol_out): Externalize. (elf_compute_section_file_positions): Pass link_info to the begin_write_processing hook. (bfd_elf_write_object_contents): Pass NULL for new link_info argument to final_write_processing hook. (elf_link_output_sym): Accept new "input_section" argument for the symbols's input section. All callers changed. Call the link_output_symbol_hook if it's defined. (elf_bfd_final_link): Call the final_write_processing hook if it's defined. * libelf.h (elf_backend_link_output_symbol_hook): Declare. (elf_backend_begin_write_processing): Add new "info" argument. (elf_backend_final_write_processing): Likewise. * elf32-target.h (elf_backend_link_output_symbol_hook): Provide a default definition. (elf32_bed): Add elf_backend_link_output_symbol_hook. * elf64-target.h: Likewise. * Major rework of the PA ELF code. Uses the new style BFD linker, major cleanups. * hppa_stubs.h: Rewrite from scratch. Much smaller and simpler. * elf32-hppa.h: Delete all symbol extension related code. (hppa_look_for_stubs_in_section): Delete decl. (elf32_hppa_size_stubs, elf32_hppa_build_stubs): New decls. * elf32-hppa.c: Symbol extension stuff moved form elf32-hppa.h into elf32-hppa.c. Do not include aout64.h. (typdef hppa_stub_type): Delete. (elf32_hppa_stub_name_list_struct): Delete. (elf32_hppa_stub_description_struct): Delete. (arg_reloc_type): Use simpler enumerations. All references changed. (arg_location, arg_reloc_relocation): Likewise. (elf32_hppa_symextn_map_struct): Delete. (get_symbol_value): Delete. (elf32_hppa_get_sym_extn): Delete. (find_stubs, new_stubs, type_of_mismatch): Delete. (find_stub_by_name, add_stub_by_name): Delete. (hppa_elf_stub_finish, hppa_elf_stub_reloc): Delete. (hppa_elf_arg_reloc_needed): Renamed. Simplify. (hppa_elf_build_linker_stub, hppa_elf_create_stub_sec): Delete. (hppa_elf_long_branch_needed_p): Delete. (hppa_look_for_stubs_in_section): Delete. (hppa_elf_get_section_contents): Delete. (elf32_hppa_backend_symbol_processing): Delete. (elf32_hppa_backend_section_processing): Delete. (elf32_hppa_backend_section_from_shdr): Delete. (elf32_hppa_backend_fake_sections): Delete. (elf32_hppa_backend_section_from_bfd_section): Delete. (NEW_INSTRUCTION): Delete. (CURRENT_STUB_OFFSET): Delete. (elf32_hppa_relocate_section): New function. (elf32_hppa_bfd_final_link_relocate): New function. (elf32_hppa_size_symext): New function. (elf32_hppa_link_output_symbol_hook): New function. (elf32_hppa_read_symext_info): New function. (elf32_hppa_add_symbol_hook): New function. (elf32_hppa_name_of_stub): New function. (elf32_hppa_size_of_stub): New function. (elf32_hppa_build_one_sub): New function. (elf32_hppa_build_stubs): New function. (elf32_hppa_size_stubs): New function. (linker, stub and argument hash tables): Add appropriate structures, definitions and functions to implement all three hash tables. (hppa_elf_relocate_insn): Don't need argument location information in this function. (add_entry_to_symext_chain): Accept a symbol's argument location information rather than the symbol itself. All callers changed. (hppa_elf_gen_reloc_type): Simplify. (hppa_elf_set_section_contents): Stub section is no longer special. (hppa_elf_reloc): Greatly simplify. (elf32_hppa_begin_write_processing): Accept link_info argument. Handle being called from the BFD backend linker. (elf32_hppa_final_write_processing): Likewise. (elf_hppa_tc_make_sections): No longer call stub_finish.
1994-06-30 * ecoffswap.h (ecoff_swap_pdr_in, ecoff_swap_pdr_in) [MPW_C]:Stan Shebs1-0/+5
Alternate versions without ECOFF_64 that chokes MPW C.
1994-06-28Remove more GM-specific stuff.Stan Shebs2-21/+4
1994-06-28 * section.c (bfd_get_section_contents): Put in parens to getSteve Chamberlain1-0/+17
precedence right.
1994-06-27 * libelf.h (relocate_section): New argument "output_names" addedJeff Law1-1/+1
to prototype. * elfcode.h (elf_link_input_bfd): New argument "output_names" added to prototype of relocate_section. Pass the output symbol names to relocate_section. * elf32-i386.c (elf_i386_relocate_section): Use "output_names" to determine the name of a local symbol. * elf32-mips.c (mips_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1994-06-26 * mpw-config.in: Use sed instead of StreamEdit, add definitionsStan Shebs3-9/+27
for mips target. * mpw-make.in: Remove mips targets definitions, add rule to compile with GCC, remove ecoff.c.o and ecofflink.c.o from list of required object files.
1994-06-24 Add Solaris BCP (the part of Solaris which allows it to runPeter Schauer1-0/+13
SunOS4 a.out files) core file handling. * aoutf1.h (external_solaris_bcp_core, swapcore_solaris_bcp): New structure and its swap in function. (internal_sunos_core): New member c_data_addr, to receive the start address of the data section in the core file. (swapcore_sun3, swapcore_sparc, sunos4_core_file_p): Use it. (sunos4_core_file_p): Recognize Solaris BCP core file. (sunos4_core_file_matches_executable_p): Always indicate match for Solaris BCP core files.
1994-06-23 Preliminary support for generating shared libraries, from EricIan Lance Taylor4-22/+85
Youngdale <ericy@cais.cais.com>. * elfcode.h (prep_headers): If DYNAMIC, set e_type to ET_DYN. (elf_link_add_object_symbols): If generating a shared library, create dynamic sections for first input BFD with the right format. (elf_link_create_dynamic_sections): Don't create .interp section if creating a shared library. (elf_link_input_bfd): Skip dynamic sections in input file. (elf_bfd_final_link): If creating a shared library, it's OK for dynobj to have sections which are not SEC_IN_MEMORY. * elf32-i386.c (elf_i386_size_dynamic_sections): Only set .interp section if not creating a shared library. * elf32-sparc.c (elf_sparc_size_dynamic_sections): Likewise.
1994-06-23 * elfcode.h (elf_object_p): Don't set DYNAMIC just because thereIan Lance Taylor2-18/+14
is an SHT_DYNAMIC section.
1994-06-23Change --with-targets to --enable-targets, per GNU coding standards.David MacKenzie2-3/+9
1994-06-23 * linker.c (_bfd_generic_link_add_archive_symbols): InitializeIan Lance Taylor1-0/+3
pass from abfd->archive_pass, and save it there as well.
1994-06-23linker.c (FAIL): Undefine macro before defining as enum.Ken Raeburn2-0/+5
1994-06-22config.bfd (powerpc-*-elf*): New target, like powerpc-*-sysv4*.Ken Raeburn1-0/+5
1994-06-22 * hash.c (bfd_hash_allocate): Don't call bfd_set_error ifIan Lance Taylor2-32/+39
obstack_alloc returns NULL unless the size is non-zero. * linker.c (archive_hash_allocate): Define. (_bfd_generic_link_add_archive_symbols): Use archive_hash_allocate rather than obstack_alloc, for clarity.
1994-06-22 * elfcode.h (elf_get_reloc_upper_bound): Correct.Ian Lance Taylor1-0/+2
1994-06-22 * aout64.c (BMAGIC, QMAGIC): Define if not already defined. FromIan Lance Taylor1-0/+3
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>.
1994-06-22 Linux ZMAGIC support from Eric Youngdale <ericy@cais.cais.com>.Ian Lance Taylor2-4/+29
* libaout.h (struct aoutdata): Add field zmagic_disk_block_size. * aout-target.h (MY(callback)): Only set alignment according to architecture if the section sizes are aligned to that alignment, for backward compatibility. (MY(set_sizes)): Initialize zmagic_disk_block_size field. * aoutx.h (adjust_z_magic): Set ztih if using q_magic_format. Set text section filepos to zmagic_disk_block_size if not ztih. Use a different padding algorithm if not ztih. * i386linux.c (MY_text_includes_header): Don't define.
1994-06-22 * aoutx.h (aout_link_check_ar_symbols): Just skip N_STAB and N_FNIan Lance Taylor2-36/+46
symbols; don't look them up in the hash table. From ralphc@pyramid.com (Ralph Campbell).
1994-06-21 * section.c (bfd_abs_section): Make const.Ian Lance Taylor3-36/+59
(bfd_abs_section_ptr, bfd_is_abs_section): Define. (bfd_und_section): Make const. (bfd_und_section_ptr, bfd_is_und_section): Define. (bfd_com_section): Make const. (bfd_com_section_ptr): Define. (bfd_ind_section): Make const. (bfd_ind_section_ptr, bfd_is_ind_section): Define. (bfd_abs_symbol, bfd_com_symbol): Make const. (bfd_und_symbol, bfd_ind_symbol): Likewise. (global_syms): Cast initialization of section field. (STD_SECTION): Define as const, and cast initializations. * bfd-in2.h: Rebuilt. * Many files: Change uses of bfd_abs_section, etc., to use bfd_abs_section_ptr or bfd_is_abs_section, etc.
1994-06-20 * Many files: change all bfd_target vectors to be const. ChangeIan Lance Taylor29-123/+494
all uses of bfd_target * to be const bfd_target *. Change bfd_target_vector and bfd_default_vector arrays to be const bfd_target * const *.
1994-06-20 * ecoff.c, libecoff.h, ecoffswap.h, coff-alpha.c, coff-mips.c,Ian Lance Taylor6-188/+175
elf32-mips.c: Renamed all externally visible ECOFF routines which are local to BFD to start with _bfd_ecoff instead of just ecoff.
1994-06-20 * ecoff.c (ecoff_swap_tir_in): Change input argument to const.Ian Lance Taylor7-316/+1207
(ecoff_swap_tir_out): Likewise. (ecoff_swap_rndx_in, ecoff_swap_rndx_out): Likewise. (ecoff_slurp_symbolic_info): Add new arguments to correspond to read_debug_info entry point in ecoff_debug_swap structure. Change all calls. * libecoff.h (ecoff_slurp_symbolic_info): Change declaration. * ecoffswap.h (ecoff_swap_tir_in, ecoff_swap_tir_out): Declare. (ecoff_swap_rndx_in, ecoff_swap_rndx_out): Declare. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new ecoff_debug_swap fields. * coff-mips.c (mips_ecoff_backend_data): Likewise. * elf32-mips.c (mips_elf_read_ecoff_info): Undefine READ. (mips_elf_ecoff_debug_swap): Initialize new ecoff_debug_swap fields. * configure.in (bfd_elf32_bigmips_vec): Use ecoff.o and ecofflink.o. (bfd_elf32_littlemips_vec): Likewise. (ecoff_big_vec, ecoff_little_vec): Likewise. (ecoffalpha_little_vec): Likewise. * Makefile.in (BFD_LIBS): Remove ecoff.o and ecofflink.o. (BFD32_BACKENDS): Add ecoff.o and ecofflink.o.
1994-06-20 * aoutx.h (NAME(aout,final_link)): Check flavour of sub, not abfd,Ian Lance Taylor3-10/+16
when computing reloc sizes. From Eric Youngdale <ericy@cais.cais.com>. * elfcode.h (elf_bfd_final_link): Don't try to compute maximum reloc count or size for a non-ELF file.
1994-06-20Comment change.Ian Lance Taylor1-3/+3
1994-06-20 * mipsbsd.c (MY_final_link_callback): Define to avoid warning.Ian Lance Taylor2-0/+9
1994-06-20 * hp300hpux.c (MY_final_link_callback): Define to avoid warning.Ian Lance Taylor2-9/+23
(BMAGIC, QMAGIC): Define; used by aoutx.h. (MY(slurp_symbol_table)): Change translate_from_native_sym_flags calls to use new parameters.
1994-06-17 * aout-target.h (MY(callback)): Set the alignments of the text,Ian Lance Taylor2-0/+18
data and bss sections after determining the architecture.
1994-06-17 * sunos.c (sunos_add_one_symbol): Treat a common symbol from aIan Lance Taylor1-3/+4
dynamic object as being in the .bss section of the object, rather than as being undefined.
1994-06-17 * libhppa.h (bfd_hppa_insn2fmt, hppa_rebuild_insn): Make INLINE.Jeff Law1-0/+2
1994-06-17 * elf32-hppa.h (elf_hppa_final_processing): Delete decl.Jeff Law1-0/+4
1994-06-17 * elfcode.h (elf_link_input_bfd): Don't try to read local symbolsJeff Law2-4/+10
if there aren't any in the input file.
1994-06-16 * config.bfd: If second argument is ``_'', then, instead ofIan Lance Taylor1-0/+6
echoing config file name, echo whether target uses leading underscores on symbol names. Add appropriate settings to different cases. Used by binutils/configure.in to set default for c++filt.
1994-06-16keep makefile.dosKen Raeburn1-0/+1
1994-06-16 * elfcode.h (elf_bfd_final_link): If trying to generate a sharedIan Lance Taylor2-0/+11
object, warn and return false.
1994-06-16Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)Ian Lance Taylor3-0/+638
* i386linux.c: Many new functions and definitions for linker support for Linux shared libraries. * bfd-in.h (bfd_linux_size_dynamic_sections): Declare. * bfd-in2.h: Rebuild.
1994-06-16 * aoutx.h (NAME(aout,some_aout_object_p)): Accept BMAGIC objectsIan Lance Taylor1-1/+2
and treat them as OMAGIC.
1994-06-16 * libelf.h (struct elf_obj_tdata): New field dt_needed_name.Ian Lance Taylor5-1/+23
(elf_dt_needed_name): New accessor macro. * elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name is set, use that instead of the filename for the DT_NEEDED dynamic entry. * elf.c (bfd_elf_set_dt_needed_name): New function. * bfd-in.h (bfd_elf_set_dt_needed_name): Declare. * bfd-in2.h: Rebuilt.
1994-06-15comment on v9 stuffKen Raeburn1-0/+10
1994-06-15added elf64-sparc.*Ken Raeburn1-34/+43
1994-06-15unsanitizing v9Ken Raeburn1-29/+1
1994-06-15regenerated (unsanitize v9)Ken Raeburn1-2/+2
1994-06-15unsanitize v9Ken Raeburn2-105/+8
1994-06-15unsanitize v9Ken Raeburn2-10/+7
1994-06-15Tweak v9 support to ready it for release.Ken Raeburn1-3/+6
1994-06-15 * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add sinterpptrIan Lance Taylor4-16/+28
argument, and set it to the .interp section. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update prototype. (bfd_elf64_size_dynamic_sections): Likewise. * bfd-in2.h: Rebuilt.