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.