diff --git a/genprotimg/boot/Makefile b/genprotimg/boot/Makefile index 95bd6cc1..d71afdb1 100644 --- a/genprotimg/boot/Makefile +++ b/genprotimg/boot/Makefile @@ -79,7 +79,7 @@ stage3b_reloc.elf: stage3b) SFLAGS="$(NO_PIE_LDFLAGS) -nostdlib -Wl,-T,stage3b.lds";; \ stage3b_reloc) SFLAGS="$(NO_PIE_LDFLAGS) -nostdlib -Wl,-estage3b_reloc_start,-Ttext,0";; \ esac; \ - $(LINK) $$SFLAGS -m64 $(filter %.o, $^) -o $@ + $(LINK) $$SFLAGS -m64 -static $(filter %.o, $^) -o $@ @chmod a-x $@ %.bin: %.elf diff --git a/zipl/boot/Makefile b/zipl/boot/Makefile index f4a68a9e..04a58952 100644 --- a/zipl/boot/Makefile +++ b/zipl/boot/Makefile @@ -74,7 +74,7 @@ stage3.exec: head.o stage3.o kdump3.o libc.o ebcdic.o ebcdic_conv.o sclp.o \ 2) SFLAGS="$(NO_PIE_LDFLAGS) -nostdlib -Wl,-T,stage2.lds";; \ 3) SFLAGS="$(NO_PIE_LDFLAGS) -nostdlib -Wl,-T,stage3.lds";; \ esac; \ - $(LINK) $$SFLAGS -m64 $(filter %.o, $^) -o $@ + $(LINK) $$SFLAGS -m64 -static $(filter %.o, $^) -o $@ %.bin: %.exec $(OBJCOPY) -O binary \