binutils-gdb/ld/emultempl
Nathan Sidwell 04c3a75556 bfd/
* bfd-in.h (bfd_elf_stack_segment_size): Declare.
	* bfd-in2.h: Rebuilt.
	* elfxx-target.h (elf_backend_stack_align): New.
	(elfNN_bed): Add it.
	* elf-bfd.h (struct elf_backend_data): Add stack_align field.
	* elf.c (bfd_elf_map_sections_to_segments): Pay attention to
	stack_align and stacksize for PT_GNU_STACK segment.
	(assign_file_positions_for_non_load_sections): Set p_memsz for
	PT_GNU_STACK segment.
	(copy_elf_program_header): Copy PT_GNU_STACK size.
	* elflink.c (bfd_elf_stack_segment_size): New function, taken from
	uclinux backends.
	(bfd_elf_size_dynamic_sections): Determine
	PT_GNU_STACK requirements after calling backend.  Pay attention to
	stacksize.
	* elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(elf32_bfinfdpic_modify_program_headers): Delete.
	(elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
	here.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-frv.c (frvfdpic_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(elf32_frvfdpic_modify_program_headers): Delete.
	(elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
	here.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-lm32.c (lm32_elf_always_size_sections): Leave
	PT_GNU_STACK creation to underlying elf support.  Check
	__stacksize here for backwards compatibility, and set it if
	needed.
	(lm32_elf_modify_segment_map): Delete.
	(lm32_elf_modify_program_headers): Delete.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_segment_map): Don't override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-sh.c (sh_elf_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(sh_elf_modify_program_headers): Delete.
	(sh_elf_copy_private_data): Don't copy PT_GNU_STACK
	here.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-tic6x.c (elf32_tic6x_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(elf32_tic6x_modify_program_headers): Delete.
	(elf32_tic6x_copy_private_data): Delete.
	(elf_backend_stack_align): Override.
	(bfd_elf32_bfd_copy_private_bfd_data): Don't override.
	(elf_backend_modify_program_headers): Don't override.

	include/
	* bfdlink.h (struct bfd_link_info): Add stacksize option.

	ld/
	* ld.texinfo (stack-size): New option.
	* emultempl/elf32.em: Add stack-size option.

	ld/testsuite/
	* ld-elf/binutils.exp: Add -z stack-size=0.
	* ld-elf/elf.exp: Add stack-exec and stack-size tests.
	* ld-elf/orphan-region.d: Add stack-size option. Remove xfail.
	* ld-elf/stack-exec.rd: New.
	* ld-elf/stack-size.rd: New.
	* ld-elf/stack.s: New.
	* ld-scripts/empty-aligned.d: Add stack-size option.
	* ld-sh/fdpic-stack-set.d: New.
	* ld-tic6x/shlib-1.rd: Remove __stacksize symbol.
	* ld-tic6x/shlib-1b.rd: Likewise.
	* ld-tic6x/shlib-1r.rd: Likewise.
	* ld-tic6x/shlib-1rb.rd: Likewise.
	* ld-tic6x/shlib-app-1.rd: Likewise.
	* ld-tic6x/shlib-app-1b.rd: Likewise.
	* ld-tic6x/shlib-app-1r.rd: Likewise.
	* ld-tic6x/shlib-app-1rb.rd: Likewise.
	* ld-tic6x/shlib-noindex.rd: Likewise.
	* ld-tic6x/static-app-1.rd: Likewise.
	* ld-tic6x/static-app-1b.rd: Likewise.
	* ld-tic6x/static-app-1r.rd: Likewise.
	* ld-tic6x/static-app-1rb.rd: Likewise.
2012-10-23 09:33:56 +00:00
..
README
aarch64elf.em Add support for 64-bit ARM architecture: AArch64 2012-08-13 14:52:54 +00:00
aix.em * ldlang.h (struct lang_input_statement_flags): New, extract from.. 2012-03-05 22:43:40 +00:00
alphaelf.em * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add 2010-02-04 09:16:43 +00:00
armcoff.em * ld.texinfo (Expression Section): Describe treatment of numbers 2010-12-20 13:00:14 +00:00
armelf.em Add support for PowerPC VLE. 2012-05-14 19:45:30 +00:00
astring.sed
avrelf.em 2012-07-24 Jan Waclawek <konfera@efton.sk> 2012-07-24 22:23:21 +00:00
beos.em bfd/ 2012-08-06 22:27:52 +00:00
bfin.em blackfin: add support for L1 code/data flags 2010-11-16 03:33:07 +00:00
cr16elf.em PR ld/10956 2009-11-26 13:45:25 +00:00
crxelf.em PR ld/10956 2009-11-26 13:45:25 +00:00
elf-generic.em
elf32.em bfd/ 2012-10-23 09:33:56 +00:00
genelf.em * ld.texinfo (Expression Section): Describe treatment of numbers 2010-12-20 13:00:14 +00:00
generic.em 2011-05-04 Tristan Gingold <gingold@adacore.com> 2011-05-04 08:31:04 +00:00
gld960.em
gld960c.em
hppaelf.em Add support for PowerPC VLE. 2012-05-14 19:45:30 +00:00
ia64elf.em
irix.em
linux.em * ldlang.h (struct lang_input_statement_flags): New, extract from.. 2012-03-05 22:43:40 +00:00
lnk960.em ld/ 2012-06-15 15:13:41 +00:00
m68hc1xelf.em * bfd-in.h (bfd_get_section_name, bfd_get_section_vma, 2012-05-16 16:38:29 +00:00
m68kcoff.em * ld.texinfo (Expression Section): Describe treatment of numbers 2010-12-20 13:00:14 +00:00
m68kelf.em
mipsecoff.em
mipself.em Add support for PowerPC VLE. 2012-05-14 19:45:30 +00:00
mmix-elfnmmo.em PR ld/10956 2009-11-26 13:45:25 +00:00
mmixelf.em
mmo.em * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach 2012-09-09 16:30:40 +00:00
needrelax.em PR ld/10956 2009-11-26 13:45:25 +00:00
netbsd.em include/ 2009-10-14 05:54:29 +00:00
ostring.sed
pe.em bfd/ 2012-08-06 22:27:52 +00:00
pep.em bfd/ 2012-08-06 22:27:52 +00:00
ppc32elf.em ld/ 2012-05-26 11:13:20 +00:00
ppc64elf.em ld/ 2012-05-26 11:13:20 +00:00
rxelf.em PR ld/12759 2011-05-17 16:02:31 +00:00
scoreelf.em * ldlang.h (struct lang_input_statement_flags): New, extract from.. 2012-03-05 22:43:40 +00:00
sh64elf.em PR ld/11384 2010-03-18 13:15:46 +00:00
solaris2.em Check if a symbol is hidden by linker script. 2011-09-16 01:15:20 +00:00
spu_icache.S
spu_icache.o_c
spu_ovl.S
spu_ovl.o_c
spuelf.em bfd/ 2012-08-06 22:27:52 +00:00
sunos.em * ldlang.h (struct lang_input_statement_flags): New, extract from.. 2012-03-05 22:43:40 +00:00
tic6xdsbt.em PR ld/13991 2012-04-24 05:12:40 +00:00
ticoff.em
vanilla.em
vms.em Add support for PowerPC VLE. 2012-05-14 19:45:30 +00:00
vxworks.em PR 11107 2010-01-08 01:41:11 +00:00
xtensaelf.em bfd/ 2012-08-06 22:27:52 +00:00
z80.em * ld.texinfo (Expression Section): Describe treatment of numbers 2010-12-20 13:00:14 +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.