From: Mike Frysinger Date: Wed, 13 May 2020 11:23:08 +0000 (-0400) Subject: travis: disable PIE in tests X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=840782f9aebf7e7a403883ad590343da340bfef3;p=elf2flt.git travis: disable PIE in tests Since all current prebuilt binutils libs are built w/out PIC/PIE, disable PIE usage in tests. Newer toolchains are defaulting this to on which breaks us. Signed-off-by: Mike Frysinger --- diff --git a/travis/main.sh b/travis/main.sh index 63a1856..7a7e5f4 100755 --- a/travis/main.sh +++ b/travis/main.sh @@ -41,6 +41,9 @@ main() { git clone --depth=1 https://github.com/uclinux-dev/prebuilts-binutils-libs ../prebuilts-binutils-libs fi + # Newer compilers default to PIE which the prebuilts aren't using. + export CFLAGS='-O2 -pipe -no-pie' + local a b for a in "${ARCHES[@]}" ; do for b in "${BINUTILS_VERS[@]}" ; do