Skip to contentSkip to conversation

sstrip vs. strip

Buildroot Cristian Ionescu-Idbohrn 2 participants 2 messages Aug 19, 2007 – Aug 20, 2007

lore
Share & tools
lore
#0 lore raw

If sstrip is selected (instead of the default strip) it needs to be built early, else things like this:

,----

| make[1]: Leaving directory `buildroot/build_i486/gmp-4.2.1'
| buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-sstrip
| --strip-unneeded buildroot/build_i486/staging_dir/usr/lib/libgmp.so*
| /bin/sh: buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-sstrip:
| No such file or directory
| make: *** [buildroot/build_i486/staging_dir/usr/lib/libgmp.so]
| Error 127

`----

may occur.

Moreover, sstrip does not have any options, so that options like s-/--strip-all, --strip-unneeded, --remove-section and so on need to be hidden behind $(STRIP).

Cheers,

Signature · 1 line
Cristian
#1 lore raw

s?n 2007-08-19 klockan 23:58 +0200 skrev Cristian Ionescu-Idbohrn:

Quoted 14 lines

If sstrip is selected (instead of the default strip) it needs to be built early, else things like this:

,----

| make[1]: Leaving directory `buildroot/build_i486/gmp-4.2.1'
| buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-sstrip
| --strip-unneeded buildroot/build_i486/staging_dir/usr/lib/libgmp.so*
| /bin/sh: buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-sstrip:
| No such file or directory
| make: *** [buildroot/build_i486/staging_dir/usr/lib/libgmp.so]
| Error 127

`----

Quoted 9 lines

may occur.

Moreover, sstrip does not have any options, so that options like s-/--strip-all, --strip-unneeded, --remove-section and so on need to be hidden behind $(STRIP).

Cheers,

I generated a patch to fix this:

It makes sstrip-host a prerequisite of building binutils and defines some symbolics for all the flags

I sed'ed package/*/*.mk to replace
--strip-unneeded with $(STRIP_STRIP_UNNEEDED) etc. and defined STRIP_STRIP_UNNEEDED etc. as empty when sstrip is to be used and "--strip-unneeded" etc. otherwise.

The patch was too large so I am resending it here zipped.

Pls try it out.

BR
Ulf Samuelsson

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sstrip.patch.bz2
Type: application/x-bzip
Size: 7519 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070820/47927d87/attachment.bin