Commit Graph

150 Commits

Author SHA1 Message Date
Steve Chamberlain fc2f4c758a Remove i960 b.out bitrot. 1992-03-16 22:59:58 +00:00
Fred Fish 009898fddb Convert calls to bare malloc() to bfd_xmalloc(). 1992-03-15 01:33:32 +00:00
K. Richard Pixley 935325ad0f pass MAKEINFO on recursion 1992-03-14 02:54:17 +00:00
Per Bothner 2a274d5d19 * libbfd-in.h (set_tdata): Make change of Feb 27 in the
actual source file, not just the generated libbfd.h.
1992-03-12 19:17:28 +00:00
John Gilmore 77c3feeed1 mips-big-* target 1992-03-12 06:08:56 +00:00
Steve Chamberlain d446483b5e * coff-i960.c (icoff_little_vec): add COFF_SWAP_TABLE so we can run gdb on little
endian 960 code.
	* archive.c (compute_and_write_armap): indirect symbols should go
	into the archive header too.
1992-03-07 18:36:38 +00:00
John Gilmore 5c12fcf521 * coff-msym.c: Move this file from gdb/ecoff.c. It
handles byte-swapping for ECOFF (MIPS symbol) files.
1992-03-06 07:53:38 +00:00
Steve Chamberlain e7b4046cbf Don't core dump if no output section available for a symbol 1992-02-27 19:22:41 +00:00
Steve Chamberlain 6db82ea7e5 * aoutx.h (translate_from_native_sym_flags): when creating an alias symbol, fill in the section as undefined, rather than leaving it blank 1992-02-27 17:26:08 +00:00
Steve Chamberlain 1d535e75df Wed Feb 26 19:40:59 1992 Steve Chamberlain (sac at thepub.cygnus.com)
* bfd.c: lint
	* coff-h8300.c: fix stupid reloc subtraction bug
	* coffcode.h (coff_swap_aux_out): only swap a tvndx by 2 bytes,
	since that's how wide it is. (coff_slurp_symbol_table): always zero out
	the symbol.flags and done_lineno fields.
1992-02-27 03:52:15 +00:00
Steve Chamberlain d05511ca57 * coffcode.h (coff_swap_aux_in): lint, (coff_print_symbol): prints
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-21 19:06:34 +00:00
Per Bothner 73afbe2809 * PORTING: New (preliminary) porting guide. 1992-02-21 05:56:57 +00:00
John Gilmore 8b87cbae28 * bout.c (callj_callback), coff-a29k.c (a29k_reloc), coff-m88k.c
(howto_hvrt16):  lint.
1992-02-20 16:31:21 +00:00
Per Bothner 9832e16cc3 * hp300bsd.c (new), config/mt-hp300bsd: Make hp300bsd
a full configuration (with possible cross-development),
	instead of using host-aout.c.
1992-02-17 20:04:21 +00:00
Per Bothner adf441b919 * aout-target.h (MY(write_object_contents):
Set obj_reloc_entry_size (abfd).
	* gen-aout.c:  Change to emit a .c files, not a .h file.
1992-02-16 21:05:54 +00:00
Fred Fish 5b3fb53040 Remove obsolete use of BSF_ABSOLUTE and replace with bfd_abs_section ref. 1992-02-14 04:13:53 +00:00
Steve Chamberlain a0f3f080c1 * coffcode.h (get_normalized_symtab): fixed bug where symbols
with more than one auxent can cause nasty core dumps.
1992-02-14 01:37:56 +00:00
Steve Chamberlain 7e1131e1f0 * aoutx.h: (translate_from_native_sym_flags): fix constructor
stuff to use the New Order.
1992-02-04 23:42:34 +00:00
Stu Grossman eca85ebe09 * elf.c (bfd_section_from_shdr): Deal with null return from
bfd_make_section().  (elf_object_p):  Select endianess properly.
1992-01-31 09:37:59 +00:00
John Gilmore e702d26e3b Fix stack in core files. 1992-01-31 09:20:58 +00:00
John Gilmore ab68b260f6 * hosts/h-hp300bsd.h, h-tahoe.h, h-vaxbsd.h, h-vaxult.h:
Specify byte order.
* hosts/h-vaxbsd.h:  Define the form of exec and core files.
1992-01-31 07:59:13 +00:00
John Gilmore 3863d64f95 * Makefile.in: host-aout.c doesn't depend on aout-params.h.
* aout-target.h:  Use TARGET_BIG_ENDIAN_P to set up vector.
* host-aout.c:  Don't use aout-params.h; configure these systems
in their xm files, not in a randomly generated file.
1992-01-31 07:54:12 +00:00
Per Bothner ab43e4e35c Change DEFAULT_VECTOR to host_aout_vec here as well. 1992-01-30 21:04:42 +00:00
Stu Grossman fa8c88b29d * host-aout.c: Change TARGETNAME to "a.out" to be compatible with
gdb.  config/mt-hp300bsd:  Change DEFAULT_VECTOR to host_aout_vec
to prevent undefined symbol.
1992-01-30 19:42:52 +00:00
Steve Chamberlain 21a7f8b6de Various lints found on PersSony
* aoutx.h: cast an enum
	* coff-a29k.c: many ints in reloc structure turned to enum
	* coffcode.h: more enums
	* cpu-h8300.c: more enums
	* opncls.c: more enums
1992-01-30 15:30:34 +00:00
John Gilmore d89b9f991b * configure.in: Make Tahoe configuration work again.
* bfd-in.h:  Remove trailing comma from enum declaration.
* ieee.c:  Can't put byte values >0x7F into a signed char.
1992-01-30 09:21:33 +00:00
Fred Fish d01cd8fc75 Makefile.in: Add dependencies for various coff-*.o files.
elf.c:  Remove extraneous paren from core_prpsinfo and core_prpstatus
macros, rename core_prpstatus to core_prstatus.  Replace references to
old section "size" member with new "_raw_size" member.  Implement
elf_make_empty_symbol, which is now used.
1992-01-29 05:16:49 +00:00
Steve Chamberlain 087eb65291 * coffcode.h (bfd_coff_relax_section): now static.
(bfd_coff_get_relocated_section_contents): various type lints.
1992-01-28 18:48:07 +00:00
Steve Chamberlain 6590a8c953 New entry point in the transfer vector - bfd_relax_section.
* 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-28 06:01:25 +00:00
Steve Chamberlain e98e6ec111 Uses the new small reloc type now.
Currently self hosts on sun4 and sun3
1992-01-24 22:44:51 +00:00
Fred Fish 026fba8c3e Declare various filename variables to be CONST since they are initialized
to point to a CONST char string.  Fixes gcc moans and groans.
1992-01-15 18:06:39 +00:00
Fred Fish f81059ead7 Document changes to hosts/h-amix.h and hosts/h-i386v4.h. 1992-01-11 01:45:53 +00:00
Per Bothner 3f7607af77 * aoutx.h (NAME(aout,find_nearest_line)): Recognize N_SOL symbols,
so that we can emit the correct file name even if it's an include file.
1992-01-10 22:54:39 +00:00
Fred Fish 30bf2fd2f0 Change all '#if HAVE_PROCFS' to '#ifdef HAVE_PROCFS'. 1992-01-01 12:24:48 +00:00
Fred Fish 2e80a74835 Change svr4 references to sysv4. 1991-12-20 20:11:03 +00:00
Stu Grossman 9c96a6bcb0 * bfd-in.h, libaout.h: ANSIfy enums. 1991-12-19 01:19:14 +00:00
Steve Chamberlain 56f5e00599 * archive.c (normalize): created version for VMS which removes the
VMS directory crap from the front and end of a filename, eg turn
	[-.foo]bar.obj;123 into bar.obj
	(bfd_construct_extended_name_table): now writes index into an
	extended name table in decimal - the same base used to read an
	extended name table.
1991-12-19 00:15:54 +00:00
Fred Fish e83f304031 Enclose corename and execname inside a HAVE_PROCFS ifdef, since they
are unused when it is not defined.
1991-12-18 03:51:33 +00:00
John Gilmore c0fcc20765 * hosts/h-*.h: Configure fopen using ../include/fopen-*.h
rather than N copies of the same lines.
1991-12-13 05:02:20 +00:00
Steve Chamberlain 05c6bf2f0b * cpu-h8300.c: disassemble branch displacements correctly
* coff-h8300.c: put reloc offsets out in 32bits
1991-12-12 02:29:39 +00:00
Steve Chamberlain b4e2425020 * cache.c: fopen with new macros is needed for DOS.
* opncls.c, coff-rs6000.c: more fopens with macros.
1991-12-12 01:23:11 +00:00
Steve Chamberlain b645b63248 * makefile.dos, configdj.bat: New files from DJ
* cache.c: fopen with "b" is needed for DOS.
	* ieee.c: environ renamed to envi to stop an include file
	conflict.
	* opncls.c: more fopens with "b"
1991-12-12 00:42:50 +00:00
John Gilmore 0713e3236b Merge Rich's and the gdb-4.3 changes. 1991-12-08 00:30:08 +00:00
John Gilmore 2daa942682 This is the version of devo/bfd/ChangeLog that was in the gdb-4.3 release. 1991-12-08 00:27:19 +00:00
K. Richard Pixley fde8212edc Fri Dec 6 22:58:48 1991 K. Richard Pixley (rich at rtl.cygnus.com)
* Makefile.in: install using INSTALL_DATA, added standards.text
	  support.

	* configure.in: mark directory as target dependent.  configure
	  nows works in objdir always so make file existence checks
	  against ${srcdir}.

Thu Dec  5 22:46:19 1991  K. Richard Pixley  (rich at rtl.cygnus.com)

	* Makefile.in: idestdir and ddestdir go away.  Added copyrights
	  and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
	  and mandir now keyed off datadir by default.
1991-12-07 07:01:15 +00:00
Steve Chamberlain 4e41b5aa40 *** empty log message *** 1991-12-04 18:16:41 +00:00
John Gilmore 40985bbf13 * bfd.c (bfd_get_mtime): Don't cache mtime any more; only
use the saved value if mtime_set is already set (intended
for archive files, though apparently not used yet).
1991-12-04 10:01:45 +00:00
John Gilmore 01a8219f15 * targets.c: Revise comments about how to configure the target
vector, to match reality.  Remove mention of obsolete methods.
Remove long lists of capitalized macros that turn into the same
thing in lowercase.  Normal vector simply lists all known
lowercase xvec names; all other cases are handled by SELECT_VECS.
1991-12-04 07:39:57 +00:00
Per Bothner 7a5f996269 * archive.c (bsd_write_armap): The pad byte sometimes added to
the string table in a __.SYMDEF member is now
	counted as part of the size of the string table.
	This is compatible with the old ranlib, as well as Sun's.
1991-12-03 22:25:01 +00:00
Steve Chamberlain 706e58f11b * srec.c: Rewrote to fix many bugs; now gets the record type
right, doesn't choke on input, sets the start address in an S9 and
	fills in the filename on an S0.
1991-12-03 18:54:50 +00:00