Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip build ID from Nitro binaries #519

Closed
Closed
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
3 changes: 2 additions & 1 deletion workspaces/nitro-host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ build:
--features veracruz-client/nitro \
--features veracruz-server/nitro \
--features cli
strip target/$(PROFILE_PATH)/proxy-attestation-server target/$(PROFILE_PATH)/veracruz-client target/$(PROFILE_PATH)/veracruz-server
# Strip symbols and build ID to save space and avoid reproducibility issues
strip --remove-section=.note.gnu.build-id target/$(PROFILE_PATH)/proxy-attestation-server target/$(PROFILE_PATH)/veracruz-client target/$(PROFILE_PATH)/veracruz-server

.PHONY: $(MEASUREMENT_FILE)
$(MEASUREMENT_FILE):
Expand Down
3 changes: 2 additions & 1 deletion workspaces/nitro-runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ runtime-manager-enclave:
CC_$(ARCH)_unknown_linux_musl=musl-gcc \
cargo build --target $(ARCH)-unknown-linux-musl $(PROFILE_FLAG) $(V_FLAG) \
--features nitro -p runtime_manager_enclave
strip target/$(ARCH)-unknown-linux-musl/$(PROFILE_PATH)/runtime_manager_enclave
# Strip symbols and build ID to save space and avoid reproducibility issues
strip --remove-section=.note.gnu.build-id target/$(ARCH)-unknown-linux-musl/$(PROFILE_PATH)/runtime_manager_enclave

doc:
cargo doc
Expand Down