binutils-gdb/ld/testsuite
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
..
config * config/default.exp: Update copyright date. 2012-03-15 01:57:57 +00:00
ld-aarch64 Fixed AArch64 TLS relocation resolution. 2012-10-16 16:36:50 +00:00
ld-alpha ld/ 2012-06-15 15:13:41 +00:00
ld-arm * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
ld-auto-import
ld-bootstrap 2011-12-03 David Daney <david.daney@cavium.com> 2011-12-03 17:13:02 +00:00
ld-cdtest
ld-checks
ld-cris Trim last, empty, line 2012-06-18 06:19:02 +00:00
ld-crx
ld-cygwin
ld-d10v
ld-discard bfd/ 2012-04-03 16:01:38 +00:00
ld-elf bfd/ 2012-10-23 09:33:56 +00:00
ld-elfcomm
ld-elfvers Add support for 64-bit ARM architecture: AArch64 2012-08-13 14:52:54 +00:00
ld-elfvsb ld/ 2012-06-15 15:13:41 +00:00
ld-elfweak bfd/ 2012-04-03 16:01:38 +00:00
ld-fastcall
ld-frv
ld-gc PR ld/14265 2012-08-14 08:31:57 +00:00
ld-h8300
ld-i386 Don't optimize relocation against _DYNAMIC 2012-09-01 02:50:14 +00:00
ld-ia64 ld/ 2012-06-15 15:13:41 +00:00
ld-ifunc Properly handle common symbol and weak function 2012-09-19 00:53:30 +00:00
ld-libs
ld-linkonce bfd/ 2012-04-03 16:01:38 +00:00
ld-m68hc11 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support. 2012-05-15 12:55:51 +00:00
ld-m68k * ld-m68k/tls-ld-1.d: Update. 2012-05-17 06:13:32 +00:00
ld-mep
ld-mips-elf * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
ld-misc
ld-mmix * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
ld-mn10300 bfd/ 2012-06-06 10:50:18 +00:00
ld-pe * dw2gencfi.c (dwcfi_seg_list): New struct. 2011-04-26 15:28:08 +00:00
ld-pie * ld-pie/pie.exp: Remove extra braces. 2012-04-23 18:03:28 +00:00
ld-plugin * config/tc-m68hc11.c: Add S12X and XGATE co-processor support. 2012-05-15 12:55:51 +00:00
ld-powerpc * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
ld-s390 ld/ 2012-06-15 15:13:41 +00:00
ld-scripts bfd/ 2012-10-23 09:33:56 +00:00
ld-selective * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux. 2012-02-14 01:02:04 +00:00
ld-sh bfd/ 2012-10-23 09:33:56 +00:00
ld-shared Add support for 64-bit ARM architecture: AArch64 2012-08-13 14:52:54 +00:00
ld-sparc ld/ 2012-06-15 15:13:41 +00:00
ld-spu ld/ 2012-06-15 15:13:41 +00:00
ld-srec Add support for 64-bit ARM architecture: AArch64 2012-08-13 14:52:54 +00:00
ld-tic6x bfd/ 2012-10-23 09:33:56 +00:00
ld-tilegx Add big-endian support for tilegx. 2012-02-25 19:51:34 +00:00
ld-tilepro * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo. 2011-06-13 15:18:54 +00:00
ld-undefined bfd/ 2012-04-03 16:01:38 +00:00
ld-unique bfd/ 2012-04-03 16:01:38 +00:00
ld-v850
ld-vax-elf bfd/ 2012-08-05 22:45:20 +00:00
ld-versados
ld-vxworks
ld-x86-64 Don't optimize relocation against _DYNAMIC 2012-09-01 02:50:14 +00:00
ld-xc16x
ld-xstormy16
ld-xtensa
lib Assemble all sources files in each test 2012-09-17 19:51:25 +00:00
ChangeLog bfd/ 2012-10-23 09:33:56 +00:00
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011 Rotate ChangeLogs 2012-01-05 10:09:39 +00:00
ChangeLog-9303