]> git.ipfire.org Git - pakfire.git/commitdiff
stripper: Strip relocation information again
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Jan 2025 16:20:01 +0000 (16:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Jan 2025 16:20:01 +0000 (16:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/stripper.c

index cf05be9d5993b3d239cebeb2600ce1c72c8edf82..eaa9c3b0f41f0485a1924f7cfa8843f2b3e9852c 100644 (file)
@@ -445,6 +445,9 @@ static int pakfire_stripper_strip_debug_sections(struct pakfire_stripper* stripp
                // Ask to strip all debug information
                "--strip-debug",
 
+               // Strip anything unneeded
+               "--strip-unneeded",
+
                // Add the debuglink
                "--remove-section=.gnu_debuglink",
                "--add-gnu-debuglink", pakfire_relpath(stripper->pakfire, build_id_path),