[Bug target/91766] -fvisibility=hidden during -fpic still uses GOT indirection on arm64

blu.dark at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Sep 14 15:36:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91766

--- Comment #5 from martin krastev <blu.dark at gmail dot com> ---
For reference, here what -fvisibility=hidden -fpic -fcommon produces on amd64
(https://godbolt.org/z/0aIyhl):

foo:
        movl    $0, room(%rip)
        leaq    room(%rip), %rax
        ret

Notice the absence of GOT indirection.


More information about the Gcc-bugs mailing list