https://sourceware.org/bugzilla/show_bug.cgi?id=32443
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Stephen Kell from comment #5) > > When compiler sees a hidden undefined symbol, it assumes that > > it is defined somewhere else and it isn't an ABS symbol. As > > the result, you won't get 0x2a. > > I see. In what way does the "not an ABS symbol" assumption affect the > compiler output? Compiler generates leaq value(%rip), %rax for hidden symbol reference without GOT and you won't get 0x2a at run-time. > > > Caveat: currently struggling to find the relevant ELF spec for the meaning > > > of an UND symbol of hidden visibility. If it's analogous to protected, I > > > > Linker disallows undefined hidden symbol during the final link. > > Sorry, I did not make myself clear. I did not mean "undefined in the link". > I meant "UND in the .o file". That is the effect of the change you asked me > about, as I understand it: to give the UND symbol hidden visibility. > > I am struggling to understand the line of argument here. Are you saying you > don't think this is a bug? It depends on how you look at it. -- You are receiving this mail because: You are on the CC list for the bug.