old-cross-binutils/ld/testsuite/ld-sh
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
..
arch update copyright dates 2009-09-02 07:25:43 +00:00
sh64 ld/ 2012-06-15 15:13:41 +00:00
fdpic-funcdesc-shared.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-funcdesc-shared.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-funcdesc-static.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-funcdesc-static.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesc-shared.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesc-shared.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesc-static.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesc-static.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesci20-shared.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesci20-shared.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesci20-static.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotfuncdesci20-static.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-goti20-shared.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-goti20-shared.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-goti20-static.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-goti20-static.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesc-shared.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesc-shared.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesc-static.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesc-static.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesci20-shared.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesci20-shared.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesci20-static.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotofffuncdesci20-static.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotoffi20-shared.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotoffi20-shared.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotoffi20-static.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-gotoffi20-static.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-plt-be.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-plt-le.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-plt.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-plti20-be.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-plti20-le.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-stack-default.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-stack-set.d bfd/ 2012-10-23 09:33:56 +00:00
fdpic-stack-size.d 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
fdpic-stack.s 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
ld-r-1.d * ld-sh/ld-r-1.d: Update. 2007-03-23 00:00:23 +00:00
ldr1.s
ldr2.s
rd-sh.exp update copyright dates 2009-09-02 07:25:43 +00:00
refdbg-0-dso.d PR 11225 2010-01-28 15:25:20 +00:00
refdbg-1.d
refdbg.s
refdbglib.s
reloc1.d bfd/ 2006-08-04 13:13:56 +00:00
reloc1.s bfd/ 2006-08-04 13:13:56 +00:00
sh-vxworks.exp update copyright dates 2009-09-02 07:25:43 +00:00
sh.exp * ld-sh/sh.exp: Add missing newline. 2010-08-20 21:13:03 +00:00
sh1.s
sh2.c
shared-1.d Adjust testcases for readelf addend change 2012-05-12 13:46:26 +00:00
shared-2.d
start.s
sub2l-1.d bfd/ 2012-06-06 10:50:18 +00:00
sub2l.s
textrel1.s
textrel2.s
tlsbin-0-dso.d
tlsbin-1.d * ld-sh/tlsbin-1.d: Update. 2006-10-20 15:16:44 +00:00
tlsbin-2.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
tlsbin-3.d Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tlsbin-4.d Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tlsbin.s
tlsbinpic.s
tlslib.s
tlspic-1.d * ld-sh/tlsbin-1.d: Update. 2006-10-20 15:16:44 +00:00
tlspic-2.d Adjust testcases for readelf addend change 2012-05-12 13:46:26 +00:00
tlspic-3.d
tlspic-4.d
tlspic1.s
tlspic2.s
tlstpoff-1.d * ld-sh/tlsbin-1.d: Update. 2006-10-20 15:16:44 +00:00
tlstpoff-2.d
tlstpoff1.s
tlstpoff2.s
vxworks1-le.dd ld/testsuite/ 2007-05-14 12:07:11 +00:00
vxworks1-lib-le.dd ld/testsuite/ 2007-05-14 12:07:11 +00:00
vxworks1-lib.dd ld/testsuite/ 2007-05-14 12:07:11 +00:00
vxworks1-lib.nd Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
vxworks1-lib.rd ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1-lib.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks1-lib.td ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1-static.d bfd/ 2006-08-04 13:13:56 +00:00
vxworks1.dd ld/testsuite/ 2007-05-14 12:07:11 +00:00
vxworks1.ld ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1.rd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks2-static.sd bfd/ 2006-08-04 13:13:56 +00:00
vxworks2.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks2.sd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3-le.dd ld/testsuite/ 2007-05-14 12:07:11 +00:00
vxworks3-lib-le.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3-lib.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3-lib.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks3.dd ld/testsuite/ 2007-05-14 12:07:11 +00:00
vxworks3.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks4.d bfd/ 2006-08-04 13:13:56 +00:00
vxworks4a.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks4b.s bfd/ 2006-08-04 13:13:56 +00:00
weak1.d bfd/ 2012-06-06 10:50:18 +00:00
weak1.s