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

Re: missing __init_array_start, __init_array_end in __libc_csu_init



On Mon, Jun 11, 2007 at 05:35:02PM -0500, Stephen R Marenka wrote:

> 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

I can confirm that this is a regression from etch.

$ 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/bin/ld: Scrt1.o: No such file: No such file or directory
| collect2: ld returned 1 exit status

It also occurs in current sid with binutils_2.17cvs20070426-3. -1 failed
to build, -2 lived 3-1/2 days, so we probably don't have a copy of it
anywhere.

You can't install etch bintuils on sid or sid binutils on etch due to
libc6 so I couldn't do any further regression testing.

Anything else I can try? 

Thanks,

Stephen (who is really starting to love aranym.)

-- 
Stephen R. Marenka     If life's not fun, you're not doing it right!
<stephen@marenka.net>

Attachment: signature.asc
Description: Digital signature


Reply to: