binutils-gdb/ld/emultempl
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
..
README 19990502 sourceware import 1999-05-03 07:29:11 +00:00
aix.em Formatting and misc cleanup for AIX. 2001-12-05 13:34:46 +00:00
armcoff.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +00:00
armelf.em * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this 2001-11-15 12:44:03 +00:00
armelf_oabi.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +00:00
astring.sed * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
beos.em * deffilep.y (def_stash_module): Constify "name" param. 2001-09-18 10:10:21 +00:00
elf32.em hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
generic.em Update copyright notice 2001-08-13 07:31:29 +00:00
gld960.em Pass argc and argv to ldemul_choose_target. 2001-12-03 23:15:28 +00:00
gld960c.em Pass argc and argv to ldemul_choose_target. 2001-12-03 23:15:28 +00:00
hppaelf.em * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
linux.em 2001-05-24 H.J. Lu <hjl@gnu.org> 2001-05-25 05:39:22 +00:00
lnk960.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +00:00
m68kcoff.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
m68kelf.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
mipsecoff.em 2001-05-24 H.J. Lu <hjl@gnu.org> 2001-05-25 05:39:22 +00:00
mmix-elfnmmo.em Add MMIX support 2001-10-30 15:20:14 +00:00
mmixelf.em Add MMIX support 2001-10-30 15:20:14 +00:00
mmo.em hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
needrelax.em * emultempl/needrelax.em: New file. 2001-08-13 20:40:31 +00:00
ostring.sed * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
pe.em hash bfd sections for fast lookup and create. 2001-12-17 00:40:53 +00:00
sunos.em Locale changes from Bruno Haible <haible@clisp.cons.org>. 2001-09-19 05:33:36 +00:00
ticoff.em Regenerate files using fixed aclocal install. 2000-09-06 00:13:34 +00:00
vanilla.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +00:00

README

The files in this directory are sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.