This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: linking/ELF question
- From: Venkatesha Murthy <gvmurthy at gmail dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>, Robert Schweikert <robert dot schweikert at abaqus dot com>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: Tue, 31 Aug 2004 08:43:22 -0700
- Subject: Re: linking/ELF question
- References: <1093890078.14471.319.camel@cheetah.hks.com> <20040830230821.GA26692@bubble.modra.org>
- Reply-to: Venkatesha Murthy <gvmurthy at gmail dot com>
Can't a linker script override a compile time visibility attribute on
a per-symbol basis?
V.
On Tue, 31 Aug 2004 08:38:21 +0930, Alan Modra <amodra@bigpond.net.au> wrote:
> On Mon, Aug 30, 2004 at 02:21:18PM -0400, Robert Schweikert wrote:
> > Can I somehow change the attribute or force ld to ignore the "HIDDEN"
> > attribute such that I will get the symbol in the glbal section in the
> > shared library I am trying to create?
>
> ld doesn't have any such facility. You can binary edit the object file
> easily enough: binutils/readelf.c plus include/elf/external.h should be
> enough to tell you which byte you need to change.
>
> --
> Alan Modra
> IBM OzLabs - Linux Technology Centre
>