From 6738cadcc7b0e5ada20372765a72771dd99efe43 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 19 Jan 2013 19:36:37 +0000 Subject: Add HOSTING_SCRT0 for PIE test ld/ * Makefile.am (HOSTING_SCRT0): New. * configure.host (HOSTING_SCRT0): New. Used for PIE. * configure.in (HOSTING_SCRT0): New AC_SUBST. * Makefile.in: Regenerated. * configure: Likewise. ld/testsuite/ * config/default.exp (get_target_emul): Also set HOSTING_SCRT0. * lib/ld-lib.exp (default_ld_link): Use HOSTING_SCRT0 for -pie. --- ld/testsuite/config/default.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/testsuite/config/default.exp') diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index bba48d7..d540f19 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -139,11 +139,11 @@ proc get_target_emul {} { } if [isnative] { - foreach x {HOSTING_CRT0 HOSTING_LIBS} { + foreach x {HOSTING_CRT0 HOSTING_SCRT0 HOSTING_LIBS} { get_link_files $x } } else { - foreach x {HOSTING_CRT0 HOSTING_LIBS} { set $x "" } + foreach x {HOSTING_CRT0 HOSTING_SCRT0 HOSTING_LIBS} { set $x "" } } if ![info exists HOSTING_EMU] { set HOSTING_EMU "-m [get_target_emul]" } -- cgit v1.1