old-cross-binutils/ld/scripttempl
Ian Lance Taylor 2a9fa50cd8 Add support for ELF shared libraries.
* ld.h (ld_config_type): Add field dynamic_link.
	* ldmain.c (main): Initialize config.dynamic_link to false.  Warn
	on attempts to use -r with -relax, -call_shared or -s.
	* lexsup.c (longopts): Separate OPTION_CALL_SHARED from
	OPTION_NON_SHARED.  Add OPTION_IGNORE.  Adjust macro values
	accordingly.  Add "dy" and "non_shared" options.  Change "Qy" to
	OPTION_IGNORE for now.  Handle OPTION_CALL_SHARED and
	OPTION_NON_SHARED by setting dynamic_link field accordingly.
	Handle OPTION_IGNORE by ignoring it.  Clear dynamic_link field for
	-r and -Ur.
	* ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
	opening a file with a .so extension first.
	* emultempl/elf32.em: New file.
	* emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
	(NONPAGED_TEXT_START_ADDR): Likewise.
	(TEMPLATE_NAME): Define as elf32.
	(DATA_PLT): Define.
	* emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
	* scripttempl/elf.sc: Add placement for new dynamic sections.
	Don't use CREATE_OBJECT_SYMBOLS.  Define _etext, _edata and _end
	outside of any section.  Don't use ALIGN(8); just let one section
	VMA follow another.  Put .dynbss in .bss.  Don't mention debugging
	sections; they'll be handled correctly anyhow.
	* Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
1994-05-19 18:25:10 +00:00
..
.Sanitize support for Xgo32X. 1994-05-06 19:27:57 +00:00
a29k.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
alpha.sc New files for Alpha linker. 1993-10-19 19:52:33 +00:00
delta68.sc Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (Philippe 1994-01-14 20:43:07 +00:00
ebmon29k.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
elf.sc Add support for ELF shared libraries. 1994-05-19 18:25:10 +00:00
go32coff.sc support for Xgo32X. 1994-05-06 19:27:57 +00:00
h8500.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
h8500b.sc Support for various sicko segmented memory models. 1994-02-04 22:57:26 +00:00
h8500c.sc Support for various sicko segmented memory models. 1994-02-04 22:57:26 +00:00
h8500m.sc Support for various sicko segmented memory models. 1994-02-04 22:57:26 +00:00
h8500s.sc Support for various sicko segmented memory models. 1994-02-04 22:57:26 +00:00
hppaelf.sc * emultempl/hppaelf.em: Change all references of 1994-05-16 19:38:39 +00:00
i386coff.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
i386go32.sc * Makefile.in, configure.in: Support for go32 coff. 1994-04-27 17:52:13 +00:00
i386lynx.sc Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com) 1994-04-27 00:31:11 +00:00
i960.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
m68klynx.sc More correct m68k LynxOS support 1993-11-12 00:37:00 +00:00
m88kbcs.sc * Makefile.in (em_m88kbcs.c): Correct dependency. 1993-07-15 17:57:26 +00:00
mips.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
mipsbsd.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
README * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
sa29200.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
sh.sc Support for constructors. 1993-06-17 21:49:48 +00:00
sparccoff.sc Sparc COFF support 1993-10-29 02:39:41 +00:00
sparclynx.sc Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com) 1994-04-27 00:31:11 +00:00
st2000.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
vanilla.sc * ldfile.c (ldfile_open_command): Don't try .ld extension. 1993-06-17 20:55:43 +00:00
z8ksim.sc * scripttempl/h8500.sc: Start all sections in a different segment. 1993-08-17 14:04:24 +00:00

The files in this directory are linker script templates.
genscripts.sh sets some shell variables, then sources
EMULATION.sc, to generate EMULATION.{x,xr,xu,xn,xbn} -- the script
files for default, -r, -Ur, -n, -N.