binutils-gdb/ld/testsuite
Maciej W. Rozycki 6057dc97e4 LD: Always make a SEGMENT_START expression section-relative
Fix an issue with the SEGMENT_START builtin function where its result is
absolute when taken from the default supplied, and section-relative when
taken from a `-T' command-line override.  This is against documentation,
inconsistent and unexpected, and with PIE executables gives an incorrect
result with the `__executable_start' symbol.

Make the result of SEGMENT_START always section-relative then.

	ld/
	* ldexp.c (fold_binary): Always make the result of SEGMENT_START
	section-relative.
	* testsuite/ld-scripts/segment-start.d: New test.
	* testsuite/ld-scripts/segment-start.ld: New test linker script.
	* testsuite/ld-scripts/segment-start.s: New test source.
	* testsuite/ld-scripts/script.exp: Run the new test.
2018-09-14 20:22:56 +01:00
..
config
ld-aarch64 Fix spurious check-ld failures on aarch64-elf 2018-08-01 13:36:51 -07:00
ld-alpha
ld-arc [ARC] Update merging attributes. 2018-08-06 16:41:32 +03:00
ld-arm
ld-auto-import
ld-avr
ld-bootstrap Prune BFD warnings for unknown GNU properties 2018-08-23 06:12:50 -07:00
ld-cdtest
ld-checks
ld-cris
ld-crx
ld-csky Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
ld-cygwin
ld-d10v
ld-discard xgate testsuite fixes 2018-07-10 23:59:59 +09:30
ld-elf Re: ld: Lookup section in output with the same name 2018-09-03 12:54:35 +09:30
ld-elfcomm
ld-elfvers
ld-elfvsb
ld-elfweak
ld-fastcall
ld-frv
ld-gc Revise "ld testsuite use of notarget" 2018-07-11 16:39:04 +09:30
ld-h8300
ld-i386 ld: Pass -z separate-code to ld for property-x86-4a tests 2018-08-31 05:11:03 -07:00
ld-ia64
ld-ifunc ld: Append -mx86-used-note=no to ASFLAGS 2018-08-31 04:48:05 -07:00
ld-libs
ld-linkonce x86: Add a GNU_PROPERTY_X86_ISA_1_USED note if needed 2018-07-20 09:19:00 -07:00
ld-m68hc11
ld-m68k
ld-mep
ld-metag
ld-mips-elf [MIPS] Add Loongson 2K1000 proccessor support. 2018-08-29 20:55:25 +08:00
ld-misc ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
ld-mmix
ld-mn10300
ld-msp430-elf
ld-nds32
ld-nios2
ld-pe ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
ld-pie
ld-plugin Prune BFD warnings for unknown GNU properties 2018-08-23 06:12:50 -07:00
ld-powerpc PowerPC64 EH info for _notoc linkage stubs 2018-08-07 18:43:55 +09:30
ld-pru
ld-riscv-elf
ld-s12z
ld-s390 S/390: Improve partial relro support for 64 bit 2018-07-18 13:20:06 +02:00
ld-scripts LD: Always make a SEGMENT_START expression section-relative 2018-09-14 20:22:56 +01:00
ld-selective
ld-sh
ld-shared
ld-size
ld-sparc
ld-spu
ld-srec ld: Append -Wa,-mx86-used-note=no for S-records tests 2018-08-31 04:44:59 -07:00
ld-tic6x
ld-tilegx
ld-tilepro
ld-undefined
ld-unique Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
ld-v850
ld-vax-elf
ld-visium
ld-vxworks
ld-x86-64 ld: Pass -z separate-code to ld for property-x86-4a tests 2018-08-31 05:11:03 -07:00
ld-xc16x
ld-xstormy16
ld-xtensa xtensa: ld: convert tests to run_dump_test 2018-07-23 12:06:40 -07:00
ld-z8k
lib Prune BFD warnings for unknown GNU properties 2018-08-23 06:12:50 -07:00
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