summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan Setje-Eilers <jan.setjeeilers@oracle.com>2021-02-19 15:40:42 -0800
committerPeter Jones <pjones@redhat.com>2021-02-20 17:50:42 -0500
commit888f5b544b7cce3cdae8074aa617b1d4add271a1 (patch)
tree5c1d38f83b57142875d39594b3c50833eb986389 /Makefile
parentd74eb44aac7b394dc9c05f1bababe8f8c2a114e1 (diff)
downloadefi-boot-shim-upstream/15+1613861442.888f5b5.tar.gz
efi-boot-shim-upstream/15+1613861442.888f5b5.zip
Add --set-section-alignment '.sbat=512' to objcopy command lineupstream/15+1613861442.888f5b5
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 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)