aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-01-11Set lose_these_too correctlyStan Shebs2-4/+11
1994-01-10 * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RTJeff Law1-0/+5
field selectors.
1994-01-09* config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec, for compatibilityKen Raeburn1-0/+4
with 386bsd and netbsd0.8.
1994-01-07 * aoutx.h (adjust_z_magic): Don't merge the start of bss with theDavid MacKenzie2-5/+17
end of data if they are not contiguous.
1994-01-07 * aoutf1.h (sunos4_aout_backend): Comment the fields' meanings.David MacKenzie1-0/+4
1994-01-07 * ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flagIan Lance Taylor2-3/+11
for .reginfo section here. (ecoff_new_section_hook): Set it here instead.
1994-01-07Fri Jan 7 10:34:47 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-285/+314
* mpw-make.in: Replace 8-bit chars with their names. * coffswap.h (coff_swap_scnhdr_out): Add alternative version with partly-expanded macros.
1994-01-07Fri Jan 7 10:29:27 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-4/+24
* bfd-in.h: (bfd_boolean): Add workaround for systems that also define true and false as enums. (ALMOST_STDC): Add as alternative to __STDC__. * bfd-in2.h: Rebuilt. * syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.
1994-01-07Various entries.Ian Lance Taylor1-0/+24
1994-01-07Really remove files that are no longer used.Ian Lance Taylor3-74/+0
1994-01-07 * targets.c (target_vector): Added nlm32_alpha_vec inside #ifdefIan Lance Taylor1-68/+58
BFD64. * Makefile.in (BFD32_BACKENDS): Remove nlm32-alpha.o. (BFD64_BACKENDS): Add nlm32-alpha.o. It depends on 64 bit support, even though it is for an Alpha in 32 bit mode. * configure.in (nlm32_alpha_vec): Set target64 to true. * nlm32-gen.c, nlm64-gen.c: Removed. All nlm targets are different, so there is no point to providing a generic one. * libnlm.h: Don't bother to check for nlm_backend(bfd) being NULL in the backend accessor macros; that should no longer be possible. * targets.c (target_vector): Removed nlm32_big_generic_vec, nlm64_big_generic_vec, nlm64_little_generic_vec. * configure.in (nlm32_big_generic_vec, nlm32_little_generic_vec, nlm64_big_generic_vec, nlm64_little_generic_vec): Removed. * Makefile.in: Rebuilt dependencies, and (BFD32_BACKENDS): Removed nlm32-gen.o. (BFD64_BACKENDS): Removed nlm64-gen.o. (CFILES): Removed nlm32-gen.c and nlm64-gen.c.
1994-01-06 * aoutx.h (translate_to_native_sym_flags): Catch the case whereDavid MacKenzie2-9/+18
there is no output section.
1994-01-06 * hp300hpux.c (ARCH_SIZE): Define before including aoutx.h.Ian Lance Taylor1-0/+2
1994-01-06Various entries.Ian Lance Taylor1-0/+72
1994-01-06 * ecoff.c: First cut at new style of linker backend forIan Lance Taylor4-343/+1376
ECOFF--added a bunch of functions. Also: (ecoff_sec_to_styp_flags): Set flags for .pdata and .xdata. (ecoff_slurp_symbolic_header): New function. (ecoff_slurp_symbolic_info): Call ecoff_slurp_symbolic_header. (ecoff_compute_reloc_file_positions): New function. (ecoff_set_section_contents): Get out quickly if count is zero. Check errors better. (ecoff_write_object_contents): Put .xdata section in data segment. Call ecoff_compute_reloc_file_positions. Don't output relocs or external symbols if outsymbols is NULL. (ecoff_bfd_final_link): Completely rewritten. * libecoff.h: Include bfdlink.h. (struct ecoff_backend_data): Add relocate_section field. (ecoff_data_type): Add sym_hashes and symndx_to_section fields. (struct ecoff_link_hash_entry): Define. (struct ecoff_link_hash_table): Define. (ecoff_bfd_link_add_symbols): Declare as function, not macro. (ecoff_bfd_link_hash_table_create): Likewise. * ecofflink.c (bfd_ecoff_debug_one_external): New function. (bfd_ecoff_debug_externals): Call bfd_ecoff_debug_one_external. * bfd-in.h (bfd_ecoff_debug_one_external): Declare. * bfd-in2.h: Rebuilt. * coff-alpha.c (alpha_howto_table): Mark BRADDR as partial_inplace, and set the src_mask to 0x1fffff. (alpha_ecoff_get_relocated_section_contents): Remove unused variable gp_warned. (alpha_convert_external_reloc): New static function. (alpha_relocate_section): New static function. (alpha_ecoff_backend_data): Initialize relocate_section field. * coff-mips.c (mips_relocate_refhi): New static function. (mips_relocate_section): New static function. (mips_ecoff_backend_data): Initialize relocate_section field.
1994-01-06 * aoutx.h (NAME(aout,final_link)): Don't abort when trying to linkIan Lance Taylor1-41/+80
a non a.out file, just pass it to _bfd_default_link_order. (aout_link_input_section_std): When doing a final PC relative link against a section symbol, subtract the VMA of the input section. (aout_link_input_section_ext): Likewise.
1994-01-06 * linker.c (_bfd_generic_link_add_one_symbol): Add constructor andIan Lance Taylor2-143/+831
bitsize arguments. Changed all callers (aoutx.h). (default_indirect_link_order): Renamed from _bfd_generic_indirect_link_order and made static. (_bfd_generic_final_link): Don't switch on link_order type, just call _bfd_default_link_order. (_bfd_default_link_order): Handle bfd_indirect_link_order type. * genlink.h: Removed declaration of _bfd_generic_indirect_link_order. * elf32-mips.c (mips_elf_final_link): Don't switch on link_order type, just call _bfd_default_link_order.
1994-01-05fix comment delimitersDavid D. Zuhn1-1/+1
1994-01-04Remove ChangeLog entry, since one change was backed out immediately andStan Shebs1-5/+0
the other never committed.
1994-01-04Mon Jan 3 10:59:28 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs6-2/+607
* mpw-config.in: New file, MPW version of configure.in. * mpw-make.in: New file, MPW version of Makefile.in. * hosts/mpw.h: New file, MPW host definitions. Mon Jan 3 13:00:07 1994 Stan Shebs (shebs@andros.cygnus.com) * mpw-xconfig.in: New file, mpw x mips configuration bits.
1994-01-04Mon Jan 3 10:59:28 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-4/+116
* mpw-config.in: New file, MPW version of configure.in. * mpw-make.in: New file, MPW version of Makefile.in. * hosts/mpw.h: New file, MPW host definitions.
1994-01-04 * aout-target.h (MY(vec)): Add DYNAMIC to mask of object flags.David MacKenzie1-0/+10
* aoutf1.h (NAME(aout,sunos4_write_object_contents)): If the DYNAMIC flag is set, set it in the exec header. * aoutx.h (NAME(aout,some_aout_object_p)): If the object is dynamically linked, set the DYNAMIC flag in the BFD. * libaout.h (N_SET_DYNAMIC): New macro. (N_DYNAMIC): Add missing 0 in mask.
1994-01-03 * bfd-in.h, hash.c: Change bfd_hash_allocate argument from size_tIan Lance Taylor1-0/+4
to unsigned int, because size_t may not be defined in bfd.h. * bfd-in2.h: Rebuilt.
1994-01-03Mon Jan 3 13:05:08 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-4/+9
* syms.c (bfd_print_symbol_vandf): Change PTR to FILE *. * hosts/irix4.h (exit): Declare properly.
1994-01-03Entry for making swapping retrieval routines take const argument.Ian Lance Taylor1-0/+13
1994-01-03 * bfd-in.h (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument toIan Lance Taylor2-36/+36
be a const pointer. * bfd-in2.h: Rebuilt. * libbfd.c (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to be a const pointer. * targets.c (bfd_target): Change swap function pointers accordingly. * archive.c (do_slurp_coff_armap): Change swap accordingly. * aix386-core.c: Change NO_GET and NO_GETS accordingly. * hppabsd-core.c, hpux-core.c, irix-core.c, osf-core.c, ptrace-core.c, trad-core.c: Change NO_GET and NO_SIGNED_GET accordingly.
1994-01-03Renamed get_elt_at_filepos to _bfd_get_elt_at_filepos, and made itIan Lance Taylor2-8/+8
non-static.
1994-01-03 * libbfd-in.h (struct artdata): Added tdata field.Ian Lance Taylor5-102/+154
(_bfd_add_bfd_to_archive_cache): Declare. (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr. * libbfd.h: Rebuilt. * archive.c: Cleaned up some more. (_bfd_generic_mkarchive, bfd_generic_archive_p): Initialize pointer elements of artdata. (_bfd_add_bfd_to_archive_cache): Renamed from add_bfd_to_cache. (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr. (get_extended_arelt_filename, get_elt_at_filepos, bfd_construct_extended_name_table, bfd_ar_hdr_from_filesystem, compute_and_write_armap): Made static. * ecoff.c: Some comment changes. (ecoff_slurp_armap): Handle rename of snarf_ar_hdr. Set ardata->tdata to raw_armap. (ecoff_archive_p): Initialize pointer elements of artdata. * coff-rs6000.c (rs6000coff_get_elt_at_filepos): Handle rename of add_bfd_to_cache.
1994-01-03 * bfd.texinfo: Added Hash Tables node.Ian Lance Taylor1-0/+7
* Makefile.in (DOCFILES): Added hash.texi. (SRCDOC): Added hash.c. (hash.texi): New target.
1994-01-03 * hash.c: Added some documentation.Ian Lance Taylor2-0/+270
1994-01-03 * aout-target.h, netbsd386.c: Replace NO_SWAP_MAGIC with SWAP_MAGIC,Jim Kingdon3-8/+17
and do the swapping here rather than calling ntohl from the N_* macros. This cleans up assumptions about the size of a host long, the existence to ntohl, etc.
1994-01-01 * hosts/i386mach3.h (HOST_SEGMENT_SIZE): Fix value.David MacKenzie1-0/+1
1994-01-01 * config.bfd: Add support for VSTa micro-kernel. It currently usesRob Savoye1-0/+5
i386-aout.
1994-01-01 * i386mach3.c (SEGMENT_SIZE): Fix value.David MacKenzie1-0/+4
1993-12-31 Minor cleanups suggested by CodeCenter.Ian Lance Taylor6-34/+85
* aoutx.h, coffgen.c, ecoff.c, ecofflink.c, elf.c, libbfd.c, linker.c, reloc.c, section.c, srec.c: Added /*ARGSUSED*/ as appropriate. * aoutx.h (struct external_exec): Removed unnecessary declaration. (NAME(aout,some_aout_object_p)): Set some tdata pointers to NULL. (adjust_z_magic): Removed useless variable data_vma. (stringtab_init): Initialize hash_zero. (add_to_stringtab): Removed unused fourth argument. (NAME(aout,swap_std_reloc_out)): Removed useless variable r_addend. (aout_link_input_section): Added some casts. * archive.c (get_extended_arelt_filename, do_slurp_coff_armap, bfd_ar_hdr_from_filesystem, bsd_write_armap, coff_write_armap): Minor code rewriting to make it more C like. (do_slurp_bsd_armap): Added some casts. * ecoff.c (ecoff_write_object_contents): Removed useless variable scn_base. (ecoff_write_armap): Added some casts. Use "" rather than "\0". * ecofflink.c (bfd_ecoff_write_debug): Added a cast. * libaout.h (struct internal_exec): Removed unnecessary declaration. * linker.c (_bfd_generic_indirect_link_order): Added a cast. * opncls.c (new_bfd): Removed a cast. * reloc.c (bfd_generic_get_relocated_section_contents): Added some casts. * srec.c (internal_srec_write_object_contents): Removed useless variable bytes_written.
1993-12-31 * i386mach3.c (N_TXTADDR): Don't define after all.David MacKenzie2-5/+10
(TEXT_START_ADDR): Don't include exec header size in value.
1993-12-30Define N_TXTADDRDavid MacKenzie2-0/+62
1993-12-30Rebuilt after removal of seclet.c from doc/Makefile.in.Ian Lance Taylor1-6/+0
1993-12-30Makefile.in: Delete all references to seclet.c, since it's just been deleted.Ken Raeburn2-14/+33
Don't mention hash.c, linker.c, or genlink.h yet, since they don't contain documentation yet (hint, hint!).
1993-12-30Added new files for linker support, and removed old seclet files.Ian Lance Taylor6-242/+1771
1993-12-30 Extensive changes to move the bulk of the linker into BFD so thatIan Lance Taylor29-659/+4752
more efficient backend code can be written for specific object files. Only existing efficient backend is a.out. * seclet.c, seclet.h: Removed. * hash.c, linker.c, genlink.h: New files. * bfd-in.h: Removed bfd_error_vector. Declared hash table structures and functions. (JUMP_TABLE): Removed bfd_seclet_link, added bfd_link_hash_table_create, bfd_link_add_symbols and bfd_final_link. * All backends: Changed accordingly. * bfd-in2.h: Rebuilt. * bfd.c (struct _bfd): Added link_next and archive_pass fields. Removed ld_symbols field. (bfd_nonrepresentable_section, bfd_undefined_symbol, bfd_reloc_value_truncated, bfd_reloc_is_dangerous, bfd_error_vector): Removed. (bfd_default_error_trap, bfd_error_trap, bfd_error_nonrepresentabltrap): Removed. (bfd_get_relocated_section_contents): Pass link_info. Pass link_order instead of seclet. Pass symbols. (bfd_relax_section): Pass link_info. (bfd_seclet_link): Removed. (bfd_link_hash_table_create, bfd_link_add_symbols, bfd_final_link): New macros. * libbfd-in.h: If __GNUC__ is defined and alloca is not, define alloca as __builtin_alloca. Declare internal linking functions. * libbfd.h: Rebuilt. * libbfd.c (bfd_seek): Comment out fseek assertion. It's worked for months. * reloc.c (reloc_howto_type): Added error_message argument to special_function field. Changed all callers and all definitions. (bfd_get_reloc_size): Make argument a const pointer. (bfd_perform_relocation): Add error_message argument to hold string set if return value if bfd_reloc_dangerous. Changed all callers. (_bfd_final_link_relocate, _bfd_relocate_contents): New functions. * section.c (asection): Renamed seclets_head and seclets_tail to link_order_head and link_order_tail. * targets.c (bfd_target): Replaced seclet argument with link_info and link_order and symbols arguments in bfd_get_relocated_section_contents. Added symbols argument to bfd_relax_section. Removed bfd_seclet_link. Added bfd_link_hash_table_create, bfd_link_add_symbols and bfd_final_link. * libaout.h (struct aoutdata): Added external_syms, external_sym_count, external_strings, sym_hashes fields. (obj_aout_external_syms, obj_aout_external_sym_count, obj_aout_external_strings, obj_aout_sym_hashes): New accessor macros. (WRITE_HEADERS): Only output symbols if outsymbols is not NULL. * aoutx.h: Wrote new back end linker routines. (translate_to_native_sym_flags): Return boolean value. Don't use bfd_error_vector. (NAME(aout,write_syms)): Return boolean value. Check return value of translate_to_native_sym_flags and bfd_write. * aout-target.h (final_link_callback): New function. (MY_bfd_final_link): New function. * aout-adobe.c (aout_adobe_write_object_contents): Check return value of aout_32_write_syms. * hp300hpux.c (MY(write_object_contents)): Likewise. * i386lynx.c (WRITE_HEADERS): Likewise. * libaout.h (WRITE_HEADERS): Likewise. * bout.c: Changed functions to use link_info->callbacks rather than bfd_error_vector, and link_orders rather than seclets. * coff-alpha.c: Likewise. * coff-h8300.c: Likewise. * coff-h8500.c: Likewise. * coff-sh.c: Likewise. * coff-z8k.c: Likewise. * elf32-hppa.c: Likewise. * reloc16.c: Likewise. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Look up _gp in the hash table rather than in outsymbols. * coff-a29k.c (a29k_reloc): Pass errors back in new error_message argument rather than printing them. * coffcode.h (bfd_coff_reloc16_extra_cases): Take link_info and link_order arguments rather than seclet. Changed all uses and definitions. (bfd_coff_reloc16_estimate): Pass link_info arguments. Changed all uses and definitions. * libcoff.h: Rebuilt. * ecoff.c (ecoff_get_extr): If symbol is defined by linker, but not by ECOFF, make it scAbs. (ecoff_bfd_final_link): Renamed from ecoff_bfd_seclet_link and rewritten. * elf32-mips.c (mips_elf_final_link): Renamed from mips_elf_seclet_link and rewritten. * elf32-hppa.c (elf32_hppa_stub_description): Added link_info field. (new_stub, add_stub_by_name, hppa_elf_build_arg_reloc_stub, hppa_elf_build_long_branch_stub, hppa_look_for_stubs_in_section): Added link_info arguments. Changed all callers. * elfcode.h (elf_slurp_symbol_table): Don't quit if outsymbols is not NULL. * oasys.c (oasys_write_sections): Return boolean value rather than using bfd_error_vector. (oasys_write_object_contents): Check return value of oasys_write_sections. * hosts/std-host.h: Don't declare qsort or strtol. * Makefile.in: Rebuild dependencies. (BFD_LIBS): Removed seclet.o. Added hash.o and linker.o. (CFILES): Removed seclet.c. Added hash.c and linker.c. (HFILES): Removed seclet.h. Added genlink.h.
1993-12-30 * section.c (bfd_get_section_contents): Return zero filled bufferPeter Schauer2-27/+38
if section has no contents.
1993-12-28 * elf.c (bfd_elf_generic_reloc): If this is not an inplace reloc,Ian Lance Taylor2-21/+21
then skip bfd_perform_relocation even if the addend is non-zero.
1993-12-21changes so farKen Raeburn1-0/+20
1993-12-21(coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy addend to r_offset field.Ken Raeburn1-37/+35
1993-12-21added coff-sparc.c to CFILES, rebuilt dependenciesKen Raeburn1-2/+9
1993-12-21(aix386_core_file_p): Use cd_regs[0] for computing the offsetof because AIXKen Raeburn1-0/+341
/bin/cc does not like to take the address of an array. (From Minh Tran-Le.)
1993-12-16 * hosts/hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.Jeff Law1-0/+4
1993-12-15cleanups and mach3 changesDavid MacKenzie2-1/+15
1993-12-15 * som.c (som_begin_writing): Fix thinkos in auxiliary headerJeff Law1-0/+6
support. (bfd_som_attach_aux_hdr): Likewise.