Commit Graph

11 Commits

Author SHA1 Message Date
Felix Fietkau
7ad6e8c312 scripts/rstrip.sh: ignore /lib/firmware
On some platforms, some firmware files might look like executables.
These need to be ignored in order to avoid messing them up.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-01-22 13:01:31 +01:00
Felix Fietkau
b45ff2d023 scripts/rstrip.sh: do not strip .o files with STRIP_KMOD
Fixes packaging of eBPF modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2021-10-11 11:49:14 +02:00
Yorkie Liu
8b2efc87db scripts: rstrip.sh: allow rpath with sole $ORIGIN token
2efe776 introduces rpath checks with the commit message:

> Remove all rpath entries which do not point to a location below /lib or
> /usr/lib and which do not begin with '$ORIGIN'.

However the implementation failed to support rpath entries with only the
'$ORIGIN' token and no trailing slash, so allow these as well.

Signed-off-by: Yorkie Liu <yazhong.liu@rokid.com>
[reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-19 15:36:05 +01:00
Felix Fietkau
b9b681c067 rstrip.sh: fix handling variations in "file" output
On some systems, file adds ", with debug info" after "not stripped"

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-02-19 16:56:17 +01:00
Jo-Philipp Wich
2efe776ab0 scripts: extend rstrip.sh to remove bad rpaths
Remove all rpath entries which do not point to a location below /lib or
/usr/lib and which do not begin with '$ORIGIN'.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44377
2015-02-10 15:48:48 +00:00
Felix Fietkau
c2590fe930 strip kernel modules more aggressively: make all global symbols local, rename all symbols in the symbol table to make them compress better
SVN-Revision: 30662
2012-02-20 17:38:26 +00:00
Nicolas Thill
54d622a815 add a workaround to rstrip restoring exec perms when they got changed by sstrip
SVN-Revision: 15312
2009-04-21 01:10:21 +00:00
Ralph Hempel
91042e02a7 strip relocatable binaries (not depending on the extension) ( thanks to Thomas )
SVN-Revision: 14726
2009-03-02 17:33:02 +00:00
Felix Fietkau
d0e1033a26 more fixes for rstrip.sh and kernel modules - fixes #1301
SVN-Revision: 6280
2007-02-09 16:24:34 +00:00
Felix Fietkau
f0d41ad105 always return true in rstrip.sh
SVN-Revision: 6132
2007-01-20 01:17:28 +00:00
Felix Fietkau
60c1f0f64d finally move buildroot-ng to trunk 2016-03-20 17:29:15 +01:00