binutils-gdb/bfd
Alan Modra 73e87d7038 hash bfd sections for fast lookup and create.
bfd/ChangeLog
	* bfd.c (struct _bfd): Add section_htab, section_tail.
	* libbfd-in.h (_bfd_delete_bfd): Declare.
	(bfd_section_hash_newfunc): Declare.
	* opncls.c (_bfd_new_bfd): Free memory on failure.  Init
	section_htab and section_tail.
	(_bfd_delete_bfd): New function.
	(bfd_openr): Use it.
	(bfd_fdopenr): Likewise.
	(bfd_openstreamr): Likewise.
	(bfd_openw): Likewise.
	(bfd_close): Likewise.
	(bfd_close_all_done): Likewise.
	(bfd_release): Comment.
	* section.c (struct section_hash_entry): New.
	(bfd_section_hash_newfunc): New function.
	(section_hash_lookup): Define.
	(bfd_section_init): New function, split out from
	bfd_make_section_anyway.
	(bfd_get_section_by_name): Lookup via hash table.
	(bfd_get_unique_section_name): Likewise.
	(bfd_make_section_old_way): Rewrite to use hash table.
	(bfd_make_section_anyway): Likewise.
	(bfd_make_section): Likewise.  Return NULL for attempts to make
	BFD_{ABS,COM,UND,IND}_SECTION_NAME.
	(_bfd_strip_section_from_output): Adjust section_tail if needed.
	* configure.in: Bump bfd version.
	* configure: Regenerate.
	* libbfd.h: Regenerate.
	* bfd-in2.h: Regenerate.

ld/ChangeLog
	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
	section_tail when fiddling with section list.
	(gld${EMULATION_NAME}_list_options): Ensure sentences aren't
	broken into separate strings to make translation easier.
	* emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
	fiddling with section list.
	* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2001-12-17 00:40:53 +00:00
..
doc Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
hosts
po Import new turkish translations from Translation Project's website. 2001-12-03 10:46:36 +00:00
acinclude.m4
aclocal.m4
aix386-core.c
aout0.c
aout32.c
aout64.c
aout-adobe.c
aout-arm.c
aout-cris.c
aout-encap.c
aout-ns32k.c
aout-sparcle.c
aout-target.h
aout-tic30.c
aoutf1.h
aoutx.h
archive64.c * Makefile.am: split up BFD_LIBS like statements in BFD32_LIBS and 2001-12-05 22:46:21 +00:00
archive.c * Makefile.am: split up BFD_LIBS like statements in BFD32_LIBS and 2001-12-05 22:46:21 +00:00
archures.c Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
armnetbsd.c
bfd-in2.h hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
bfd-in.h * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
bfd.c hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
binary.c * binary.c: Include safe-ctype.h after bfd.h and sysdep.h. 2001-11-10 15:53:31 +00:00
bout.c
cache.c
cf-i386lynx.c
cf-m68klynx.c
cf-sparclynx.c
ChangeLog * elf64-mips.c (mips_elf64_link_hash_entry): New link hash. 2001-12-15 09:56:19 +00:00
ChangeLog-9193
ChangeLog-9495
ChangeLog-9697
ChangeLog-9899
cisco-core.c
coff64-rs6000.c
coff-a29k.c
coff-alpha.c
coff-apollo.c
coff-arm.c
coff-aux.c
coff-go32.c
coff-h8300.c
coff-h8500.c
coff-i386.c
coff-i860.c
coff-i960.c
coff-ia64.c
coff-m68k.c
coff-m88k.c
coff-mcore.c
coff-mips.c * coff-mips.c (mips_bfd_reloc_type_lookup): Replace 2001-12-02 13:14:48 +00:00
coff-pmac.c
coff-ppc.c
coff-rs6000.c
coff-sh.c
coff-sparc.c
coff-stgo32.c
coff-svm68k.c
coff-tic30.c
coff-tic54x.c
coff-tic80.c
coff-u68k.c
coff-w65.c
coff-we32k.c
coff-z8k.c
coffcode.h
coffgen.c Define and use bfd_is_const_section(). 2001-11-19 15:35:38 +00:00
cofflink.c
coffswap.h
config.bfd Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
config.in
configure hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
configure.com
configure.host
configure.in hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
COPYING
corefile.c
cpu-a29k.c
cpu-alpha.c
cpu-arc.c
cpu-arm.c
cpu-avr.c
cpu-cris.c
cpu-d10v.c
cpu-d30v.c
cpu-fr30.c
cpu-h8300.c
cpu-h8500.c
cpu-hppa.c
cpu-i370.c
cpu-i386.c * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use 2001-11-14 12:01:58 +00:00
cpu-i860.c
cpu-i960.c
cpu-ia64-opc.c
cpu-ia64.c
cpu-m32r.c
cpu-m68hc11.c
cpu-m68hc12.c
cpu-m68k.c
cpu-m88k.c
cpu-m10200.c
cpu-m10300.c
cpu-mcore.c
cpu-mips.c
cpu-mmix.c Add MMIX support 2001-10-30 15:20:14 +00:00
cpu-ns32k.c
cpu-openrisc.c
cpu-pdp11.c
cpu-pj.c
cpu-powerpc.c
cpu-rs6000.c
cpu-s390.c
cpu-sh.c
cpu-sparc.c
cpu-tic30.c
cpu-tic54x.c
cpu-tic80.c Update copyright notices 2001-03-08 21:04:02 +00:00
cpu-v850.c
cpu-vax.c
cpu-w65.c
cpu-we32k.c
cpu-xstormy16.c Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
cpu-z8k.c
demo64.c
dep-in.sed
dwarf1.c
dwarf2.c * dwarf2.c (struct line_head) [total_length]: Change type to 2001-11-14 11:16:47 +00:00
ecoff.c
ecofflink.c
ecoffswap.h
efi-app-ia32.c
efi-app-ia64.c
elf32-arc.c
elf32-arm.h * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-avr.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-cris.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-d10v.c * elf32-d10v.c (elf_d10v_howto_table): Adjust bit-size of 2001-12-04 10:48:58 +00:00
elf32-d30v.c
elf32-fr30.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-gen.c
elf32-h8300.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-hppa.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-hppa.h
elf32-i370.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-i386.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-i860.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-i960.c
elf32-m32r.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-m68hc11.c
elf32-m68hc12.c
elf32-m68k.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-m88k.c
elf32-mcore.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-mips.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-openrisc.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-pj.c
elf32-ppc.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-s390.c Allow GDB to read general-purpose registers from Linux S/390 core files. 2001-12-07 12:23:26 +00:00
elf32-sh-lin.c
elf32-sh.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf32-sparc.c * elf32-sparc.c (elf32_sparc_relocate_section): Revert 2001-12-07 11:14:12 +00:00
elf32-v850.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf32-xstormy16.c Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
elf32.c
elf64-alpha.c * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
elf64-gen.c
elf64-hppa.c
elf64-hppa.h
elf64-mips.c * elf64-mips.c (mips_elf64_link_hash_entry): New link hash. 2001-12-15 09:56:19 +00:00
elf64-mmix.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf64-ppc.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf64-s390.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf64-sparc.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf64-x86-64.c * elf.c (_bfd_elf_rela_local_sym): Only call 2001-12-07 11:12:18 +00:00
elf64.c
elf-bfd.h * elf-bfd.h (_bfd_elf_maybe_strip_eh_frame_hdr): New prototype. 2001-12-15 08:54:13 +00:00
elf-eh-frame.c * elf-bfd.h (_bfd_elf_maybe_strip_eh_frame_hdr): New prototype. 2001-12-15 08:54:13 +00:00
elf-hppa.h * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf-m10200.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf-m10300.c * elf.c (_bfd_elf_rela_local_sym): New. 2001-11-23 12:17:21 +00:00
elf-strtab.c * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i 2001-11-11 22:18:01 +00:00
elf.c * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
elfarm-nabi.c
elfarm-oabi.c
elfcode.h * elfcode.h (elf_swap_ehdr_out): Adjust value written for e_shnum 2001-12-11 05:38:18 +00:00
elfcore.h * elfcore.h (elf_core_file_p): Preserve and clear abfd section 2001-11-02 13:12:56 +00:00
elflink.c * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo. 2001-11-07 16:50:38 +00:00
elflink.h * elf-bfd.h (_bfd_elf_maybe_strip_eh_frame_hdr): New prototype. 2001-12-15 08:54:13 +00:00
elfxx-ia64.c * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
elfxx-target.h 2001-11-11 Daniel Jacobowitz <drow@mvista.com> 2001-11-15 01:34:12 +00:00
epoc-pe-arm.c
epoc-pei-arm.c
format.c
freebsd.h
gen-aout.c
genlink.h
go32stub.h
hash.c
host-aout.c
hp300bsd.c
hp300hpux.c
hppabsd-core.c
hpux-core.c
i386aout.c
i386bsd.c
i386dynix.c
i386freebsd.c
i386linux.c
i386lynx.c
i386mach3.c
i386msdos.c
i386netbsd.c
i386os9k.c
ieee.c
ihex.c
init.c
irix-core.c
libaout.h * version.h: New file. 2001-10-02 05:58:41 +00:00
libbfd-in.h hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
libbfd.c
libbfd.h hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
libcoff-in.h
libcoff.h
libecoff.h
libhppa.h
libieee.h
libnlm.h
liboasys.h
libpei.h
libxcoff.h
linker.c
lynx-core.c
m68k4knetbsd.c
m68klinux.c
m68klynx.c
m68knetbsd.c
m88kmach3.c
MAINTAINERS
Makefile.am * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
Makefile.in * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
makefile.vms
merge.c
mipsbsd.c
mmo.c * mmo.c: Adjust documentation tags to use texinfo 4 features. 2001-11-19 01:22:45 +00:00
mpw-config.in
mpw-make.sed
netbsd-core.c
netbsd.h
newsos3.c
nlm32-alpha.c
nlm32-i386.c
nlm32-ppc.c
nlm32-sparc.c
nlm32.c
nlm64.c
nlm-target.h
nlm.c
nlmcode.h
nlmswap.h
ns32k.h
ns32knetbsd.c
oasys.c
opncls.c hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
osf-core.c
pc532-mach.c
pdp11.c
pe-arm.c
pe-i386.c
pe-mcore.c
pe-mips.c * coff-mips.c (mips_bfd_reloc_type_lookup): Replace 2001-12-02 13:14:48 +00:00
pe-ppc.c
pe-sh.c
pei-arm.c
pei-i386.c
pei-mcore.c
pei-mips.c
pei-ppc.c
pei-sh.c
peicode.h
peXXigen.c
PORTING
ppcboot.c
ptrace-core.c
README
reloc16.c
reloc.c Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
riscix.c
rs6000-core.c
sco5-core.c
section.c hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
som.c Initialize subspace_sections. 2001-11-02 16:19:54 +00:00
som.h
sparclinux.c
sparclynx.c
sparcnetbsd.c
srec.c
stab-syms.c
stabs.c * stabs.c (_bfd_discard_section_stabs): Use PARAMS in function 2001-11-26 19:31:27 +00:00
stamp-h.in
sunos.c
syms.c * syms.c (_bfd_generic_read_minisymbols): Early return for 2001-12-12 19:05:26 +00:00
sysdep.h
targets.c Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
targmatch.sed
tekhex.c
TODO
trad-core.c
vaxnetbsd.c
versados.c
version.h daily update 2001-12-16 23:00:06 +00:00
vms-gsd.c
vms-hdr.c
vms-misc.c
vms-tir.c
vms.c * section.c (bfd_make_section_anyway): Don't increment section_id 2001-11-13 03:52:25 +00:00
vms.h
xcoff-target.h
xcofflink.c

BFD is 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.

There is some BFD internals documentation in doc/bfdint.texi which may
help programmers who want to modify BFD.

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.
  --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-binutils@gnu.org.

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.