strip: Include .o files in strip operation

`.o` objects used to be omitted by strip.sh due to a missing match in
the `Relocatable file` section. This patch fixes the issue by handling
`.o` objects similar to kernel modules.

fixes FS#74941

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Frederik Schwan 2022-10-05 17:28:47 +02:00 committed by Allan McRae
parent 478af273df
commit de11824527

View file

@ -160,7 +160,7 @@ tidy_strip() {
if ar t "$binary" &>/dev/null; then # Libraries (.a) if ar t "$binary" &>/dev/null; then # Libraries (.a)
strip_flags="$STRIP_STATIC" strip_flags="$STRIP_STATIC"
STRIPLTO=1 STRIPLTO=1
elif [[ $binary = *'.ko' ]]; then # Kernel module elif [[ $binary = *'.ko' || $binary = *'.o' ]]; then # Kernel module or object file
strip_flags="$STRIP_SHARED" strip_flags="$STRIP_SHARED"
else else
continue continue