diff options
author | Sertonix <sertonix@posteo.net> | 2025-06-10 17:58:06 +0000 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2025-07-11 10:06:41 +0200 |
commit | acb00a7aae47e9f6e9a955f4c83e2295c7271837 (patch) | |
tree | 446de97baa9b32433c0098d53a905df56790d40c | |
parent | c784de966b154810a4c97eb0e4a658ec6457dd4c (diff) | |
download | qemu-acb00a7aae47e9f6e9a955f4c83e2295c7271837.zip qemu-acb00a7aae47e9f6e9a955f4c83e2295c7271837.tar.gz qemu-acb00a7aae47e9f6e9a955f4c83e2295c7271837.tar.bz2 |
pc-bios/s390-ccw: link statically
Adding -pie to LDFLAGS caused s390-ccw.img to become dynamically linked.
By using -static-pie it will be linked statically like other bios.
This ensures that the build output doesn't change depending on the
default dynamic loader path of the toolchain.
Fixes: d884c86dcd3b ("s390/bios: Make the s390-ccw.img relocatable")
Signed-off-by: Sertonix <sertonix@posteo.net>
Message-ID: <DAJ1QOSAP9LS.342SQSM0UZU80@posteo.net>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r-- | pc-bios/s390-ccw/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile index dc69dd4..a0f24c9 100644 --- a/pc-bios/s390-ccw/Makefile +++ b/pc-bios/s390-ccw/Makefile @@ -47,7 +47,7 @@ EXTRA_CFLAGS += -fwrapv -fno-strict-aliasing -fno-asynchronous-unwind-tables EXTRA_CFLAGS += -msoft-float EXTRA_CFLAGS += -std=gnu99 EXTRA_CFLAGS += $(LIBC_INC) $(LIBNET_INC) -EXTRA_LDFLAGS += -Wl,-pie -nostdlib -z noexecstack -z text +EXTRA_LDFLAGS += -static-pie -nostdlib -z noexecstack -z text cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/dev/null cc-option = if $(call cc-test, $1); then \ |