aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1993-02-02 * aoutx.h (NAME(aout,slurp_symbol_table)): Made symbolPer Bothner1-0/+6
reading more robust: Fail if string index is out of string table range.
1993-02-02General cleanup--added prototypes, removed a few unused variables,Ian Lance Taylor1-180/+290
fixed up comments a bit. Also set version stamp in a.out header to 0x20a rather than 0, to keep the Ultrix linker happy.
1993-02-02Create a .scommon section for each input BFD so the linker hasIan Lance Taylor2-20/+87
something to attach small common symbols to. Then avoid writing out the (empty) .scommon section for the output BFD. Tue Feb 2 11:41:06 1993 Ian Lance Taylor (ian@cygnus.com) * coff-mips.c: Completed support for linker and binutils.
1993-02-01from ralphc: mips-aout supportKen Raeburn2-1/+469
1993-02-01from ralphc: recognize some mips variantsKen Raeburn1-43/+54
1993-02-01accept mips-dec-bsd* and i?86-*-elfKen Raeburn1-0/+16
1993-02-01changes from Ralph Campbell @ Pyramid for MIPS a.out (BSD 4.4) supportKen Raeburn1-0/+49
1993-01-29Checkpoint. Can now create MIPS style armap hash tables. Fixed someIan Lance Taylor1-35/+189
linker problems. The linker still needs to learn to put SCommon symbols in .sbss rather than .bss.
1993-01-29Fix typo in file name.John Gilmore1-1/+1
1993-01-29Fix minor bugs reported by Carl Greco, <cgreco@parrot.creighton.edu>:John Gilmore2-1/+7
* hosts/delta88.h (strtol): Fix prototype. * config/m88k-coff.mh (SELECT_ARCHITECTURES): Fix name.
1993-01-27Checkpoint. Linker appears to work.Ian Lance Taylor1-95/+151
1993-01-26Tue Jan 26 11:43:14 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor5-36/+41
* section.c (SEC_IS_COMMON): New section flag, needed for MIPS ECOFF which has two common sections. (bfd_com_section): Set SEC_IS_COMMON flag. * bfd-in.h (bfd_is_com_section): New macro to test SEC_IS_COMMON. * aoutx.h, archive.c, bout.c, coff-a29k.c, coff-m88k.c, coff-mips.c, coffgen.c, ieee.c, oasys.c, reloc.c, syms.: Use bfd_is_com_section macro rather than checking for equality to bfd_com_section.
1993-01-25Checkpoint. ld works, ld -r doesn't.Ian Lance Taylor1-260/+930
1993-01-25Mon Jan 25 15:27:36 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor2-32/+45
* 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-25 * coffswap.h (coff_swap_aouthdr_in, coff_swap_aouthdr_in): SwapIan Lance Taylor1-0/+17
additional MIPS ECOFF fields.
1993-01-20Revert yesterday's change (adding casts) at gnu's request.Ian Lance Taylor2-35/+18
1993-01-19Tue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor4-43/+60
* aoutx.h (swap_ext_reloc_in, swap_std_reloc_in), bout.c (b_out_slurp_reloc_table), coff-mips.c (ecoff_swap_reloc_in), coff-msym.c (ecoff_swap_sym_in, ecoff_swap_rndx_in, ecoff_swap_opt_in): Added casts to int to avoid muttering by MIPS compiler.
1993-01-19Checkpoint. Can now read relocs.Ian Lance Taylor1-80/+509
1993-01-19Tue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-0/+2
* bfd-in.h (bfd_asymbol_value): Add needed parentheses.
1993-01-19Tue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-0/+4
* libcoff-in.h: Update prototype for coff_count_linenumbers.
1993-01-15Basically a checkpoint for coff-mips.c.Ian Lance Taylor3-134/+1774
Fri Jan 15 18:13:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * coff-msym.c (ecoff_swap_hdr_out, ecoff_swap_fdr_out, ecoff_swap_pdr_out, ecoff_swap_sym_out, ecoff_swap_ext_out, ecoff_swap_rndx_out, ecoff_swap_rfd_out, ecoff_swap_opt_in, ecoff_swap_opt_out, ecoff_swap_dnr_in, ecoff_swap_dnr_out): New functions. * coffswap.h: If NO_COFF_RELOCS is defined, don't define bfd_swap_reloc_in or coff_swap_reloc_out. * coff-mips.c: Added code to link and write out symbolic debugging information, and to swap relocs in and out.
1993-01-14 * libcoff.h, coffgen.c (coff_count_linenumbers), coffcode.hSteve Chamberlain1-0/+9
(coff_write_object_contents): coff_count_linenumbers returns the number of line number records it found. * coffgen.c (coff_write_linenumbers): only write out line numbers in the section they belong to.
1993-01-12Mon Jan 11 18:32:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)Ian Lance Taylor10-73/+176
* 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 Taylor3-6/+6
avoid requiring seclet.h before libcoff.h.
1993-01-10 * coffgen.c: #include seclet.h.Stu Grossman2-0/+5
1993-01-10 * hppa.c (hppa_object_setup): Get rid of all knowledge of stabsStu Grossman2-64/+37
debug info. Setup info about linker symbols only, and use standard bfd fields to hold the info. * (hppa_object_p): Remove unneeded decls. * (hppa_new_section_hook): Get rid of most of this. * libhppa.h (struct hppadata): Remove ten pounds of useless ugly fat. Remove all knowledge of stabs, remove redundant knowledge of linker symbols. * Remove macros for accessing fields which are now gone.
1993-01-08 * coffcode.h (sec_to_styp_flags): allow SEC_NEVER_LOAD to turn onSteve Chamberlain2-31/+60
STYP_NOLOAD bit. * coff-z8k.c: delete unused reloc functions
1993-01-08Basically a checkpoint.Ian Lance Taylor5-77/+1386
Fri Jan 8 15:47:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * bfd.c (struct _bfd): Added ecoff_tdata to tdata union. * targets.c (enum target_flavour): Added bfd_target_ecoff_flavour. * coff-msym.c: Use DEFUN for function definitons. * coff-mips.c: Added code to read and print symbols, and to find line numbers.
1993-01-08Forgot to commit ChangeLog.Ian Lance Taylor1-1/+25
1993-01-08These changes cut the size of libbfd.a on a Sun4 by about 11%.Ian Lance Taylor8-2558/+3163
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.
1993-01-06use bfd_xmalloc instead of mallocDavid D. Zuhn2-1/+5
1993-01-05Temporary hack until Per's solution gets implemented: If --with-minimal-bfd isKen Raeburn1-0/+5
specified, set MINIMIZE=1. (Not the default.)
1993-01-04 * srec.c (srec_write_records): one of my boards wants a CR betweenSteve Chamberlain1-0/+5
records.
1992-12-30Wed Dec 30 12:46:30 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor2-1/+6
* archive.c (do_slurp_coff_armap): set symdef_count correctly (it broke a couple of weeks ago).
1992-12-30fix libbfd.h declaration, by tweaking elf.c comment, so bfd can compileKen Raeburn2-2/+7
1992-12-30regenerated from current sources - bfd_elf_find_section return type changedKen Raeburn1-1/+1
1992-12-29Tue Dec 29 13:54:35 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-0/+11
* coffcode.h (coff_real_object_p): use name I386AIXMAGIC rather than I386SVMAGIC. (coff_pointerize_aux): don't pointerize a negative tagndx (sometimes generated by SCO 3.2v4 cc). * bout.c (calljx_callback, callj_callback, b_out_get_relocated_section_contents): warn if relocating against an undefined symbol.
1992-12-28* hppa.c: Get rid of DEFUN, use more conventional prolog stuff.Stu Grossman2-200/+261
Make a bunch more routines be static. * hppa.c (fill_spaces): Get rid of this, replace with much better written setup_sections(). * (setup_sections): New routine to create BFD sections for each space and subspace in SOM files. * (hppa_object_setup): Use BFD sections created by setup_sections() to locate GDB symbol table info. * (make_unique_section): New routine to create a BFD section. It ensures that the given name is unique, and will generate a unique one if necessary. * (hppa_object_p): Become much more paranoid about file header. * (make_bfd_asection): Call bfd_make_section to do the dirty work. Simplify code somewhat. * (hppa_core_file_p): Use proper name for stack section. * libhppa.h: Remove millicode_start, millicode_end decls.
1992-12-28today's changesKen Raeburn1-0/+8
1992-12-28note dependencies for coff-z8k.o and -we32k.oKen Raeburn1-1/+5
1992-12-28 * bfd.c (bfd_get_size): New function that gets an upper boundFred Fish2-34/+83
on the possible size of any object in a bfd. * elf.c (bfd_elf_find_section, elf_get_str_section, elf_get_symtab_upper_bound): Rewrite to avoid NULL pointer dereferences. * elf.c (elf_big_vec, elf_little_vec): Document last three members initialized to NULL.
1992-12-25 * hppa.c: change a 'const' to 'CONST', or else HP C compiler diesDavid D. Zuhn2-1/+5
1992-12-24added dvi targetDavid D. Zuhn2-1/+5
1992-12-22 * bfd-in.h: New macros bfd_asymbol_bfd and bfd_asymbol_flavour;Per Bothner6-16/+36
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-22 * hosts/std-host.h: New file. Attempt at a generic/defaultPer Bothner4-204/+161
set of definitions, to discourage porting to new hosts by copying. * hosts/news.h: Removed. * hosts/sparc.h: Use std-host.h.
1992-12-22* bfd.c: Add struct hppa_core_data to tdata union.Stu Grossman2-0/+2
1992-12-22 * hppa.c: Conditionalize on HOST_HPPAHPUX instead of hp9000s800.Stu Grossman1-3/+3
Get rid of HPPA/BSD specific code. That will go somewhere else someday. * (fill_spaces): Don't spin forever and die if you don't find $MILLICODE$ subspace. * (hppa_object_p): Make sure that we have a real honest-to-cthulu exec file! * (hppa_core_file_failing_signal, hppa_core_file_failing_command): Make these work for HPUX. * (make_bfd_asection): New routine to make section creation a little easier. * (hppa_core_file_p): Completely rewrite, leave out bugs. * libhppa.h: #include the right system files. Redefine all of the structs/macros for hacking core files to use more sensible HPUX core file structures. * targets.c (target_vector): Conditionalize hppa_vec on HOST_HPPAHPUX, not hp9000s800. * hosts/hppahpux.h: #include stdlib.h to get correct decls for malloc and realloc. #define HOST_HPPAHPUX.
1992-12-22* hppa.c: Conditionalize on HOST_HPPAHPUX instead of hp9000s800.Stu Grossman3-154/+171
Get rid of HPPA/BSD specific code. That will go somewhere else someday. * (fill_spaces): Don't spin forever and die if you don't find $MILLICODE$ subspace. * (hppa_object_p): Make sure that we have a real honest-to-cthulu exec file! * (hppa_core_file_failing_signal, hppa_core_file_failing_command): Make these work for HPUX. * (make_bfd_asection): New routine to make section creation a little easier. * (hppa_core_file_p): Completely rewrite, leave out bugs. * libhppa.h: #include the right system files. Redefine all of the structs/macros for hacking core files to use more sensible HPUX core file structures. * targets.c (target_vector): Conditionalize hppa_vec on HOST_HPPAHPUX, not hp9000s800. * hosts/hppahpux.h: #include stdlib.h to get correct decls for malloc and realloc. #define HOST_HPPAHPUX.
1992-12-21Mon Dec 21 12:40:10 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor9-129/+303
* 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-18 * aoutf1.h (sunos4_write_object_contents): set flags to 0, fixingSteve Chamberlain1-0/+6
1927.