]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86-64: Disable PIE on PR gas/32189 test
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Sep 2024 23:15:02 +0000 (07:15 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Sep 2024 21:53:00 +0000 (05:53 +0800)
Disable PIE on PR gas/32189 test, which contains the non-PIE assembly
source, to support GCC defaulted to PIE.

PR gas/32189
* testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to linker
on PR gas/32189 test.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 075c4ca29a1afb1fa19e3038cae5730487e99701)

ld/testsuite/ld-x86-64/x86-64.exp

index a4f197dcf4da1e71f9a07388b8259cfb97fb5a49..09b0c04d01c6145a99971068fb95a0b7cf3482c5 100644 (file)
@@ -1922,7 +1922,7 @@ if { [isnative] && [check_compiler_available] } {
        ] \
        [list \
            "Run pr32189" \
-           "-nostdlib -nostartfiles" \
+           "$NOPIE_LDFLAGS -nostdlib -nostartfiles" \
            "" \
            { pr32189.s } \
            "pr32189" \