binutils-gdb/ld/testsuite/ld-tic6x
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
..
attr-arch-c62x-c62x.d
attr-arch-c62x-c64x.d
attr-arch-c62x-c64x+.d
attr-arch-c62x-c67x.d
attr-arch-c62x-c67x+.d
attr-arch-c62x-c674x.d
attr-arch-c62x.s
attr-arch-c64x-c62x.d
attr-arch-c64x-c64x.d
attr-arch-c64x-c64x+.d
attr-arch-c64x-c67x.d
attr-arch-c64x-c67x+.d
attr-arch-c64x-c674x.d
attr-arch-c64x.s
attr-arch-c64x+-c62x.d
attr-arch-c64x+-c64x.d
attr-arch-c64x+-c64x+.d
attr-arch-c64x+-c67x.d
attr-arch-c64x+-c67x+.d
attr-arch-c64x+-c674x.d
attr-arch-c64x+.s
attr-arch-c67x-c62x.d
attr-arch-c67x-c64x.d
attr-arch-c67x-c64x+.d
attr-arch-c67x-c67x.d
attr-arch-c67x-c67x+.d
attr-arch-c67x-c674x.d
attr-arch-c67x.s
attr-arch-c67x+-c62x.d
attr-arch-c67x+-c64x.d
attr-arch-c67x+-c64x+.d
attr-arch-c67x+-c67x.d
attr-arch-c67x+-c67x+.d
attr-arch-c67x+-c674x.d
attr-arch-c67x+.s
attr-arch-c674x-c62x.d
attr-arch-c674x-c64x.d
attr-arch-c674x-c64x+.d
attr-arch-c674x-c67x.d
attr-arch-c674x-c67x+.d
attr-arch-c674x-c674x.d
attr-arch-c674x.s
attr-array-4-4.d
attr-array-4-8.d
attr-array-4-16.d
attr-array-4-48.d
attr-array-4-416.d
attr-array-4-816.d
attr-array-4.s
attr-array-8-4.d
attr-array-8-8.d
attr-array-8-16.d
attr-array-8-48.d
attr-array-8-416.d
attr-array-8-816.d
attr-array-8.s
attr-array-16-4.d
attr-array-16-8.d
attr-array-16-16.d
attr-array-16-48.d
attr-array-16-416.d
attr-array-16-816.d
attr-array-16.s
attr-array-48-4.d
attr-array-48-8.d
attr-array-48-16.d
attr-array-48-48.d
attr-array-48-416.d
attr-array-48-816.d
attr-array-48.s
attr-array-416-4.d
attr-array-416-8.d
attr-array-416-16.d
attr-array-416-48.d
attr-array-416-416.d
attr-array-416-816.d
attr-array-416.s
attr-array-816-4.d
attr-array-816-8.d
attr-array-816-16.d
attr-array-816-48.d
attr-array-816-416.d
attr-array-816-816.d
attr-array-816.s
attr-compatibility-gnu-gnu.d
attr-compatibility-gnu-other.d
attr-compatibility-gnu.s
attr-compatibility-other-gnu.d
attr-compatibility-other-other.d
attr-compatibility-other.s
attr-conformance-10-10.d
attr-conformance-10-11.d
attr-conformance-10-none.d
attr-conformance-10.s
attr-conformance-11-10.d
attr-conformance-11-11.d
attr-conformance-11-none.d
attr-conformance-11.s
attr-conformance-none-10.d
attr-conformance-none-11.d
attr-conformance-none-none.d
attr-conformance-none.s
attr-dsbt-0.s
attr-dsbt-1.s
attr-dsbt-00.d
attr-dsbt-01.d
attr-dsbt-10.d
attr-dsbt-11.d
attr-pic-0.s
attr-pic-1.s
attr-pic-00.d
attr-pic-01.d
attr-pic-10.d
attr-pic-11.d
attr-pid-0.s
attr-pid-1.s
attr-pid-2.s
attr-pid-00.d
attr-pid-01.d
attr-pid-02.d
attr-pid-10.d
attr-pid-11.d
attr-pid-12.d
attr-pid-20.d
attr-pid-21.d
attr-pid-22.d
attr-stack-8-8.d
attr-stack-8-16.d
attr-stack-8-816.d
attr-stack-8.s
attr-stack-16-8.d
attr-stack-16-16.d
attr-stack-16-816.d
attr-stack-16.s
attr-stack-816-8.d
attr-stack-816-16.d
attr-stack-816-816.d
attr-stack-816.s
attr-unknown-1.d
attr-unknown-2.d
attr-unknown-3.d
attr-unknown-4.d
attr-unknown-5.d
attr-unknown-6.d
attr-unknown-7.d
attr-unknown-54-1.s
attr-unknown-55-a.s
attr-unknown-71-a.s
attr-unknown-71-b.s
attr-unknown-1000-1.s
attr-unknown-1000-2.s
attr-unknown-1024-1.s
attr-wchar-0.s
attr-wchar-1.s
attr-wchar-2.s
attr-wchar-00.d
attr-wchar-01.d
attr-wchar-02.d
attr-wchar-10.d
attr-wchar-11.d
attr-wchar-12.d
attr-wchar-20.d
attr-wchar-21.d
attr-wchar-22.d
common.d
common.ld
common.s
data-reloc-global-rel.d
data-reloc-global-rel.s
data-reloc-global.d
data-reloc-global.s
data-reloc-local-1.s
data-reloc-local-2.s
data-reloc-local-r-rel.d
data-reloc-local-r.d
data-reloc-local-rel.d
data-reloc-local.d
discard-unwind.ld
dsbt-be.ld ld/ 2012-06-15 15:13:41 +00:00
dsbt-index-error.d
dsbt-index.d
dsbt-index.s
dsbt-inrange.ld
dsbt-overflow.ld
dsbt.ld ld/ 2012-06-15 15:13:41 +00:00
ehtype-reloc-1-rel.d
ehtype-reloc-1.d
ehtype-reloc-1.s
generic.ld
got-reloc-global-addend-1.d
got-reloc-global-addend-1.s
got-reloc-global-addend-2.d
got-reloc-global-addend-2.s
got-reloc-global.s
got-reloc-inrange.d
got-reloc-local-1.s
got-reloc-local-2.s
got-reloc-local-r.d
got-reloc-overflow.d
mvk-reloc-global-rel.d
mvk-reloc-global-rel.s
mvk-reloc-global.d
mvk-reloc-global.s
mvk-reloc-local-1-rel.s
mvk-reloc-local-1.s
mvk-reloc-local-2-rel.s
mvk-reloc-local-2.s
mvk-reloc-local-r-rel.d
mvk-reloc-local-r.d
mvk-reloc-local-rel.d
mvk-reloc-local.d
pcr-reloc.d
pcr-reloc.s
pcrel-reloc-global-rel.d
pcrel-reloc-global.d
pcrel-reloc-global.s
pcrel-reloc-local-1.s
pcrel-reloc-local-2.s
pcrel-reloc-local-r-rel-rela.d
pcrel-reloc-local-r-rel.d
pcrel-reloc-local-r.d
pcrel-reloc-local-rel.d
pcrel-reloc-local.d
reloc-overflow-abs8-1.d
reloc-overflow-abs8-2.d
reloc-overflow-abs8.s
reloc-overflow-abs16-1.d
reloc-overflow-abs16-2.d
reloc-overflow-abs16.s
reloc-overflow-abs-s16-1.d
reloc-overflow-abs-s16-2.d
reloc-overflow-abs-s16.s
reloc-overflow-pcr-s7-1.d
reloc-overflow-pcr-s7-2.d
reloc-overflow-pcr-s7.s
reloc-overflow-pcr-s10-1.d
reloc-overflow-pcr-s10-2.d
reloc-overflow-pcr-s10.s
reloc-overflow-pcr-s12-1.d
reloc-overflow-pcr-s12-2.d
reloc-overflow-pcr-s12.s
reloc-overflow-pcr-s21-1.d
reloc-overflow-pcr-s21-2.d
reloc-overflow-pcr-s21.s
reloc-overflow-sbr-s16-1.d
reloc-overflow-sbr-s16-2.d
reloc-overflow-sbr-s16.s
reloc-overflow-sbr-u15-b-1.d
reloc-overflow-sbr-u15-b-2.d
reloc-overflow-sbr-u15-b.s
reloc-overflow-sbr-u15-h-1.d
reloc-overflow-sbr-u15-h-2.d
reloc-overflow-sbr-u15-h.s
reloc-overflow-sbr-u15-w-1.d
reloc-overflow-sbr-u15-w-2.d
reloc-overflow-sbr-u15-w.s
sbr-reloc-global-rel.d
sbr-reloc-global-rel.s
sbr-reloc-global.d
sbr-reloc-global.s
sbr-reloc-local-1-rel.s
sbr-reloc-local-1.s
sbr-reloc-local-2-rel.s
sbr-reloc-local-2.s
sbr-reloc-local-r-rel.d
sbr-reloc-local-r.d
sbr-reloc-local-rel.d
sbr-reloc-local.d
sbr.ld
shared-nopic.d
shared-nopid.d
shlib-1.dd
shlib-1.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-1.s
shlib-1.sd
shlib-1b.dd
shlib-1b.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-1b.sd
shlib-1r.dd
shlib-1r.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-1r.sd
shlib-1rb.dd
shlib-1rb.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-1rb.sd
shlib-2.s
shlib-app-1.dd
shlib-app-1.od
shlib-app-1.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-app-1.s
shlib-app-1.sd
shlib-app-1b.dd
shlib-app-1b.od
shlib-app-1b.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-app-1b.sd
shlib-app-1r.dd
shlib-app-1r.od
shlib-app-1r.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-app-1r.s
shlib-app-1r.sd
shlib-app-1rb.dd
shlib-app-1rb.od
shlib-app-1rb.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-app-1rb.sd
shlib-noindex.dd
shlib-noindex.rd bfd/ 2012-10-23 09:33:56 +00:00
shlib-noindex.sd
static-app-1.dd
static-app-1.od
static-app-1.rd bfd/ 2012-10-23 09:33:56 +00:00
static-app-1.sd
static-app-1b.dd
static-app-1b.od
static-app-1b.rd bfd/ 2012-10-23 09:33:56 +00:00
static-app-1b.sd
static-app-1r.dd
static-app-1r.od
static-app-1r.rd bfd/ 2012-10-23 09:33:56 +00:00
static-app-1r.sd
static-app-1rb.dd
static-app-1rb.od
static-app-1rb.rd bfd/ 2012-10-23 09:33:56 +00:00
static-app-1rb.sd
tic6x.exp
unwind-1.d
unwind-1.s
unwind-2.d
unwind-2.s
unwind-3.d
unwind-3.s
unwind-4.d
unwind-4.s
unwind-5.d
unwind-5.s
unwind-6.d
unwind.ld
weak-be.d
weak-data.d
weak.d
weak.s