[OpenWrt-Devel] [LEDE-DEV] [RFC] Use CONFIG_USE_STRIP=y as default

Felix Fietkau nbd at nbd.name
Mon Jul 11 01:36:48 EDT 2016


On 2016-07-11 00:16, Heinrich Schuchardt wrote:
> Currently the default for stripping when building Lede/OpenWRT is
> CONFIG_USE_SSTRIP=y.
> 
> This has the following impacts:
> 
> Linking with GCC against libraries on the OpenWRT device is impossible.
> 
> Python packages like pyusb that dynamically link against C libraries
> cannot be used.
> 
> Debugging with gdb is not possible.
> 
> Cf. the comments in
> https://dev.openwrt.org/browser/trunk/tools/sstrip/src/sstrip.c
> 
> The size difference between libraries stripped with SSTRIP and STRIP is
> very small:
> 
> libusb-1.0.so.0.1.0
> STRIP: 47720 bytes
> SSTRIP: 46412 bytes
> 
> In the example above the size increase is less then 3 %.
> 
> I suggest to change the default to CONFIG_USE_STRIP=y.
NACK for the CONFIG_USE_STRIP change. Most dynamic linking (e.g. via
dlopen) works just fine. If python has an issue there, we should fix
that, or use strip instead of sstrip only for pyusb and similar things.

As for using GCC on OpenWrt, I think that's exotic enough to not be a
reason to push a size increase onto everybody else.

Regarding debugging with gdb, I use the gdbserver + cross gdb on the
host, and it tends to work just fine even with sstrip.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list