[LLVMdev] Hidden-visibility aliases to default-visibility globals

Peter Collingbourne peter at pcc.me.uk
Mon Apr 1 15:49:14 PDT 2013


On Thu, Mar 21, 2013 at 02:12:27PM +0900, Joerg Sonnenberger wrote:
> On Wed, Mar 20, 2013 at 02:22:47PM -0700, Peter Collingbourne wrote:
> > I am trying to compile a dynamic loader using LLVM.  Part of the IR
> > for this loader looks like this:
> > 
> > @_rtld_local = hidden alias %struct.rtld_global* @_rtld_global
> > @_rtld_global = unnamed_addr global %struct.rtld_global { ... }
> 
> Have you tried using protected visibility?

Oops, missed this message.  I think there was some reason why I thought
protected visibility would not work, but I just tried it and it turns
out that it does.  I'll see what upstream thinks and if they're ok
with it I'll drop the patch.

Thanks,
-- 
Peter



More information about the llvm-dev mailing list