On Fri, Jul 27, 2007 at 03:39:49PM +0200, Michael Schmitz wrote: > > Michael Schmitz writes: > Anyway, I remeber we investigated the ld failure with a simple test case > at that time and could not find out where the problem originated. Can't > find the mails right now, but I think Stephen came up with the test case > (mid-June). This pretty much sums up our current problems. void main(void) { printf("Hello world\n"); } $ gcc -pie hello.c | hello.c: In function ‘main’: | hello.c:3: warning: incompatible implicit declaration of built-in function ‘printf’ | hello.c:2: warning: return type of ‘main’ is not ‘int’ | /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': | (.text+0x2e): undefined reference to `__init_array_start' | /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': | (.text+0x36): undefined reference to `__init_array_end' | /usr/bin/ld: a.out: hidden symbol `__init_array_end' isn't defined | /usr/bin/ld: final link failed: Nonrepresentable section on output | collect2: ld returned 1 exit status -- Stephen R. Marenka If life's not fun, you're not doing it right! <stephen@marenka.net>
Attachment:
signature.asc
Description: Digital signature