aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
AgeCommit message (Collapse)AuthorFilesLines
1993-04-30 * coffcode.h: use dummy_reloc16_extra_cases rather than casting abort.Jim Kingdon1-3/+13
1993-04-27Support for Hitachi SHSteve Chamberlain1-1/+16
1993-04-25* coffcode.h [_LIT]: Recognize .lit section.Jim Kingdon1-3/+22
1993-04-04 * coffcode.h (coff_set_section_contents): Don't write outSteve Chamberlain1-3/+12
> >> * coffcode.h (coff_set_section_contents): Don't write out sections without a filepos.
1993-02-12 * coffcode.h (coff_set_arch_mach_hook): *FIXME* the H8/300 is alwaysSteve Chamberlain1-0/+15
relaxable. Should be moved somewhere else.
1993-02-03Wed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-17/+2
* coffcode.h: Removed MIPS specific information, since coff-mips.c no longer includes this file.
1993-01-25Mon Jan 25 15:27:36 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-8/+9
* coffcode.h (_bfd_coff_mkobject_hook): Pass aouthdr argument. (coff_mkobject_hook): Accept aouthdr argument. * coffgen.c (coff_real_object_p): Pass aouthdr to mkobject_hook. Handle NULL aouthdr argument. (coff_object_p): If there is no aouthdr, pass it as NULL to coff_real_object_p. * libcoff.h: Rebuilt for mkobject_hook changes.
1993-01-12Mon Jan 11 18:32:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)Ian Lance Taylor1-0/+1
* 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-10Use struct bfd_seclet * rather than bfd_seclet_type in prototypes toIan Lance Taylor1-1/+1
avoid requiring seclet.h before libcoff.h.
1993-01-08 * coffcode.h (sec_to_styp_flags): allow SEC_NEVER_LOAD to turn onSteve Chamberlain1-31/+54
STYP_NOLOAD bit. * coff-z8k.c: delete unused reloc functions
1993-01-08These changes cut the size of libbfd.a on a Sun4 by about 11%.Ian Lance Taylor1-2439/+283
Somewhat more could be done. Fri Jan 8 15:47:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * coffcode.h: Moved many generic functions into coffgen.c. Moved swapping functions into coffswap.h for ECOFF use. Moved relocation functions, only used by h8300 and z8k, into reloc16.c. Added hooks for coffgen.c functions to backend data structure, and added hook functions. Still more could be done. * coffswap.h: New file to hold COFF swapping routines. * coffgen.c: New file to hold generic COFF functions. * reloc16.c: New file to hold h8300 and z8k specific relocation functions. * libcoff-in.h: Added declarations for functions in coffgen.c. * libcoff.h: Rebuilt to incorporate changes. * coff-h8300.c: Function name changes. * coff-z8k.c: Function name changes. Use coff_reloc16_extra_cases hook rather than defining EXTRA_CASES. * Makefile.in: Build new files coffgen and reloc16. Added dependencies of coff-*.o on coffswap.h and seclet.h.
1992-12-22 * bfd-in.h: New macros bfd_asymbol_bfd and bfd_asymbol_flavour;Per Bothner1-6/+7
perhaps we can later remove the the_bfd field from each symbol. * syms.c (struct symbol_cache_entry): Remove unused field app_data. Add comment noting that the_bfd is almost redundant, but not quite. * aoutx.h, coff-a29k.c, coff-i386.c, coff-i960.c, coffcode.h: Use new macros bfd_asymbol_bfd and bfd_asymbol_flavour. * hppa.c (fill_spaces): Make slightly more rebust. * configure.in: Allow std-host as the "default" host.
1992-12-21Mon Dec 21 12:40:10 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-2/+5
* Patches from Minh Tran-le <mtranle@paris.intellicorp.com>. * configure.in (i386-*-isc*, i386-*-aix*): New targets. * configure.host (i386-*-isc*, i386-*-aix*): New hosts. * hosts/i386isc.h, config/i386isc.mh: New files for Interactive Unix. * hosts/i386aix.h, config/i386aix.mh: New files for AIX on PS/2. * aix386-core.c: New file for handling core files on AIX on PS/2. * targets.c: if AIX386_CORE, use aix386_core_vec. * coffcode.h (coff_real_object_p): check for I386SVMAGIC as well as I386MAGIC.
1992-12-04coffcode.h: bfd_coff_std_swap_table is now const and staticKen Raeburn1-3/+1
1992-12-03syms.c (asymbol): Added new field "app_data", for data particular to theKen Raeburn1-1/+113
application. Some of the linker flags ought to get moved to this field someday. archures.c (bfd_default_scan): Recognize a few more numbers: 80486, 80960, and 960. bfd-in.h, bfd.c, targets.c, coffcode.h, coff-mips.c, other targets: Moved COFF swap table to backend data. hosts/i386linux.h: Include unistd.h. aoutx.h, libaout.h, stab-syms.c: stab names are now in constant storage. trad-core.c: Fixed some `PARAMS' uses that were missing parentheses. aoutx.h, archive.c, archures.c, coffcode.h, ctor.c, reloc.c, syms.c: Doc fixes.
1992-11-28* aout-target.h, aoutf1.h, trad-core.c, coffcode.h, libaout.h:John Gilmore1-7/+7
Eliminate all PROTO calls, replace with PARAMS for readability. * aoutx.h: Add type to callback parameter. * coff-mips.c: Don't call trad-core.h, not needed. * trad-core.c: Incorporate trad-core.h declarations. Fix comments. * trad-core.h: Eliminate, unused.
1992-11-06Thu Nov 5 15:34:19 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-2/+14
* section.c: New section bit SEC_SHARED_LIBRARY. coffcode.h (styp_to_sec_flags): if STYP_NOLOAD && (STYP_TEXT || STYP_DATA), set SEC_SHARED_LIBRARY. This seems to be correct for i386-sysv.
1992-11-04(Duplicate change from p3.)Sean Eric Fagan1-6/+10
Only change coff auxent header fields when the circumstances require it. or at least warrant.
1992-10-28(coff_write_object_contents): Zero timestamp field.John Gilmore1-11/+1
1992-10-27Moved in from p3:Ian Lance Taylor1-9/+5
Tue Oct 27 12:24:34 1992 Ian Lance Taylor (ian@cygnus.com) * coffcode.h (coff_swap_aux_out): set the fcnary info before optionally setting the dimen info, since they are in the same memory locations. Also zero out external auxent. (coff_write_symbol): don't zero external auxent; now done in coff_swap_aux_out.
1992-10-23Fri Oct 23 10:32:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1-6/+19
* 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-23Fri Oct 23 08:15:56 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-7/+54
* changes to support i386-sysv with shared libraries: * coffcode.h (sec_to_styp_flags): if TWO_DATA_SECS is defined, check for .data2; if _LIB is defined, check for it; map SEC_NEVER_LOAD to STYP_NOLOAD. (styp_to_sec_flags): map STYP_NOLOAD to SEC_NEVER_LOAD. (make_a_section_from_file): if TWO_DATA_SECS, accept .data2. (coff_write_object_contents): force vaddr of .lib to 0; set scnptr if section has contents, not just if it is loadable; if TWO_DATA_SECS, check for .data2 (coff_set_section_contents): set vma of .lib section to number of .lib sections. * coff-i386.c: define TWO_DATA_SECS; use a special CALC_ADDEND; don't define coff_write_armap to bsd_write_armap. * hosts/i386v.h: don't include <utime.h>, since it is not provided by SVR3.2.
1992-10-15* aout-adobe.c, aoutf1.h, aoutx.h, bout.c coff-m68k.c, coff-z8k.c,John Gilmore1-1/+0
coffcode.h, elf.c, libaout.h, libbfd.h, srec.c: Lint.
1992-10-15* aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,John Gilmore1-12/+3
coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c, sco-core.c: Lint: Second argument of bfd_seek is always file_ptr. Third argument is SEEK_SET or SEEK_CUR. Result is always 0 or -1.
1992-09-29Tue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-13/+0
* Portability fixes from p3: coffcode.h (coff_write_relocs): removed sanity check until it works on all targets (per advice from sac). config/hp9000.mh: new file to define USG. hppa.c: #undef hppa before the JUMP_TABLE. hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not __STDC__. targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make local variable target volatile to avoid mysterious bug in HP9000/700 cc.
1992-09-26Lint; remove bcopy/bzero.John Gilmore1-3/+3
1992-09-25Fri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1-3/+12
* coff-z8k.c: getting closer * coffcode.h (coff_get_relocated_section_contents): allow EXTRA_CASES hooks for different arches to provide different reloc types. * seclet.h: #ifndef around it to allow multiple inclusion * srec.c: minor doc fix
1992-09-11Fri Sep 11 15:37:06 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-5/+58
* coffcode.h (coff_renumber_symbols): set the last renumbered symbol pointer to NULL, as expected by coff_write_linenumbers. (coff_write_relocs): apparently a non-zero addend is OK for reloc type R_IHCONST used on the 29k.
1992-08-24 * coffcode.h (coff_add_missing_symbols): if symbols don't comeSteve Chamberlain1-15/+30
from a coff file (csym is null), dont deref them * ieee.c (parse_expression): get the answer right when adding an abs+(sec+off), (ieee_generic_stat_arch_elt): call ieee_object_p on elts so that filename is filled in.
1992-06-22Lint stuff which didn't make it last timeSteve Chamberlain1-2/+2
1992-06-22Fri Jun 19 20:23:21 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1-14/+3
Lints for bfd_reloc_code_type->bfd_reloc_code_real_type, and correct calling of howto special functions and fixes from Raeburn for gas<>bfdness * archures.c: nuke bfd_reloc_code_type * bout.c, cpu-h8300.c, coff-i960.c, coff-m88k.c: special function lint * coffcode.h (styp_to_sec_flags): STYP_INFO is marked as SEC_NEVER_LOAD, various other bfdgas newness * reloc.c->libbfd.h: change protype of bfd_default_reloc_type_lookup * targets.c: change jump table vector to above
1992-06-17Don't align sections in I960 coff files.Ken Raeburn1-1/+4
(I know there's a GDB freeze on, but this only affects writing i960 coff files, and Steve needs it ASAP.)
1992-06-16[time to file a PR on cvs...]Ken Raeburn1-1/+5
Various changes to get linker working again for a.out: * don't set/adjust section file positions or vmas more than once * use correct page size and segment size when calculating them * deal with some variations in a.out implementations Tested on sun4 and sun4->sun3 so far, will be testing further but needed to get wider exposure&testing. See ChangeLog for details. Also: * coffcode.h (coff_write_relocs): Write out swapped reloc, not pre-swapped version. * hosts/sparc.h (abort, exit): Hide these names if compiling with gcc version 2, to avoid warnings.
1992-05-2629k const fixSteve Chamberlain1-0/+9
1992-05-26Fix some typosSteve Chamberlain1-2/+2
1992-05-26Lots of changes from gas-bfd work. Includes:Ken Raeburn1-43/+230
* working reloc lookup support * better support for creation of COFF files from scratch * misc doc changes, macro tweaks, "const" additions, typo fixes, etc. * one or two ugly kludges that should get cleaned up (but what's one or two more, in BFD?) See ChangeLog for details.
1992-05-02 * coffcode.h (coff_write_object_contents): use RELSZ to work outSteve Chamberlain1-3/+19
size of output reloc struct.
1992-05-01 * coff-a29k.c: various changes to the way relocations work to copeSteve Chamberlain1-20/+20
with the "new order" and latent bugs. * coffcode.h: lint
1992-02-21 * coffcode.h (coff_swap_aux_in): lint, (coff_print_symbol): printsSteve Chamberlain1-121/+120
out tagndx too. * aoutx.h (swap_std_reloc_out, swap_ext_reloc_out): use the output section of a symbol rather than the section of a reffed symbol to determine the r_index of an emmitted reloc.
1992-02-14Fix typeo which crept in between compiling and checking inSteve Chamberlain1-1/+1
1992-02-14 * coffcode.h (get_normalized_symtab): fixed bug where symbolsSteve Chamberlain1-25/+32
with more than one auxent can cause nasty core dumps.
1992-02-07Fluff removal.Steve Chamberlain1-0/+2
1992-02-06 * coffcode.h, libcoff.c: added new fielded to coff_symbol_structSteve Chamberlain1-8/+27
"done_lineno" so that a symbol which appears twice in the symbol table only gets it's linenumbers relocated once. Modifed (coff_write_native_symbol) and (coff_make_empty_symbol) to make
1992-01-28 New entry point in the transfer vector - bfd_relax_section.Steve Chamberlain1-33/+459
* 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-315/+371
Currently self hosts on sun4 and sun3
1991-12-08 * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coff-m88k.c,Steve Chamberlain1-63/+57
coffcode.h, core.c, ctor.c, elf.c, format.c, ieee.c, init.c, libbfd.c, libbfd.h, libcoff.h, opncls.c, reloc.c, section.c, srec.c, syms.c, targets.c : all new documentation and lint removal.
1991-12-07Lint (detected on hp300bsd & sconix)John Gilmore1-30/+15
1991-11-30New documentation styleSteve Chamberlain1-250/+279
1991-11-27 * Makefile.in: added coff-h8300Steve Chamberlain1-143/+222
* configure.in: now h8 is a coff target * cpu-h8300.c: fix various disassembly problems * libcoff.h: took out some code which has been #0ed for a long time. * targets.c: added h8 coff * coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c added new macro RTYPE2HOWTO to take a load of #ifdefs out of coffcode.h * coffcode.h: Started to change the way machine dependencies are handled, from the nest of #ifdefs to macros defined in the including coff-<foo>.c
1991-11-22 * coff-mips.c, coffcode.h: Peter Schauer's patch to kludge inJohn Gilmore1-0/+4
nonstandard MIPS sections (.rdata, .sdata, etc).