[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Undefined reference to init/fini array symbols
From: |
Nick Clifton |
Subject: |
Re: Undefined reference to init/fini array symbols |
Date: |
Tue, 27 Jan 2004 18:23:55 +0000 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) |
Hi Kristian,
> Apologies for the crosspost to both Glibc & Binutils lists. I am
> currently porting Glibc 2.3.2 to Syllable (See sig) and have the
> codebase upto the stage where it attempts to link libc_pic.a This
> currently fails with the following errors:
> ..
> /home/user/glibc-configure/libc_pic.os(.text+0x596): In function
> `__libc_csu_init':
> /home/user/glibc-2.3.2/csu/elf-init.c:54: undefined reference to
> `__preinit_array_end'
> Of course I would expect these symbols to be provided by the linker
> itself (GNU ld 2.14), and indeed the linker script includes PROVIDES
> for all these symbols.
> PROVIDE (__preinit_array_end = .);
The most likely case is that the linker is being performed with a
linker script specified on the command line, rather than using the
default, builtin script. What *exactly* is the command line that is
being used to invoke the linker ?
It would also really help if you were able to produce a small,
self-contained test case that demonstrates the problem.
Cheers
Nick