This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: __init_array_start and similar symbols
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 4 Aug 2005 10:41:24 -0700
- Subject: Re: __init_array_start and similar symbols
- References: <20050804062037.GK2874@bubble.grove.modra.org>
On Thu, Aug 04, 2005 at 03:50:37PM +0930, Alan Modra wrote:
> Now that we have stripping of empty output sections, even when they
> contain symbols, a lot of special purpose code can be removed. Simply
> defining symbols in the linker script should work. This patch does
> that and also fixes some cases where PowerPC SDA relocs were
> mishandled.
>
There is one problem. The linker provided symbols used to hidden, now
they are global. It is a very bad when some bound symbols have to
be provided for DSOs. I should we should make all linker provided
symbol hidden for ELF.
H.J.