diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | SBAT.md | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -95,7 +95,7 @@ VENDOR_SBATS := $(foreach x,$(wildcard data/sbat.*.csv),$(notdir $(x))) sbat_data.o : | $(SBATPATH) $(VENDOR_SBATS) sbat_data.o : /dev/null $(CC) $(CFLAGS) -x c -c -o $@ $< - $(OBJCOPY) --add-section .sbat=$(SBATPATH) $@ + $(OBJCOPY) --set-section-alignment '.sbat=512' --add-section .sbat=$(SBATPATH) $@ $(foreach vs,$(VENDOR_SBATS),$(call add-vendor-sbat,$(vs),$@)) $(SHIMNAME) : $(SHIMSONAME) @@ -332,7 +332,7 @@ Components that do not have special code to construct the final PE files can simply add this section using objcopy(1): ``` -objcopy --add-section .sbat=sbat.csv foo.efi +objcopy --set-section-alignment '.sbat=512' --add-section .sbat=sbat.csv foo.efi ``` |