[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

missing __init_array_start, __init_array_end in __libc_csu_init

freeradius and audit, at least, fail with the following error. A little
googling got me a test case. It also got me the feeling it's a binutils 
type problem.

Any ideas?



smarenka@zeus:~$ cat hello.c
void main(void)
        printf("Hello world\n");

smarenka@zeus:~$ 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!

Attachment: signature.asc
Description: Digital signature

Reply to: