From 0efb9a4774b3e3c830b44d6e70c5936e7a0be499 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Thu, 9 Sep 2021 17:34:23 -0700 Subject: use -no-pie for asm build The -fPIE option is now the default and it needs to be turned off when making simple progs that use .rodata and .text. --- configure.ac | 2 +- test/ragel.d/gentests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 99269817..c9275157 100644 --- a/configure.ac +++ b/configure.ac @@ -360,7 +360,7 @@ main: EOF echo -n "checking if ragel ASM tests will build ... " -if sh -c "$ASM_BIN -o conftest.bin conftest.s" >>config.log 2>&1; then +if sh -c "$ASM_BIN -no-pie -o conftest.bin conftest.s" >>config.log 2>&1; then echo "yes" else echo "no" diff --git a/test/ragel.d/gentests.sh b/test/ragel.d/gentests.sh index ac3eef2a..be7822a4 100644 --- a/test/ragel.d/gentests.sh +++ b/test/ragel.d/gentests.sh @@ -263,7 +263,7 @@ function lang_opts() interpreted=false compiler="$assembler" host_ragel=$RAGEL_ASM_BIN - flags="" + flags="-no-pie" libs="" prohibit_flags="-T0 -T1 -F0 -F1 -W0 -W1 -G0 -G1 --string-tables" ;; -- cgit v1.2.1