Added new files elflink.c, elflink.h, elfcore.h.
authorKen Raeburn <raeburn@cygnus>
Thu, 6 Jul 1995 02:22:00 +0000 (02:22 +0000)
committerKen Raeburn <raeburn@cygnus>
Thu, 6 Jul 1995 02:22:00 +0000 (02:22 +0000)
commitede4eed4838610aaaf1e43571638036ca3819c64
treef959dbd6fbb60e94b3ef82eb74fa2fcfc2da0865
parent80c5739dbe40e1eac02aaf85fa63711c29571a2b
Added new files elflink.c, elflink.h, elfcore.h.

Moved some mostly size-independent stuff from elfcode.h to elf.c, adding a data
structure to elfcode.h with some misc data and callback functions.  Added a
pointer to that structure to the target back end data.  More work can be done
here.

Renamed generic elf routines (not cpu-specific stuff) to start with bfd_elf or
_bfd_elf.  Updated most call sites, sometimes defined some macros.

Moved some dynamic linking support code from m68k, sparc, i386 to common files,
using target back end flags to control behavior.  More work can probably be
done here too.

Moved core- and linker-support code out of elfcode.h to elf.c, elfcore.h,
elflink.h, or elflink.c.  Now elfcode.h contains only .o and executable
support, plus #includes of elfcore.h and elflink.h.  Much of the contents of
these other header files can probably still be moved from the .h files to the
.c files, to get compiled only once.

Cleaned up some "gcc -Wall" warnings regarding unused or uninitialized
variables, in generic and cpu-specific code.
19 files changed:
bfd/.Sanitize
bfd/ChangeLog
bfd/Makefile.in
bfd/elf.c
bfd/elf32-gen.c [new file with mode: 0644]
bfd/elf32-hppa.c
bfd/elf32-i386.c
bfd/elf32-i860.c [new file with mode: 0644]
bfd/elf32-m68k.c
bfd/elf32-m88k.c [new file with mode: 0644]
bfd/elf32-mips.c
bfd/elf32-ppc.c
bfd/elf32-sparc.c
bfd/elfcode.h
bfd/elfcore.h [new file with mode: 0644]
bfd/elflink.c [new file with mode: 0644]
bfd/elflink.h [new file with mode: 0644]
bfd/elfxx-target.h
bfd/libelf.h