s390-tools/s390-tools-sles15sp5-11-genprotimg-boot-Makefile-simplify-objcopy-command.patch

24 lines
612 B
Diff
Raw Normal View History

---
genprotimg/boot/Makefile | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
--- a/genprotimg/boot/Makefile
+++ b/genprotimg/boot/Makefile
@@ -82,14 +82,8 @@ stage3b_reloc.elf:
$(LINK) $$SFLAGS $(NO_PIE_LDFLAGS) $(NO_WARN_RWX_SEGMENTS_LDFLAGS) -Wl,--build-id=none -m64 -static -nostdlib $(filter %.o, $^) -o $@
@chmod a-x $@
-%.bin: %.elf
- $(OBJCOPY) -O binary \
- --only-section=.text* \
- --only-section=.ex_table* \
- --only-section=.fixup* \
- --only-section=.data* \
- --only-section=.rodata* \
- $< $@
+%.bin: %.elf
+ $(OBJCOPY) -O binary $< $@
@chmod a-x $@
clean: