summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 87115b6f..c4403588 100644
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,9 @@ 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) --add-section .sbat=$(SBATPATH) \
+ --set-section-flags .sbat=contents,alloc,load,readonly,data \
+ $@
$(foreach vs,$(VENDOR_SBATS),$(call add-vendor-sbat,$(vs),$@))
$(SHIMNAME) : $(SHIMSONAME)