https://sourceware.org/bugzilla/show_bug.cgi?id=28875
--- Comment #5 from Thiago Macieira <thiago at kde dot org> --- (In reply to H.J. Lu from comment #4) > Created attachment 13971 [details] > The v2 patch > > I got > > /usr/gcc-12.0.1-x32/bin/gcc -B./ -o x main.o libfoo.so -Wl,-R,. > ./ld: main.o: non-canonical reference to canonical protected function > `internal_f' in libfoo.so > ./ld: failed to set dynamic section sizes: bad value > collect2: error: ld returned 1 exit status Confirmed: $ gcc main.cpp libb.so /home/tjmaciei/dev/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/ccTtYFXS.o: non-canonical reference to canonical protected function `_Z10internal_fv' in libb.so collect2: error: ld returned 1 exit status Uploading my Qt patch to make use of this. -- You are receiving this mail because: You are on the CC list for the bug.