From: Yu Watanabe Date: Fri, 10 Jul 2026 08:37:39 +0000 (+0900) Subject: Optimize dlopen ELF notes via anchoring and explicitly embed them into executables... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5403bd48fc8a399ccf09859a59d86cc8a864a395;p=thirdparty%2Fsystemd.git Optimize dlopen ELF notes via anchoring and explicitly embed them into executables (#42908) This PR optimizes the handling of `dlopen` ELF notes and reduces binary footprints across the tree. By enabling compiler section-splitting (`-ffunction-sections`/`-fdata-sections`), the linker can now accurately garbage-collect unused code and data. To align with this, `SD_ELF_NOTE_DLOPEN_ANCHORED()` macro is introduced, which ties `dlopen` notes to their calling functions so that unused notes are automatically removed by `--gc-sections`. Additionally, this explicitly embeds required `dlopen` notes into individual executables to fix a visibility issue where package managers missed runtime dependencies invoked indirectly through `libsystemd-shared.so`. --- 5403bd48fc8a399ccf09859a59d86cc8a864a395