Re: squeeze, x64, gcc -s -static = unexpected reloc type in static binary
Am Samstag, 7. April 2012 schrieb Tim Boneko:
> 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.
Ditto unter Sid:
merkaba:~> cd /tmp
merkaba:/tmp> echo 'int main(){return 0;}' | gcc -x c -s -static - -o
a.out && ./a.out
merkaba:/tmp> ls -l a.out
-rwxr-xr-x 1 root root 698056 Apr 9 21:22 a.out
merkaba:/tmp> gcc --version
gcc (Debian 4.6.3-2) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
merkaba:/tmp> apt-show-versions | grep binutils
binutils/sid uptodate 2.22-6
merkaba:/tmp>
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Reply to: