Package: gcc-4.1 Version: 4.1.2-8 Severity: important Code that compiles/links fine on an x86 platform, using PIE fails to link on amd64 - looks like crt1.o wasn't built -fPIC on amd
$ cc -g -Wall -O2 -fstack-protector-all -z relro -z now -fPIE -Wl,-z,relro -Wl,-z,now -Wl,-pie -Wl,--warn-shared-textrel version.c /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o: relocation R_X86_64_32S against `__libc_csu_fini' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o: could not read symbols: Bad value collect2: ld returned 1 exit status Just for giggles, change -fPIE to -fPIC $ cc -g -Wall -O2 -fstack-protector-all -z relro -z now -fPIC -Wl,-z,relro -Wl,-z,now -Wl,-pie -Wl,--warn-shared-textrel version.c /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o: relocation R_X86_64_32S against `__libc_csu_fini' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o: could not read symbols: Bad value collect2: ld returned 1 exit status -- System Information: Debian Release: lenny/sid APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'), (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.21-rc7 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gcc-4.1 depends on: ii binutils 2.17cvs20070426-8 The GNU assembler, linker and bina ii cpp-4.1 4.1.2-8 The GNU C preprocessor ii gcc-4.1-base 4.1.2-8 The GNU Compiler Collection (base ii libc6 2.5-9 GNU C Library: Shared libraries ii libgcc1 1:4.2-20070525-1 GCC support library Versions of packages gcc-4.1 recommends: ii libc6-dev 2.5-9 GNU C Library: Development Librari pn libmudflap0-dev <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]