binutils-gdb/ld/testsuite
Maciej W. Rozycki 927960f053 LD/testsuite: Conditionalize the placement of `.got' in GNU_RELRO
Complement commit d345186d05 ("Check if GNU_RELRO segment is is
generated") and exclude the presence of a `.got' section from implying
the creation of a GNU_RELRO segment for targets which place the section
along with small data, and therefore as it stands cannot have the
section assigned to GNU_RELRO.  This is because we currently only
support a single GNU_RELRO segment and we place it at the beginning of
regular data which is then separated from small data by read-write data.

Currently the list of such targets consists of Alpha, Linux HPPA, NetBSD
HPPA, OpenBSD HPPA, Meta, MIPS, Nios II, OpenRISC 1000, RISC-V, SH and
X86-64, as determined by examining default linker scripts produced in a
`--enable-targets=all' build for those that have DATA_SEGMENT_RELRO_END
set and `.got' placed beyond.  These targets do not set NO_SMALL_DATA or
DATA_GOT in their respective files in ld/emulparams/*, hovever checking
for the absence of these settings on its own is not very feasible due to
the structure of these files and the lack of support for GNU_RELRO by
some targets in the first place.

Add a separate control for `.got.plt' which does get placed in GNU_RELRO
on MIPS targets even though `.got' does not.

	ld/
	* testsuite/ld-elf/binutils.exp (binutils_test): Make the
	expectation for `.got' in GNU_RELRO segment target-specific.
	Handle `.got.plt' separately.
2017-07-18 17:20:30 +01:00
..
config x86: Add run-time tests for -mtls-dialect=gnu2 2017-04-28 12:42:18 -07:00
ld-aarch64 [AArch64] Use "#pass" instead of "#..." to filter multiple lines 2017-07-11 11:29:51 +01:00
ld-alpha Align eh_frame FDEs according to their encoding 2017-03-05 14:49:54 +10:30
ld-arc bfd_error_handler bfd_vma and bfd_size_type args 2017-07-12 14:03:48 +09:30
ld-arm [ARM] Add linker support for ARMv8-R 2017-06-24 10:48:08 +01:00
ld-auto-import
ld-avr Fix PR 13402 2017-06-27 14:47:02 +05:30
ld-bootstrap Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-cdtest Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-checks ld-checks: tweak overflow checks. 2017-03-15 10:23:19 +01:00
ld-cris Fix for PR ld/16044: elf32-cris.c h->plt.refcount inconsistency 2017-03-28 23:43:09 +02:00
ld-crx
ld-cygwin Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-d10v
ld-discard
ld-elf LD/testsuite: Conditionalize the placement of `.got' in GNU_RELRO 2017-07-18 17:20:30 +01:00
ld-elfcomm Fix spelling typos. 2017-07-18 16:58:14 +01:00
ld-elfvers Add -rpath-link to various tests 2017-01-03 12:36:02 +10:30
ld-elfvsb Pass $NOPIE_CFLAGS to ELF visibility tests 2017-06-22 12:53:39 -07:00
ld-elfweak Add -rpath-link to various tests 2017-01-03 12:36:02 +10:30
ld-fastcall Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-frv
ld-gc Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to more ELF tests 2017-06-22 09:53:33 -07:00
ld-h8300
ld-i386 i386: Add tests for PIE with undefined weak symbol 2017-07-17 12:42:32 -07:00
ld-ia64
ld-ifunc x86: Dump local IFUNC functions in the map file 2017-06-08 03:53:43 -07:00
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k
ld-mep Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-metag
ld-mips-elf MIPS/LD: Fix a segfault from ELF `e_flags' access with non-ELF output BFD 2017-07-07 17:58:03 +01:00
ld-misc
ld-mmix
ld-mn10300 Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-nds32 Fix address violation when disassembling a corrupt binary. 2017-06-14 16:50:03 +01:00
ld-nios2 Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-pe pe/coff: handle weak defined symbol for gc-sections. 2017-04-07 10:03:17 +02:00
ld-pie Don't run C tests in ld testsuite unless we have a C compiler 2017-01-03 11:47:47 +10:30
ld-plugin Handle symbol defined in IR and referenced in DSO 2017-04-20 07:48:35 -07:00
ld-powerpc ppc32 tlsopt tests 2017-07-14 22:51:01 +09:30
ld-pru
ld-s390
ld-scripts rs6000 testsuite update 2017-07-12 19:31:26 +09:30
ld-selective Support single digit GCC version 2017-07-11 08:41:22 -07:00
ld-sh Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-shared Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to more ELF tests 2017-06-22 09:53:33 -07:00
ld-size Pass $NOPIE_LDFLAGS size tests 2017-06-21 14:45:57 -07:00
ld-sparc ld: fix regressions with rett instructions in sparc tests. 2017-04-24 05:31:31 -07:00
ld-spu
ld-srec Pass $NOPIE_LDFLAGS size tests 2017-06-21 14:45:57 -07:00
ld-tic6x Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-tilegx
ld-tilepro
ld-undefined Implement -z dynamic-undefined-weak 2017-04-19 20:39:52 +09:30
ld-unique PR ld/21529: Use a linker script to limit output with the test case 2017-07-14 11:53:08 +01:00
ld-v850
ld-vax-elf
ld-versados Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-visium
ld-vxworks
ld-x86-64 x86-64: Limit PIC check to shared library build 2017-07-17 12:17:59 -07:00
ld-xc16x
ld-xstormy16
ld-xtensa Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-z8k
lib is_underscore_target for ld-elf tests 2017-06-18 11:56:19 +09:30
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303