]> git.ipfire.org Git - pakfire.git/commitdiff
stripper: Don't strip unneeded stuff
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Jan 2025 17:37:52 +0000 (17:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Jan 2025 17:37:52 +0000 (17:37 +0000)
We will otherwise loose the symtab and then we cannot perform the SSP
check any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/stripper.c

index eaa9c3b0f41f0485a1924f7cfa8843f2b3e9852c..cf05be9d5993b3d239cebeb2600ce1c72c8edf82 100644 (file)
@@ -445,9 +445,6 @@ 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),