[llvm-bugs] [Bug 44842] New: lld fails to link GNU indirect functions

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 7 14:42:53 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44842

            Bug ID: 44842
           Summary: lld fails to link GNU indirect functions
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: jeanmichael.celerier at gmail.com
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

Hello,

I have an issue linking fftw3 (I'm on up-to-date ArchLinux) with lld.

Repro : 

    $ echo 'int main() { }' > foo.cpp
    $ clang++ foo.cpp -lfftw3 -fuse-ld=lld
    ld.lld: error:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib64/libfftw3.so:
undefined reference to __log_finite

(same with g++ ; it works fine with BFD and gold).

The symbol exists in libm :

    $ nm -D /usr/lib/libm.so.6 | grep __log_finite
    000000000002dfa0 i __log_finite

And the fftw lib of course links against libm.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200207/b046471d/attachment.html>


More information about the llvm-bugs mailing list