diff options
author | 2021-06-24 13:31:41 +0100 | |
---|---|---|
committer | 2021-06-24 13:31:41 +0100 | |
commit | 216fe62d6fa85b0a3a6a0e66f11da29db4be7490 (patch) | |
tree | b93d5911f0f2e99a9116236e435b42a8993315d8 /scripts | |
parent | Merge branch 'for-next/boot' into for-next/core (diff) | |
parent | Makefile: fix GDB warning with CONFIG_RELR (diff) | |
download | wireguard-linux-216fe62d6fa85b0a3a6a0e66f11da29db4be7490.tar.xz wireguard-linux-216fe62d6fa85b0a3a6a0e66f11da29db4be7490.zip |
Merge branch 'for-next/build' into for-next/core
Tweak linker flags so that GDB can understand vmlinux when using RELR
relocations.
* for-next/build:
Makefile: fix GDB warning with CONFIG_RELR
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tools-support-relr.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/tools-support-relr.sh b/scripts/tools-support-relr.sh index 45e8aa360b45..cb55878bd5b8 100755 --- a/scripts/tools-support-relr.sh +++ b/scripts/tools-support-relr.sh @@ -7,7 +7,8 @@ trap "rm -f $tmp_file.o $tmp_file $tmp_file.bin" EXIT cat << "END" | $CC -c -x c - -o $tmp_file.o >/dev/null 2>&1 void *p = &p; END -$LD $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr -o $tmp_file +$LD $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr \ + --use-android-relr-tags -o $tmp_file # Despite printing an error message, GNU nm still exits with exit code 0 if it # sees a relr section. So we need to check that nothing is printed to stderr. |