Hallo Ralf!
Am Samstag, den 07.04.2012, 00:36 +0200 schrieb Ralf Hüsing:
> echo 'int main(){return 0;}' | gcc -x c -s -static - -o a.out
> && ./a.out
Läuft unter testing/amd64 ohne Fehler, es kommt eine a.out raus von
698056 Byte Größe.
>echo 'int main(){return 0;}' | gcc -x c -static - -o a.out && strip -s
>a.out && ./a.out
Ebenfalls ohne Fehler, gleiche Größe, andere md5sum.
file a.out
liefert mit Workaround
a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically
linked, for GNU/Linux 2.6.26,
BuildID[sha1]=0xcbdaeebdea78e4bf29bc98a3f5861520101f3fd6, stripped
zurück. Ohne Workaround steht statt SYSV in den Klammern GNU/Linux und
eine andere BuildID.
Hth,
tim
--
"Lebensgefährtin" ist ein Wort, das von Lebensgefahr abgeleitet ist.
Attachment:
signature.asc
Description: This is a digitally signed message part