This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linking/ELF question


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]