diff --git a/common.mak b/common.mak index 527f75ba..359032d3 100644 --- a/common.mak +++ b/common.mak @@ -341,7 +341,6 @@ export INSTALL CFLAGS CXXFLAGS \ LDFLAGS CPPFLAGS ALL_CFLAGS ALL_CXXFLAGS ALL_LDFLAGS ALL_CPPFLAGS NO_PIE_CFLAGS := -fno-pie -NO_PIE_LDFLAGS := -no-pie # Overwrite implicit makefile rules for having nice compile output %.o: %.c diff --git a/rust/pvimg/boot/Makefile b/rust/pvimg/boot/Makefile index 1bff4f83..ad00371a 100644 --- a/rust/pvimg/boot/Makefile +++ b/rust/pvimg/boot/Makefile @@ -74,7 +74,7 @@ stage3b.elf: head.o $(ZIPL_OBJS) .SECONDARY: $(FILES:.bin=.lds) %.elf: %.lds %.o - $(LINK) $(NO_PIE_LDFLAGS) $(NO_WARN_RWX_SEGMENTS_LDFLAGS) -Wl,-T,$< -Wl,--build-id=none -m64 -static -nostdlib $(filter %.o, $^) -o $@ + $(LINK) $(NO_WARN_RWX_SEGMENTS_LDFLAGS) -Wl,-T,$< -Wl,--build-id=none -m64 -static -nostdlib $(filter %.o, $^) -o $@ @chmod a-x $@ %.bin.debug: %.elf diff --git a/zipl/boot/Makefile b/zipl/boot/Makefile index a7827a73..4ca0708a 100644 --- a/zipl/boot/Makefile +++ b/zipl/boot/Makefile @@ -93,7 +93,7 @@ stage3.exec: head.o stage3.o kdump3.o libc.o ebcdic.o ebcdic_conv.o sclp.o \ sclp_stage3.o kdump.o entry.o stage3.lds %.exec: %.o - $(LINK) -Wl,-T,$(filter %.lds,$^) $(NO_PIE_LDFLAGS) $(NO_WARN_RWX_SEGMENTS_LDFLAGS) -Wl,--build-id=none -m64 -static -nostdlib $(filter %.o, $^) -o $@ + $(LINK) -Wl,-T,$(filter %.lds,$^) $(NO_WARN_RWX_SEGMENTS_LDFLAGS) -Wl,--build-id=none -m64 -static -nostdlib $(filter %.o, $^) -o $@ @chmod a-x $@ %.bin.debug: %.exec