Hi,
Man kann schon ein wenig mehr entfernen, als nur die Tabellen.
man strip'
man strip' sagt mir nichts darueber. Kannst du etwas genauer werden?
OPTIONS
The amount of information stripped from the ELF object file
can be controlled by using any of the following options:
-b Same effect as the default behavior. This option
is obsolete and will be removed in the next
release.
-l Strip line number information only; do not strip
the symbol table or debugging information.
-r Same effect as the default behavior. This option
is obsolete and will be removed in the next
release.
-V Print, on standard error, the version number of
strip .
-x Do not strip the symbol table; debugging and line
number information may be stripped.
"strip -l" und "strip -x" reduzieren die Größe des httpd-binaries in
meinem Fall nur marginal (beide bewirken nacheinander etwas);
"strip" ohne Parameter macht die Datei etwa 60 KB kleiner, unabhängig
von ihrer sonstigen Größe (das scheint dann genau die Symboltabelle
zu sein).
Ich bin bestimmt kein C-Experte; ich erinnere mich vage daran, daß
man die Symboltabelle aus Bibliotheken nicht entfernen darf, weil
der Linker sie ja noch braucht; aus gebundenen Programmen darf man
dagegen alles raus machen.
(Richtig geraten? Vor ca. 8 Jahren wußte ich das noch, damals durfte
ich einen automatischen Makefile-Generator basteln ... und dann kam
Perl ... seitdem habe ich keine Zeile C mehr geschrieben.)
Viele Grüße
Michael