From 888f5b544b7cce3cdae8074aa617b1d4add271a1 Mon Sep 17 00:00:00 2001 From: Jan Setje-Eilers Date: Fri, 19 Feb 2021 15:40:42 -0800 Subject: Add --set-section-alignment '.sbat=512' to objcopy command line --- Makefile | 2 +- SBAT.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0cd45b91..02f380e0 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/SBAT.md b/SBAT.md index f32c3d10..cce34b6b 100644 --- a/SBAT.md +++ b/SBAT.md @@ -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 ``` -- cgit v1.2.3