Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
misc: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jul 27, 2021
1 parent 1c884d8 commit a21bba2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kiss
Original file line number Diff line number Diff line change
Expand Up @@ -621,18 +621,18 @@ pkg_strip() {
# would run od on all files (upwards of 4000 for Python).
*/sbin/?*|*/bin/?*|*/lib/?*|*/lib??/?*|*/lib???/?*|*/lib????/?*)

case $(od -A o -t c -N 18 "$pkg_dir/$pkg$file") in
case $(od -A o -t c -N 18 "$pkg_dir/$1$file") in
# REL (object files (.o), static libraries (.a)).
*177*E*L*F*0000020\ 001\ *|*\!*\<*a*r*c*h*\>*)
strip -g -R .comment -R .note "$pkg_dir/$pkg$file"
strip -g -R .comment -R .note "$pkg_dir/$1$file"
;;

# EXEC (binaries), DYN (shared libraries).
# Shared libraries keep global symbols in a separate ELF section
# called '.dynsym'. '--strip-all/-s' does not touch the dynamic
# symbol entries which makes this safe to do.
*177*E*L*F*0000020\ 00[23]\ *)
strip -s -R .comment -R .note "$pkg_dir/$pkg$file"
strip -s -R .comment -R .note "$pkg_dir/$1$file"
;;
esac
esac done < "$pkg_dir/$1/$pkg_db/$1/manifest" 2>/dev/null || :
Expand Down

0 comments on commit a21bba2

Please sign in to comment.