1From 9fd3c733c645be13a2e39a3bae3983f88530b48d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Lukas=20M=C3=A4rdian?= <lukas.maerdian@canonical.com>
3Date: Thu, 7 Jan 2021 12:46:22 +0100
4Subject: [PATCH] zipl/boot/Makefile: -no-pie is not a valid ld flag
5
6The "-no-pie" option never has been a valid flag of ld. It breaks the build with newer binutils.
7See:
8https://sourceware.org/bugzilla/show_bug.cgi?id=27050
9https://bugs.launchpad.net/ubuntu/+source/s390-tools/+bug/1907789
10
11[Retrieved from: https://github.com/ibm-s390-linux/s390-tools/pull/106]
12Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
13---
14 zipl/boot/Makefile | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/zipl/boot/Makefile b/zipl/boot/Makefile
18index a2e5f190..b81df778 100644
19--- a/zipl/boot/Makefile
20+++ b/zipl/boot/Makefile
21@@ -109,7 +109,7 @@ stage3.bin:	stage3.exec
22 		$< $@
23
24 data.o: $(FILES)
25-	$(LD) $(NO_PIE_LDFLAGS) -r -b binary -o data.o $(FILES)
26+	$(LD) -r -b binary -o data.o $(FILES)
27
28 data.h: data.o
29 	rm -f data.h
30