[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2022-05-22 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 --- Comment #7 from Thiago Macieira --- Disabling the use of the feature in Qt 6.4 because it's still broken. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object

2022-05-22 Thread thiago at kde dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=26815 --- Comment #8 from Thiago Macieira --- 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