OpenWrt Forum Archive

Topic: why don't we strip binaries, libs, modules etc.?

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Why aren't all binaries, libraries and kernel modules stripped / compiled with "-Os -s"?

This way we could gain some more space and memory.

Or is there a specific reason why it shouldn't be done?

binaries and libraries are stripped before being packaged by sstrip. kernel modules are not (intentionally) stripped.

mangoo wrote:

Why aren't all binaries, libraries and kernel modules stripped / compiled with "-Os -s"?

This way we could gain some more space and memory.

Or is there a specific reason why it shouldn't be done?

Yes, it can't be done. Because all developers are to stupid.




P.S.: Did you ever looked into the buildroot, before posting bullshit?

wbx wrote:
mangoo wrote:

Why aren't all binaries, libraries and kernel modules stripped / compiled with "-Os -s"?

This way we could gain some more space and memory.

Or is there a specific reason why it shouldn't be done?

Yes, it can't be done. Because all developers are to stupid.

Well, you said that, not me.

wbx wrote:

P.S.: Did you ever looked into the buildroot, before posting bullshit?

Yes I did, and I stripped and/or compiled lots of programs for openwrt with "-Os -s".

And I still don't understand why did you call it "posting bullshit".

PS. In some circles people would tell you're being very rude, but perhaps it's just the way you normally talk to other people.

He's refering to the fact that Nico mentioned as well. Please at least verify your statements before posting here.

Kernel modules are "intentionally left unstripped".
Why is that?

mangoo wrote:

Kernel modules are "intentionally left unstripped".
Why is that?

Just try inserting one that's stripped and find out?

# file /mnt/1/lib/modules/2.4.30/loop.o
loop.o: ELF 32-bit LSB relocatable, MIPS, version 1 (SYSV), stripped

# file /mnt/1/lib/modules/2.4.30/shfs.o
shfs.o: ELF 32-bit LSB relocatable, MIPS, version 1 (SYSV), stripped

# insmod loop
Using /lib/modules/2.4.30/loop.o

# insmod shfs
Using /lib/modules/2.4.30/shfs.o

# lsmod
Module                  Size  Used by    Tainted: P
shfs                   46304   0 (unused)
loop                   10880   0 (unused)

Normally, it should complain though.

So I understand it's only for those who are in an extreme need of space smile

The discussion might have continued from here.