NetBSD/gnu/dist/bfd
kristerw ab2e248758 NetBSD always saves a_midmag as big-endian, but libbfd use the same
endianess as the arch in its internal structures, so we may have to change
the byte order when we write the exec header. The problem is that we need
the little endian version for libbfd to DTRT with the rest of the file.

Solve this by writing the exec header after the rest of the file has been
written.
1998-12-21 03:27:02 +00:00
..
doc stock binutils-2.8 1997-09-24 15:39:15 +00:00
hosts stock binutils-2.8 1997-09-24 15:39:15 +00:00
COPYING stock binutils-2.8 1997-09-24 15:39:15 +00:00
ChangeLog stock binutils-2.8.1 1997-09-24 18:54:18 +00:00
ChangeLog.1 stock binutils-2.8 1997-09-24 15:39:15 +00:00
ChangeLog.2 stock binutils-2.8 1997-09-24 15:39:15 +00:00
Makefile.in Incorporate (machine dependent) code for support of NetBSD/arm32. 1998-05-19 18:53:19 +00:00
PORTING stock binutils-2.8 1997-09-24 15:39:15 +00:00
README stock binutils-2.8 1997-09-24 15:39:15 +00:00
TODO stock binutils-2.8 1997-09-24 15:39:15 +00:00
VERSION stock binutils-2.8.1 1997-09-24 18:54:18 +00:00
acconfig.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
aclocal.m4 stock binutils-2.8 1997-09-24 15:39:15 +00:00
aix386-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout-adobe.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout-arm.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout-encap.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout-ns32k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout-sparcle.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout-target.h Changes to make strip and objcopy work for a.out 1998-11-21 22:42:32 +00:00
aout0.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout32.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aout64.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
aoutarm32.c Incorporate (machine dependent) code for support of NetBSD/arm32. 1998-05-19 18:53:19 +00:00
aoutf1.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
aoutx.h Infrastructure changes needed by gas a.out support. 1998-09-13 09:30:34 +00:00
archive.c ...And calculate same when building the armap (for ranlib). 1998-05-25 23:36:43 +00:00
archures.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
armnetbsd.c Incorporate (machine dependent) code for support of NetBSD/arm32. 1998-05-19 18:53:19 +00:00
bfd-in.h Infrastructure changes needed by gas a.out support. 1998-09-13 09:30:34 +00:00
bfd-in2.h Add ARM relocs (and upcoming BFD_PIC) for automatically generating bfd.h. 1998-08-21 21:08:22 +00:00
bfd.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
binary.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
bout.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cache.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cf-i386lynx.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cf-m68klynx.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cf-sparclynx.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cisco-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-a29k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-alpha.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-apollo.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-arm.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-aux.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-go32.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-h8300.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-h8500.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-i386.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-i860.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-i960.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-m68k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-m88k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-mips.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-pmac.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-ppc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-rs6000.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-sh.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-sparc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-svm68k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-u68k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-w65.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-we32k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coff-z8k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coffcode.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
coffgen.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cofflink.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
coffswap.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
config.bfd for sparc-*-netbsd, also enable elf32_sparc & sunos_big. add new target, tentatively named sparc-*-netbsdelf, that uses elf32_sparc as the default target. 1998-12-16 14:31:00 +00:00
config.in stock binutils-2.8 1997-09-24 15:39:15 +00:00
configure add sparc64--netbsd support. enable all sparc targets for sparcnetbsd_vec 1998-11-21 17:51:11 +00:00
configure.bat stock binutils-2.8 1997-09-24 15:39:15 +00:00
configure.com stock binutils-2.8 1997-09-24 15:39:15 +00:00
configure.host Allow mips{eb,el}-*-netbsd* in configuration, setting default accordingly, 1998-07-27 01:44:10 +00:00
configure.in add sparc64--netbsd support. enable all sparc targets for sparcnetbsd_vec 1998-11-21 17:51:11 +00:00
corefile.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-a29k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-alpha.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-arm.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-d10v.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-h8300.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-h8500.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-hppa.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-i386.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-i860.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-i960.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-m32r.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-m68k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-m88k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-m10200.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-m10300.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-mips.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-ns32k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-powerpc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-rs6000.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-sh.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-sparc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-vax.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-w65.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-we32k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
cpu-z8k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
demo64.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
dep-in.sed stock binutils-2.8 1997-09-24 15:39:15 +00:00
ecoff.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
ecofflink.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
ecoffswap.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf-bfd.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf-m10200.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf-m10300.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-d10v.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-gen.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-hppa.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-hppa.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-i386.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-i860.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-m32r.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-m68k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-m88k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-mips.c Revert previous patch. Replace with patch from Cygnus binutils 1998-11-01 22:01:14 +00:00
elf32-ppc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-sh.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32-sparc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf32.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf64-alpha.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf64-gen.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf64-mips.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf64-sparc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elf64.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elfcode.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
elfcore.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
elflink.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
elflink.h stock binutils-2.8.1 1997-09-24 18:54:18 +00:00
elfxx-target.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
evax-alpha.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
evax-egsd.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
evax-emh.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
evax-etir.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
evax-misc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
evax.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
filemode.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
format.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
freebsd.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
gen-aout.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
genlink.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
hash.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
host-aout.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
hp300bsd.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
hp300hpux.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
hppa_stubs.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
hppabsd-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
hpux-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386aout.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386bsd.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386dynix.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386freebsd.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386linux.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386lynx.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386mach3.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386msdos.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
i386netbsd.c Define DEFAULT_ARCH, DEFAULT_MID for netbsd.h 1997-09-24 18:39:10 +00:00
i386os9k.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
ieee.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
ihex.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
init.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
irix-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
libaout.h Teach bfd that NetBSD/vax can have two MIDs. 1998-10-12 01:43:38 +00:00
libbfd-in.h Use a pointer, not an array, for bfd_target_vector, working around our 1998-08-21 02:06:09 +00:00
libbfd.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
libbfd.h Use a pointer, not an array, for bfd_target_vector, working around our 1998-08-21 02:06:09 +00:00
libcoff-in.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
libcoff.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
libecoff.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
libhppa.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
libieee.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
libnlm.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
liboasys.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
linker.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
lynx-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
m68k4knetbsd.c Define DEFAULT_ARCH, DEFAULT_MID for netbsd.h 1997-09-24 18:39:10 +00:00
m68klinux.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
m68klynx.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
m68knetbsd.c Define DEFAULT_ARCH, DEFAULT_MID for netbsd.h 1997-09-24 18:39:10 +00:00
m88kmach3.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
makefile.dos stock binutils-2.8 1997-09-24 15:39:15 +00:00
makefile.vms stock binutils-2.8 1997-09-24 15:39:15 +00:00
mipsbsd.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
mpw-config.in stock binutils-2.8 1997-09-24 15:39:15 +00:00
mpw-make.sed stock binutils-2.8 1997-09-24 15:39:15 +00:00
netbsd-core.c Properly error out if we fail to malloc memory for the asection. 1997-12-17 02:26:47 +00:00
netbsd.h NetBSD always saves a_midmag as big-endian, but libbfd use the same 1998-12-21 03:27:02 +00:00
newsos3.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm-target.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm32-alpha.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm32-i386.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm32-ppc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm32-sparc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm32.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlm64.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlmcode.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
nlmswap.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
ns32k.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
ns32knetbsd.c Define DEFAULT_ARCH, DEFAULT_MID for netbsd.h 1997-09-24 18:39:10 +00:00
oasys.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
opncls.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
osf-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
pc532-mach.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
pe-arm.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
pe-i386.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
pe-ppc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
pei-arm.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
pei-i386.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
pei-ppc.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
peicode.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
ppcboot.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
ptrace-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
reloc.c Incorporate (machine dependent) code for support of NetBSD/arm32. 1998-05-19 18:53:19 +00:00
reloc16.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
riscix.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
rs6000-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
section.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
som.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
som.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
sparclinux.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
sparclynx.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
sparcnetbsd.c Use the correct size for the relocation records. 1998-09-13 09:33:26 +00:00
srec.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
stab-syms.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
stabs.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
sunos.c Set MY_entry_is_text_address (so we can debug a SunOS kernel). 1997-09-24 18:08:08 +00:00
syms.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
sysdep.h stock binutils-2.8 1997-09-24 15:39:15 +00:00
targets.c Use a pointer, not an array, for bfd_target_vector, working around our 1998-08-21 02:06:09 +00:00
targmatch.sed stock binutils-2.8.1 1997-09-24 18:54:18 +00:00
tekhex.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
trad-core.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
vaxnetbsd.c TARGET_PAGE_SIZE should be 4k. 1998-10-18 08:48:59 +00:00
versados.c stock binutils-2.8 1997-09-24 15:39:15 +00:00
xcofflink.c stock binutils-2.8 1997-09-24 15:39:15 +00:00

README

BFD is a an object file library.  It permits applications to use the
same routines to process object files regardless of their format.

BFD is used by the GNU debugger, assembler, linker, and the binary
utilities.

The documentation on using BFD is scanty and may be occasionally
incorrect.  Pointers to documentation problems, or an entirely
rewritten manual, would be appreciated.

BFD is normally built as part of another package.  See the build
instructions for that package, probably in a README file in the
appropriate directory.

BFD supports the following configure options:

  --target=TARGET
	The default target for which to build the library.  TARGET is
	a configuration target triplet, such as sparc-sun-solaris.
  --enable-targets=TARGET,TARGET,TARGET...
	Additional targets the library should support.  To include
	support for all known targets, use --enable-targets=all.
  --enable-64-bit-bfd
	Include support for 64 bit targets.  This is automatically
	turned on if you explicitly request a 64 bit target, but not
	for --enable-targets=all.  This requires a compiler with a 64
	bit integer type, such as gcc.
  --enable-shared
	Build BFD as a shared library.
  --enable-commonbfdlib
	Build BFD, opcodes, and libiberty as a single shared library.
  --with-mmap
	Use mmap when accessing files.  This is faster on some hosts,
	but slower on others.  It may not work on all hosts.

Report bugs with BFD to bug-gnu-utils@prep.ai.mit.edu.

Patches are encouraged.  When sending patches, always send the output
of diff -u or diff -c from the original file to the new file.  Do not
send default diff output.  Do not make the diff from the new file to
the original file.  Remember that any patch must not break other
systems.  Remember that BFD must support cross compilation from any
host to any target, so patches which use ``#ifdef HOST'' are not
acceptable.  Please also read the ``Reporting Bugs'' section of the
gcc manual.

Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them.