pc-bios/s390-ccw/netboot: Use "-Wl," prefix to pass parameter to the linker
authorThomas Huth <thuth@redhat.com>
Fri, 23 Apr 2021 15:20:46 +0000 (17:20 +0200)
committerThomas Huth <thuth@redhat.com>
Sun, 9 May 2021 16:14:31 +0000 (18:14 +0200)
We are using the compiler to do the linking of the bios files. GCC still
accepts the "-Ttext=..." linker flag directly and is smart enough to
pass it to the linker, but in case we are compiling with Clang, we have
to use the official way with the "-Wl," prefix instead.

Message-Id: <20210423153646.593153-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/netboot.mak

index 577c023afe3db17ada307b2abbcc27f8ea9c03aa..68b4d7edcb2c8b10e162a0872e27e7c0ae79b931 100644 (file)
@@ -6,7 +6,7 @@ NETOBJS := start.o sclp.o cio.o virtio.o virtio-net.o jump2ipl.o netmain.o
 LIBC_INC := -nostdinc -I$(SLOF_DIR)/lib/libc/include
 LIBNET_INC := -I$(SLOF_DIR)/lib/libnet
 
-NETLDFLAGS := $(LDFLAGS) -Ttext=0x7800000
+NETLDFLAGS := $(LDFLAGS) -Wl,-Ttext=0x7800000
 
 $(NETOBJS): QEMU_CFLAGS += $(LIBC_INC) $(LIBNET_INC)