summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--SBAT.md5
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 02f380e0..0cd45b91 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) --set-section-alignment '.sbat=512' --add-section .sbat=$(SBATPATH) $@
+ $(OBJCOPY) --add-section .sbat=$(SBATPATH) $@
$(foreach vs,$(VENDOR_SBATS),$(call add-vendor-sbat,$(vs),$@))
$(SHIMNAME) : $(SHIMSONAME)
diff --git a/SBAT.md b/SBAT.md
index cce34b6b..ce4ef69c 100644
--- a/SBAT.md
+++ b/SBAT.md
@@ -336,6 +336,11 @@ objcopy --set-section-alignment '.sbat=512' --add-section .sbat=sbat.csv foo.efi
```
+Older versions of objcopy(1) do not support --set-section-alignment
+which is required to force the correct alignment expected from a PE
+file. As long as there is another step, later in the build process,
+such as an linker invocation that forces alignment, objcopy(1) does
+not need to align an intermediate file.
#### UEFI SBAT Variable content