From: Michael Tremer Date: Wed, 8 Jan 2025 13:13:14 +0000 (+0000) Subject: stripper: Strip any LTO information X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f810d2f935a0d4bcbc204f8677bc9d3e7119806;p=people%2Fric9%2Fpakfire.git stripper: Strip any LTO information Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/stripper.c b/src/pakfire/stripper.c index bbf2e59cf..4297c351a 100644 --- a/src/pakfire/stripper.c +++ b/src/pakfire/stripper.c @@ -404,6 +404,11 @@ static int pakfire_stripper_strip_debug_sections(struct pakfire_stripper* self, // Strip anything unneeded "--strip-unneeded", + // Remove any LTO stuff + "--remove-section=.gnu.lto_*", + "--remove-section=.gnu.debuglto_*", + "--strip-symbol=__gnu_lto_v1", + // Add the debuglink "--remove-section=.gnu_debuglink", "--add-gnu-debuglink", build_id_path,