Open officerNordberg opened 4 months ago
cc @phlax
sounds reasonable @officerNordberg
one problem you might hit @officerNordberg if you were to follow up on this - im not sure if our linker is sufficiently new
docs here say https://systemd.io/ELF_PACKAGE_METADATA/
They make use of the new --package-metadata flag that is available in the bfd, gold, mold and lld linkers (versions 2.39, 1.3.0 and 15.0 respectively).
checking our current lld
im seeing
$ /opt/llvm/bin/ld.lld --version
LLD 14.0.0 (compatible with GNU linkers)
not 100% that im checking the right thing but this might need to wait for a compiler upgrade
Title: Add a JSON payload as a .note.package ELF section
Description: add a JSON payload as a .note.package ELF section. It looks like there are already bazel rules in envoy that add ELF notes, another rule could be added during the release to include name and version information.
[optional Relevant Links:]