s390-tools/s390-tools-sles15sp5-05-zipl-boot-simplify-objcopy-commands.patch

46 lines
1.4 KiB
Diff
Raw Normal View History

---
zipl/boot/Makefile | 32 +-------------------------------
1 file changed, 1 insertion(+), 31 deletions(-)
--- a/zipl/boot/Makefile
+++ b/zipl/boot/Makefile
@@ -78,37 +78,7 @@ stage3.exec: head.o stage3.o kdump3.o li
$(LINK) $$SFLAGS $(NO_PIE_LDFLAGS) $(NO_WARN_RWX_SEGMENTS_LDFLAGS) -Wl,--build-id=none -m64 -static -nostdlib $(filter %.o, $^) -o $@
%.bin: %.exec
- $(OBJCOPY) -O binary \
- --only-section=.stage2.head \
- --only-section=.text.dummy \
- --only-section=.text.start \
- --only-section=.text \
- --only-section=.ex_table \
- --only-section=.data \
- --only-section=.rodata.str1.2 \
- --only-section=.rodata.cst8 \
- --only-section=.rodata \
- --only-section=.stage2dump.tail \
- --only-section=.eckd2dump_mv.tail \
- --only-section=.fixup \
- $< $@
-
-stage3.bin: stage3.exec
- $(OBJCOPY) -O binary \
- --only-section=.stage2.head \
- --only-section=.text.dummy \
- --only-section=.text.start \
- --only-section=.text \
- --only-section=.ex_table \
- --only-section=.data \
- --only-section=.rodata.str1.2 \
- --only-section=.rodata.cst8 \
- --only-section=.rodata \
- --only-section=.stage2dump.tail \
- --only-section=.eckd2dump_mv.tail \
- --only-section=.fixup \
- --only-section=.sb.trailer \
- $< $@
+ $(OBJCOPY) -O binary $< $@
data.o: $(FILES)
$(LINK) $(NO_PIE_LDFLAGS) -static -nostdlib -Wl,--relocatable -Wl,--format,binary -o data.o $(FILES)