Bug#1108850: Garbage characters on KeyTool.efi - Fixed
This problem started with the 3.0.18 version of gnu-efi. The attached
patch adds the new sections that need to be added to the objcopy in
Make.rules.
Donn Schneider
--- orig/Make.rules 2025-10-15 11:27:24.000000000 -0500
+++ Make.rules 2025-10-15 12:51:12.400042285 -0500
@@ -70,9 +70,9 @@
endif
%.efi: %.so
- $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \
+ $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j dynsym -j .rodata \
-j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \
- -j .reloc $(FORMAT) $*.so $@
+ -j .areloc -j .reloc $(FORMAT) $*.so $@
%.so: %.o
$(LD) $(LDFLAGS) $^ -o $@ $(LOADLIBES)
# check we have no undefined symbols
Reply to: