old-cross-binutils/ld/testsuite/ld-scripts
Hans-Peter Nilsson 3f7308212c Fix ld tests with sysroot=/ and --enable-targets=all and test --print-sysroot
* ld-scripts/sysroot-prefix.exp: Log $ld_sysroot.  Handle sysroot
	== "/" as a separate sysroot-configuration with separable
	test-types.
	(sysroot_prefix_tests): Include all existing sysroot tests in
	sysroot == "/" tests except exclude those where a --sysroot option
	is not specified.
	* lib/ld-lib.exp (check_sysroot_available): Rewrite to use
	--print-sysroot instead of relying on error code from using
	--sysroot=...  Also, set $ld_sysroot.

The reason we exclude not just the failing "full-path =-prefixed
without" but also the passing "plain =-prefixed without but -Lpath"
for sysroot == "/" is that for the latter to succeed, we have to make
assumptions about the system not having a /sysroot directory or
assumptions about its contents etc.

When passing --enable-targets=all --enable-64-bit-bfd (the
latter not required for a "64-bit-host" of course) the ld --help
output got too much to handle for poor tcl (or maybe dejagnu is
to blame) and remote_exec exited with an error, so the
configuration being tested was mishandled as being a
sysroot-less configuration.  Using --version instead of --help
would work too, but the new --print-sysroot option calls for
nominal coverage, so why not use that instead.
2014-10-17 13:11:42 +02:00
..
align-with-input.d oops - omitted from previous delta 2013-07-23 07:40:46 +00:00
align-with-input.t * ldgram.y: Add ALIGN_WITH_INPUT output section attribute. 2013-07-19 10:39:51 +00:00
align.exp Update copyright years 2014-03-05 22:16:15 +10:30
align.s
align.t
align2.t
align2a.d
align2a.s
align2b.d
align2b.s
align2c.d
align2c.s
alignof.exp Update copyright years 2014-03-05 22:16:15 +10:30
alignof.s
alignof.t
assert.exp Update copyright years 2014-03-05 22:16:15 +10:30
assert.s
assert.t
assert2.d Remove the extra `.'. 2011-01-10 15:03:15 +00:00
assert2.t Add a test for linker ASSERT. 2011-01-10 14:37:40 +00:00
assign-loc.d * ld-scripts/assign-loc.d: New file. Test for assigning absolute 2012-09-19 02:51:09 +00:00
assign-loc.t * ld-scripts/assign-loc.d: New file. Test for assigning absolute 2012-09-19 02:51:09 +00:00
cross1.c
cross1.t
cross2.c
cross2.t
cross3.c
cross3.t
cross4.c
crossref.exp Update copyright years 2014-03-05 22:16:15 +10:30
data.d
data.exp Pad sections according to current script FILL. 2014-04-04 19:06:35 +10:30
data.s
data.t
default-script.exp Update copyright years 2014-03-05 22:16:15 +10:30
default-script.s
default-script.t
default-script1.d
default-script2.d PR ld/12001 2010-12-20 06:27:11 +00:00
default-script3.d
default-script4.d
defined.exp Update copyright years 2014-03-05 22:16:15 +10:30
defined.s
defined.t
defined2.d
defined2.t
defined3.d
defined3.t
defined4.d Add xfail and notarget. 2011-01-13 15:23:59 +00:00
defined4.s Add testcases for PR ld/12327. 2010-12-28 18:04:10 +00:00
defined4.t Add testcases for PR ld/12327. 2010-12-28 18:04:10 +00:00
defined5.d Add a testcase for PR ld/12356. 2011-01-13 17:07:52 +00:00
defined5.s * ld-scripts/defined.exp: Don't run defined5 for AOUT. 2011-02-10 08:04:22 +00:00
defined5.t * ld-scripts/defined.exp: Don't run defined5 for AOUT. 2011-02-10 08:04:22 +00:00
dynamic-sections-1.s
dynamic-sections-2.s
dynamic-sections.d
dynamic-sections.exp Update copyright years 2014-03-05 22:16:15 +10:30
dynamic-sections.t
empty-address-1.d ld/ 2012-06-15 15:13:41 +00:00
empty-address-1.s
empty-address-1.t
empty-address-2.s
empty-address-2a.d ld/ 2012-06-15 15:13:41 +00:00
empty-address-2a.t
empty-address-2b.d ld/ 2012-06-15 15:13:41 +00:00
empty-address-2b.t
empty-address-3.s
empty-address-3a.d ld/ 2012-06-15 15:13:41 +00:00
empty-address-3a.t
empty-address-3b.d ld/ 2012-06-15 15:13:41 +00:00
empty-address-3b.t
empty-address-3c.d ld/ 2012-06-15 15:13:41 +00:00
empty-address-3c.t
empty-address.exp Update copyright years 2014-03-05 22:16:15 +10:30
empty-aligned.d Make assignments to dot keep an empty output section. 2014-01-22 11:58:29 +10:30
empty-aligned.exp Update copyright years 2014-03-05 22:16:15 +10:30
empty-aligned.s
empty-aligned.t Make assignments to dot keep an empty output section. 2014-01-22 11:58:29 +10:30
empty-orphan.d
empty-orphan.exp Update copyright years 2014-03-05 22:16:15 +10:30
empty-orphan.s
empty-orphan.t
expr.exp Update copyright years 2014-03-05 22:16:15 +10:30
expr1.d
expr1.s
expr1.t
expr2.d Add xfail and notarget. 2011-01-13 15:23:59 +00:00
expr2.s Add testcases for PR ld/12327. 2010-12-28 18:04:10 +00:00
expr2.t Add testcases for PR ld/12327. 2010-12-28 18:04:10 +00:00
extern.exp Update copyright years 2014-03-05 22:16:15 +10:30
extern.s
extern.t
fill.d Pad sections according to current script FILL. 2014-04-04 19:06:35 +10:30
fill.t Pad sections according to current script FILL. 2014-04-04 19:06:35 +10:30
fill_0.s Pad sections according to current script FILL. 2014-04-04 19:06:35 +10:30
fill_1.s Pad sections according to current script FILL. 2014-04-04 19:06:35 +10:30
fill_2.s Pad sections according to current script FILL. 2014-04-04 19:06:35 +10:30
include-1.d
include-1.t
include-data.t
include-mem.t
include-ram.t
include-sections.t
include-subdata.t
include.exp Update copyright years 2014-03-05 22:16:15 +10:30
include.s
log2.exp Update copyright years 2014-03-05 22:16:15 +10:30
log2.s * ldexp.c: Add LOG2CEIL() builtin function to linker script language 2013-08-15 07:30:15 +00:00
log2.t * ldexp.c: Add LOG2CEIL() builtin function to linker script language 2013-08-15 07:30:15 +00:00
map-address.d
map-address.exp Update copyright years 2014-03-05 22:16:15 +10:30
map-address.t
memory.t
overlay-size-map.d
overlay-size.d
overlay-size.exp Update copyright years 2014-03-05 22:16:15 +10:30
overlay-size.s
overlay-size.t [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
phdrs.exp Update copyright years 2014-03-05 22:16:15 +10:30
phdrs.s
phdrs.t
phdrs2.exp Update copyright years 2014-03-05 22:16:15 +10:30
phdrs2.s
phdrs2.t
phdrs3.d
phdrs3.exp Update copyright years 2014-03-05 22:16:15 +10:30
phdrs3.t
phdrs3a.d
phdrs3a.t
pr14962-2.d Miscellaneous ld tidies 2014-01-22 12:51:19 +10:30
pr14962-2.t Allow self-assignment for absolute symbols defined in a linker script 2014-01-20 21:28:42 +10:30
pr14962.d * ld-scripts/pr14962.d: Don't run for mmix-knuth-mmixware. Add 2012-12-30 20:15:07 +00:00
pr14962.t PR ld/14962 2012-12-18 13:38:10 +00:00
pr14962a.s PR ld/14962 2012-12-18 13:38:10 +00:00
pr14962b.s PR ld/14962 2012-12-18 13:38:10 +00:00
provide-1.d
provide-1.s
provide-1.t
provide-2.d
provide-2.s
provide-2.t
provide-3.d
provide-3.s
provide-3.t
provide.exp Update copyright years 2014-03-05 22:16:15 +10:30
region-alias-1.d oops - omitted fromn previous delta 2013-07-22 13:04:57 +00:00
region-alias-1.t
region-alias-2.d oops - omitted fromn previous delta 2013-07-22 13:04:57 +00:00
region-alias-2.t
region-alias-3.d oops - omitted fromn previous delta 2013-07-22 13:04:57 +00:00
region-alias-3.t
region-alias-4.d oops - omitted fromn previous delta 2013-07-22 13:04:57 +00:00
region-alias-4.t
rgn-at.exp Update copyright years 2014-03-05 22:16:15 +10:30
rgn-at.s
rgn-at1.d
rgn-at1.t
rgn-at2.d
rgn-at2.t
rgn-at3.d bfd/ 2013-08-26 19:27:25 +00:00
rgn-at3.t
rgn-at4.d
rgn-at4.t
rgn-at5.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
rgn-at5.s * ld-elf/group3b.d: Disable for generic linker targets. 2010-09-16 00:28:57 +00:00
rgn-at5.t * script-sections.cc(class Memory_region): Remove 2010-10-06 08:58:59 +00:00
rgn-at6.d PR ld/15222 2013-03-05 02:55:27 +00:00
rgn-at6.s PR ld/15222 2013-03-05 02:55:27 +00:00
rgn-at6.t PR ld/15222 2013-03-05 02:55:27 +00:00
rgn-at7.d PR ld/15222 2013-03-05 02:55:27 +00:00
rgn-at7.t PR ld/15222 2013-03-05 02:55:27 +00:00
rgn-at8.d * ldgram.y: Add ALIGN_WITH_INPUT output section attribute. 2013-07-19 10:39:51 +00:00
rgn-at8.t oops - omitted from previous delta 2013-07-19 13:21:55 +00:00
rgn-at9.d Fix ALIGN_WITH_INPUT 2014-02-02 06:39:39 -08:00
rgn-at9.t Fix ALIGN_WITH_INPUT 2014-02-02 06:39:39 -08:00
rgn-at10.d Fix ALIGN_WITH_INPUT 2014-02-02 06:39:39 -08:00
rgn-at10.s Fix ALIGN_WITH_INPUT 2014-02-02 06:39:39 -08:00
rgn-at10.t Fix ALIGN_WITH_INPUT 2014-02-02 06:39:39 -08:00
rgn-at11.d Fix ALIGN_WITH_INPUT 2014-02-02 06:39:39 -08:00
rgn-at11.t Fix ALIGN_WITH_INPUT 2014-02-02 06:39:39 -08:00
rgn-over.exp Update copyright years 2014-03-05 22:16:15 +10:30
rgn-over.s
rgn-over1.d
rgn-over1.t
rgn-over2.d
rgn-over2.t
rgn-over3.d
rgn-over3.t
rgn-over4.d
rgn-over4.t
rgn-over5.d
rgn-over5.t
rgn-over6.d
rgn-over6.t
rgn-over7.d
rgn-over7.t
rgn-over8-ok.d bfd/ 2013-08-26 19:27:25 +00:00
rgn-over8.s
rgn-over8.t
sane1.d * ld-scripts/sane1.d: Sort output from nm. Allow for other symbols in 2012-10-08 00:22:45 +00:00
sane1.t * ld-scripts/sane1.d, * ld-scripts/sane1.t: New test. 2011-01-23 03:29:30 +00:00
script.exp Update copyright years 2014-03-05 22:16:15 +10:30
script.s
script.t
scriptm.t
section-flags-1.s include/ChangeLog 2011-07-11 15:03:09 +00:00
section-flags-1.t include/ChangeLog 2011-07-11 15:03:09 +00:00
section-flags-2.s include/ChangeLog 2011-07-11 15:03:09 +00:00
section-flags-2.t include/ChangeLog 2011-07-11 15:03:09 +00:00
section-flags.exp Update copyright years 2014-03-05 22:16:15 +10:30
section-match-1.d * ld-gc/abi-note.d: Exclude aout and oldld targets. 2010-09-10 07:18:36 +00:00
section-match-1.s * ld-scripts/section-match.exp: New file. Runs ths 2010-09-01 08:05:16 +00:00
section-match-1.t * ld-scripts/section-match.exp: New file. Runs ths 2010-09-01 08:05:16 +00:00
section-match.exp Update copyright years 2014-03-05 22:16:15 +10:30
size-1.d
size-1.s
size-1.t
size-2.d Add copyright notices 2012-12-17 16:56:12 +00:00
size-2.s
size-2.t
size.exp Update copyright years 2014-03-05 22:16:15 +10:30
sizeof.exp Update copyright years 2014-03-05 22:16:15 +10:30
sizeof.s
sizeof.t
sort.exp Update copyright years 2014-03-05 22:16:15 +10:30
sort.t
sort_b_a-1.d
sort_b_a-1.s
sort_b_a.d
sort_b_a.s
sort_b_a.t
sort_b_a_a-1.d
sort_b_a_a-2.d
sort_b_a_a-3.d
sort_b_a_a.t
sort_b_a_n-1.d
sort_b_a_n-2.d
sort_b_a_n-3.d
sort_b_a_n.t
sort_b_n-1.d
sort_b_n-1.s
sort_b_n.d
sort_b_n.s
sort_b_n.t
sort_b_n_a-1.d
sort_b_n_a-2.d
sort_b_n_a-3.d
sort_b_n_a.t
sort_b_n_n-1.d
sort_b_n_n-2.d
sort_b_n_n-3.d
sort_b_n_n.t
sort_n_a-a.s
sort_n_a-b.s
sort_no-1.d
sort_no-2.d
sort_no.t
sysroot-prefix-x.s Add sysroot-prefix ld linker tests. 2014-10-15 02:59:41 +02:00
sysroot-prefix-y.s Add sysroot-prefix ld linker tests. 2014-10-15 02:59:41 +02:00
sysroot-prefix.exp Fix ld tests with sysroot=/ and --enable-targets=all and test --print-sysroot 2014-10-17 13:11:42 +02:00
weak.exp Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
weak.t
weak1.s
weak2.s