[LLVMdev] [ARM] [PIC] optimizing the loading of hidden global variable

Tim Northover t.p.northover at gmail.com
Fri Mar 14 06:57:13 PDT 2014


> It works for static GVs but for global hidden GVs, this will cause name
> resoltion fail during linking .o into .so

Ah, I see. I've just looked up the semantics and GlobalMerge probably
won't work, I agree.

> Any thoughs?

I'm now struggling to see how GCC justifies it. What if a different
translation-unit declared those variables in a different order? I also
can't get the same behaviour here, do you have a more complete
command-line?

Cheers.

Tim.



More information about the llvm-dev mailing list