(genprotimg|zipl)/boot: remove executable bit

The bootloader binaries cannot be executed via `exec()` therefore remove
the executable bit.

Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2023-08-04 12:41:04 +00:00
committed by Jan Höppner
parent c62f930634
commit b301381f90
2 changed files with 4 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ stage3b.elf: head.o $(ZIPL_OBJS)
%.bin.debug: %.elf
$(OBJCOPY) --only-keep-debug $< $@
@chmod a-x $@
%.bin: %.elf
$(OBJCOPY) -O binary $< $@

View File

@@ -76,12 +76,15 @@ stage3.exec: head.o stage3.o kdump3.o libc.o ebcdic.o ebcdic_conv.o sclp.o \
%.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 $@
@chmod a-x $@
%.bin.debug: %.exec
$(OBJCOPY) --only-keep-debug $< $@
@chmod a-x $@
%.bin: %.exec
$(OBJCOPY) -O binary $< $@
@chmod a-x $@
clean: