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

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Comment on attachment 54104
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54104
A patch

I'm confirming the checking to work for the case reported;
'build-gcc/x86_64-pc-linux-gnu/libsanitizer/config.log':

    configure:15883: checking linker protected symbol support
    configure:15895: [...]/build-gcc/./gcc/xgcc [...] -fchecking=1 -shared
-nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5
    /usr/bin/ld: /tmp/ccEJLiUq.o: relocation R_X86_64_PC32 against protected
symbol `foo' can not be used when making a shared object
    /usr/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
    configure:15898: $? = 1
    configure:15906: result: no

..., however, the libsanitizer build eventually still fails:

    [...]
    make[4]: Leaving directory
`[...]/build-gcc/x86_64-pc-linux-gnu/libsanitizer/tsan'
    Making all in hwasan
    /bin/bash: line 20: cd: hwasan: No such file or directory
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory
`[...]/build-gcc/x86_64-pc-linux-gnu/libsanitizer'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory
`[...]/build-gcc/x86_64-pc-linux-gnu/libsanitizer'
    make[1]: *** [all-target-libsanitizer] Error 2
    make[1]: Leaving directory `[...]/build-gcc'
    make: *** [all] Error 2

Reply via email to