From 3015d7f233c8bfe1c6edb93273be7c9df829ac98 Mon Sep 17 00:00:00 2001 From: freesource Date: Sat, 17 Nov 2001 06:11:53 +0000 Subject: [PATCH] Added -p to objcopy. --- gbootroot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gbootroot b/gbootroot index 103eecf..bee5680 100755 --- a/gbootroot +++ b/gbootroot @@ -4,7 +4,7 @@ # # AUTHOR # ------ -# Lead Developer and Project Coordinator +# [ Lead Developer and Project Coordinator ] # Jonathan Rosenbaum # # CONTRIBUTORS @@ -3042,25 +3042,25 @@ sub stripper { ($_[1] eq "lib" && $lib_strip_check->active)) { # --strip-all works for initrd if ($obj_count == 0) { - sys("objcopy --strip-debug $_[0] $tmp/$filename"); + sys("objcopy --strip-debug -p $_[0] $tmp/$filename"); info(1,"--strip-debug $filename\n"); return ( "$tmp/$filename", 1 ); } elsif ($obj_count == 1) { - sys("objcopy --strip-all $_[0] $tmp/$filename"); + sys("objcopy --strip-all -p $_[0] $tmp/$filename"); info(1,"--strip-all $filename\n"); return ( "$tmp/$filename", 1 ); } } elsif (($_[1] eq "bin" && !defined $bin_strip_check) or ($_[1] eq "bin" && $bin_strip_check->active)) { - sys("objcopy --strip-all $_[0] $tmp/$filename"); + sys("objcopy --strip-all -p $_[0] $tmp/$filename"); info(1,"--strip-all $filename\n"); return ( "$tmp/$filename", 1 ); } elsif (($_[1] eq "mod" && !defined $mod_strip_check) or ($_[1] eq "mod" && $mod_strip_check->active)) { - sys("objcopy --strip-debug $_[0] $tmp/$filename"); + sys("objcopy --strip-debug -p $_[0] $tmp/$filename"); info(1,"--strip-debug $filename\n"); return ( "$tmp/$filename", 1 ); }