aboutsummaryrefslogtreecommitdiff
path: root/build/tools
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2018-10-11 14:13:41 -0700
committerDan Albert <danalbert@google.com>2018-10-11 15:36:42 -0700
commit9d0b9896931fb7e7af4bd345df92f8dcc8f888f2 (patch)
treeb77f3a3b99cb0ec7024a15b875ccccc4cdb330c0 /build/tools
parent9c6532fcef3bef4851aea5a068233598fab5f6d6 (diff)
downloadndk-9d0b9896931fb7e7af4bd345df92f8dcc8f888f2.tar.gz
Stop using `-Wl,-z,nocopyreloc`.
This is no longer necessary since all executables are PIE. The gdbserver case was never necessary since it's a static binary. Test: ./checkbuild.py && ./run_tests.py Bug: None Change-Id: I5ba24d2d46bbdbb9a2803787c3ec16ea050c3e5a
Diffstat (limited to 'build/tools')
-rwxr-xr-xbuild/tools/build-gdbserver.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/tools/build-gdbserver.sh b/build/tools/build-gdbserver.sh
index a9e7dc280..ebb0d3553 100755
--- a/build/tools/build-gdbserver.sh
+++ b/build/tools/build-gdbserver.sh
@@ -239,7 +239,7 @@ export CC="${TOOLCHAIN_PREFIX}gcc --sysroot=$BUILD_SYSROOT $TARGET_FLAG" &&
export AR="${TOOLCHAIN_PREFIX}ar" &&
export RANLIB="${TOOLCHAIN_PREFIX}ranlib" &&
export CFLAGS="-O2 $GDBSERVER_CFLAGS" &&
-export LDFLAGS="-static -Wl,-z,nocopyreloc -Wl,--no-undefined" &&
+export LDFLAGS="-static" &&
run $SRC_DIR/configure \
--build=x86_64-linux-gnu \
--host=$GDBSERVER_HOST \