- Mitglied seit
- 15 Feb 2006
- Beiträge
- 70
- Punkte für Reaktionen
- 0
- Punkte
- 0
Bei meinen Versuchen, die letzten paar Bytes rauszuquetschen, um noch ein Paket mehr in die Box zu kriegen, bin ich auf die Compileroption "-mno-shared" gestossen. Busybox wird damit z.B. ca. 5% kleiner, und damit genug, dass man tatsächlich auch komprimiert noch was davon merkt. Leider kann man sie nicht einfach bei den Compileroptionen im Menuconfig mit angeben, weil sie nicht für shared libraries geeignet ist, also musste ich Makefile.in ändern.
Will sich das mal jemand ansehen, der mit dem Make-System von freetz besser vertraut ist als ich? Evtl. separate Menuconfig-Punkte mit den Compileroptionen für Libs und Pakete?
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/MIPS-Options.html#MIPS-Options:
Will sich das mal jemand ansehen, der mit dem Make-System von freetz besser vertraut ist als ich? Evtl. separate Menuconfig-Punkte mit den Compileroptionen für Libs und Pakete?
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/MIPS-Options.html#MIPS-Options:
Code:
-mshared
-mno-shared
Generate (do not generate) code that is fully position-independent, and that can therefore be linked into shared libraries. This option only affects -mabicalls.
All -mabicalls code has traditionally been position-independent, regardless of options like -fPIC and -fpic. However, as an extension, the GNU toolchain allows executables to use absolute accesses for locally-binding symbols. It can also use shorter GP initialization sequences and generate direct calls to locally-defined functions. This mode is selected by -mno-shared.
-mno-shared depends on binutils 2.16 or higher and generates objects that can only be linked by the GNU linker. However, the option does not affect the ABI of the final executable; it only affects the ABI of relocatable objects. Using -mno-shared will generally make executables both smaller and quicker.
-mshared is the default.
Zuletzt bearbeitet: