https://sourceware.org/bugzilla/show_bug.cgi?id=26815
--- Comment #8 from Thiago Macieira <thiago at kde dot org> --- Oops, these tests aren't using -mno-direct-extern-access at all. When using them: $ gcc -O2 -shared -fPIC -mno-direct-extern-access -fvisibility=protected -Wl,--dynamic-list,empty.dynlist -o lib.so lib.c $ gcc -mno-direct-extern-access -O2 -pie -fPIE main.c ./lib.so $ ./a.out addr() = 0x7f932637a028, &variable = 0x7f932637a028 So this is actually working right. -- You are receiving this mail because: You are on the CC list for the bug.