aboutsummaryrefslogtreecommitdiff
path: root/bfd/seclet.c
AgeCommit message (Collapse)AuthorFilesLines
1993-04-06These changes make shared library support work again on 386 COFFIan Lance Taylor1-4/+1
systems. * coffcode.h (styp_to_sec_flags): Set SEC_SHARED_LIBRARY for a STYP_NOLOAD | STYP_BSS section. Don't set SEC_NEVER_LOAD for a STYP_INFO section. (coff_compute_section_file_positions): Force vma and lma of _LIB section to be zero. (coff_set_section_contents): Count number of entries in new lma field, not in vma. * coffgen.c (make_a_section_from_file): Force lineno_count of SEC_SHARED_LIBRARY section to be zero, since it is non-zero on the SCO 3.2v4 shared library. * seclet.c (rel): Copy over any section with contents, not just loadable sections. * coff-mips.c (ecoff_make_empty_symbol): Zero out newly allocated symbol.
1993-04-02 * seclet.c (seclet_dump_seclet): Correct SEC_HAS_CONTENTS test.Ian Lance Taylor1-1/+1
1993-03-12 * section.c (bfd_set_section_contents): whitespacsSteve Chamberlain1-0/+5
* seclet.c (seclet_dump_seclet): Don't try and fill sections with no contents.
1993-02-16Added 1993 copyrights to files that I have changed in 1993. Some wereIan Lance Taylor1-1/+1
missing 1992 copyrights, although they changed in 1992.
1993-01-12Mon Jan 11 18:32:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)Ian Lance Taylor1-44/+75
* targets.c (bfd_target): Added relocateable argument to _bfd_get_relocated_section_contents. Added _bfd_seclet_link target vector for linker use. * bfd.c (bfd_seclet_link): New macro. * bfd-in.h (JUMP_TABLE): Added _bfd_seclet_link. * seclet.c (rel, seclet_dump_seclet): Added relocateable argument and boolean return value. Made static. (bfd_generic_seclet_link): Renamed from seclet_dump. Added relocateable argument. * reloc.c (bfd_generic_get_relocated_section_contents): Added relocateable argument (if relocateable, saves relocs). * bout.c (b_out_get_relocated_section_contents), reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): Added relocateable argument (if relocateable, just calls bfd_generic_get_relocated_section_contents). * libcoff-in.h (bfd_coff_reloc16_get_value): Added relocateable argument to prototype. * All targets: Set new _bfd_seclet_link vector to bfd_generic_seclet_link.
1993-01-06use bfd_xmalloc instead of mallocDavid D. Zuhn1-1/+1
1992-10-23Fri Oct 23 10:32:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1-0/+1
* seclet.c (rel): don't load sections without the SEC_LOAD bit. Thu Oct 15 10:16:35 1992 Steve Chamberlain (sac@thepub.cygnus.com) * coff-m68k.c (m68k_howto2type, SELECT_RELOC): new function to work out a coff relocation type from a howto's attributes rather than using the input r_type field. This fixes PR1677 and allows conversion of a.out relocs to coff relocs. * coffcode.h (coff_write_relocs): if supplied a relocation relative to an absolute symbol, use the right symbol index. * reloc.c (bfd_perform_relocation): do a partial link for coff relocs right.
1992-10-02avoid compiler warningsDavid D. Zuhn1-1/+1
1992-09-02Add copyright notice.Per Bothner1-0/+20
1992-08-27 * bout.c: added support for relaxable alignment relocs.Steve Chamberlain1-10/+11
* seclet.c (rel, seclet_dump_seclet, seclet_dump): get the app to pass down pointer to play area rather than use alloca
1992-07-16 * bfd-in.h : add BFD_IS_RELAXABLE flagSteve Chamberlain1-1/+2
* bout.c (bout_swap_exec_header_[in_out]): new field in exec header e_relaxable, major hackery in callbacks * libaout.h : add space for a_relaxable. * seclet.c (rel): don't relax empty sections
1992-05-26 * coff-a29k.c: do byte relocs correctlySteve Chamberlain1-1/+2
* coffcode.h (styp_to_sec_flags): never load INFO sections * seclet.c (rel): don't relocate INFO sections
1992-05-05LintSteve Chamberlain1-1/+1
1992-05-04 * bfd-in.h: bump version to 1.96Steve Chamberlain1-2/+4
Major change; changed calling convention for bfd_get_relocated_section_contents so that caller allocates memory for section data. * coffcode.h (bfd_coff_get_relocated_section_contents), reloc.c, seclet.c, targets.c, bfd.c: reflect new convention. * coffcode.h (styp_to_sec_flags): if styp_flags is not a special case, then use reasonable default values for SEC_* flags.
1992-04-17Fri Apr 17 09:15:31 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1-29/+26
* bfd.c, Makefile.in: added tekhex * aoutx.h (set_section_contents): pages should be padded to the size of a page, not the size of a segment. * configure.in: added go32 host and i386-aout target. * i386aout.c, libaout.h: now works for go32 target * ieee.c: fix bit rot. * seclet.c: support for padding seclet type.
1992-01-28 New entry point in the transfer vector - bfd_relax_section.Steve Chamberlain1-241/+0
* aout-target.h: add to vector, call generic_relax * bfd-in.h: add to vector * bfd.c: add #define for vector * bout.c: add to vector, call generic_relax * coffcode.h: add to vector, also now has coff specific relax code for the relaxable H8/300 relocs. Also clean up abs section cruft. * elf.c: call generic_relax * ieee.c: call new vector, clean up some bugs due to the creation of bfd_abs_section * libbfd.h: add bfd_generic_relax_section EXFUN * oasys.c: call generic_relax * reloc.c: implement generic_relax * seclet.c: moved much of this into coffcode.h * srec.c: call generic_relax * targets.c: define new transfer vector
1992-01-24Uses the new small reloc type now.Steve Chamberlain1-0/+370
Currently self hosts on sun4 and sun3