binutils-gdb/ld/emultempl
Alan Modra 2c382fb6f5 Support arbitrary length fill patterns.
* ldexp.h (etree_value_type): Add "str" field.
	(union etree_union): Add "str" to "value" struct.
	(exp_bigintop): Declare.
	(exp_get_fill): Declare.
	* ldexp.c: Include "safe-ctype.h".
	(exp_intop): Set value.str to NULL.
	(exp_bigintop): New function.
	(new_rel): Pass in "str", and set new.str from it.
	(new_rel_from_section): Set new.str to NULL.
	(fold_name): Adjust calls to new_rel.
	(exp_fold_tree): Likewise.
	(exp_get_fill): New function.
	* ldgram.y (struct big_int bigint, fill_type *fill): New.
	(INT): Returns a "bigint".  Adjust all code handling INTs.
	(fill_opt): Returns a "fill".
	(fill_exp): Split out of fill_opt, use for FILL.
	* ldlang.h (struct _fill_type): New.
	(fill_type): Move typedef to ldexp.h.
	(lang_output_section_statement_type): "fill" is now a pointer.
	(lang_fill_statement_type): Likewise.
	(lang_padding_statement_type): Likewise.
	(lang_add_fill): Now takes a "fill_type *" param.
	(lang_leave_output_section_statement): Likewise.
	(lang_do_assignments): Likewise.
	(lang_size_sections): Likewise.
	(lang_leave_overlay_section): Likewise.
	(lang_leave_overlay): Likewise.
	* ldlang.c: Include ldgram.h after ldexp.h.
	(lang_output_section_statement_lookup): Adjust for fill_type change.
	(print_fill_statement): Likewise.
	(print_padding_statement): Likewise.
	(insert_pad): Now takes a "fill_type *" arg.
	(size_input_section): Likewise.
	(lang_size_sections_1): Likewise.
	(lang_size_sections): Likewise.
	(lang_do_assignments): Likewise.
	(lang_add_fill): Likewise.
	(lang_leave_output_section_statement): Likewise.
	(lang_leave_overlay_section): Likewise.
	(lang_leave_overlay): Likewise.
	Adjust all callers of the above function.
	* ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
	starting with "0X" as well as "0x".  Return bigint.str for hex
	numbers starting with "0x" or "0X", zero bigint.str otherwise.
	Always use base 16 for numbers starting with "$".
	* ldmain.c: Include ldgram.h after ldexp.h.
	* ldwrite.c (build_link_order): Use bfd_data_link_order in place
	of bfd_fill_link_order.
	* pe-dll.c: Adjust lang_do_assignments calls.
	* emultempl/elf32.em: Likewise.
	* emultempl/hppaelf.em: Likewise.
	* emultempl/ppc64elf.em: Likewise.
	* emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
	lang_add_assignment call.
	* emultempl/pe.em: Likewise.
2002-02-15 02:11:05 +00:00
..
aix.em -binitfini emulation, put __rtinit symbol generation into linker. 2001-12-22 17:18:34 +00:00
armcoff.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +00:00
armelf_oabi.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
astring.sed * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
beos.em Support arbitrary length fill patterns. 2002-02-15 02:11:05 +00:00
elf32.em Support arbitrary length fill patterns. 2002-02-15 02:11:05 +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 Support arbitrary length fill patterns. 2002-02-15 02:11:05 +00:00
linux.em 2001-05-24 H.J. Lu <hjl@gnu.org> 2001-05-25 05:39:22 +00:00
lnk960.em 2002-02-10 Daniel Jacobowitz <drow@mvista.com> 2002-02-10 19:12:13 +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
mipself.em 2002-01-29 Chris Demetriou <cgd@broadcom.com> 2002-01-30 02:22:14 +00:00
mmix-elfnmmo.em * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust 2002-02-09 05:07:07 +00:00
mmixelf.em Add MMIX support 2001-10-30 15:20:14 +00:00
mmo.em Support on-demand global register allocation from 2002-02-01 08:24:03 +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 Support arbitrary length fill patterns. 2002-02-15 02:11:05 +00:00
ppc64elf.em Support arbitrary length fill patterns. 2002-02-15 02:11:05 +00:00
README 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sh64elf.em Contribute sh64-elf. 2002-02-08 06:39:01 +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

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.