icecc-create-env: do not run strip 04/69704/1
authorJulien Isorce <j.isorce@samsung.com>
Mon, 16 May 2016 10:42:15 +0000 (11:42 +0100)
committerJulien Isorce <j.isorce@samsung.com>
Mon, 16 May 2016 10:51:58 +0000 (11:51 +0100)
On some conditions strip can corrupt input binary that
it is trying to strip symbols.
See https://bugs.tizen.org/jira/browse/TINF-1404

Also on Tizen3.0, binaries that icecc put into the mini
compiler archive, are already stripped (gcc. g++, as). So
running strip on them does not bring any advantages.

Change-Id: Ifea3e85411ee4941877360aae137304682d7acd3
Signed-off-by: Julien Isorce <j.isorce@samsung.com>
client/icecc-create-env

index 6815b1b..718e55c 100755 (executable)
@@ -163,9 +163,10 @@ for i in $target_files; do
   esac
   mkdir -p $tempdir/`dirname $target`
   cp -p $path $tempdir/$target
-  if test -f $tempdir/$target -a -x $tempdir/$target; then
-    strip -s $tempdir/$target 2>/dev/null
-  fi
+  # Bug in binutils, see https://bugs.tizen.org/jira/browse/TINF-1404
+  # if test -f $tempdir/$target -a -x $tempdir/$target; then
+  #   strip -s $tempdir/$target 2>/dev/null
+  # fi
   target=`echo $target | cut -b2-`
   new_target_files="$new_target_files $target"
 done