]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
stripper: Strip any LTO information
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Jan 2025 13:13:14 +0000 (13:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Jan 2025 13:13:14 +0000 (13:13 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/stripper.c

index bbf2e59cf859c3e429f8e00ae81dedc38975b6e2..4297c351ac3ece682d908fbb0562b840db7bac0a 100644 (file)
@@ -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,