diff options
author | Adrian Thurston <thurston@colm.net> | 2021-09-09 17:34:23 -0700 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2021-09-09 17:34:23 -0700 |
commit | 0efb9a4774b3e3c830b44d6e70c5936e7a0be499 (patch) | |
tree | 805c3ae1b22f268cdb24da8cc41569eae8b4f230 | |
parent | 3cce46d4cf1fb0b5f7d3c942bdc2d0d562d5ec5f (diff) | |
download | ragel-0efb9a4774b3e3c830b44d6e70c5936e7a0be499.tar.gz |
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.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | 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" ;; |