Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,10 @@ sphinx_*/

# Rust analyzer configuration
/rust-project.json

# Reproducible build artifacts
/build-repro-1/
/build-repro-2/
/reproducibility-report/
/result
/result-*
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,10 @@ KBUILD_AFLAGS += $(KAFLAGS)
KBUILD_CFLAGS += $(KCFLAGS)
KBUILD_RUSTFLAGS += $(KRUSTFLAGS)

KBUILD_LDFLAGS_MODULE += --build-id=sha1
LDFLAGS_vmlinux += --build-id=sha1
# Allow build-id to be overridden via KBUILD_BUILD_ID (e.g., for reproducible builds)
KBUILD_BUILD_ID ?= sha1
KBUILD_LDFLAGS_MODULE += --build-id=$(KBUILD_BUILD_ID)
LDFLAGS_vmlinux += --build-id=$(KBUILD_BUILD_ID)

KBUILD_LDFLAGS += -z noexecstack
ifeq ($(CONFIG_LD_IS_BFD),y)
Expand Down
Loading