[Bug 207980] /usr/lib/libc.so not compatible with lld due to path stripping

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 14 16:03:25 UTC 2016


            Bug ID: 207980
           Summary: /usr/lib/libc.so not compatible with lld due to path
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: emaste at freebsd.org

/usr/lib/libc.so is a linker script that used to contain:
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a /usr/lib/libssp_nonshared.a )

In r266227 /usr/lib/libc.so was changed to avoid including full paths:
GROUP ( libc.so.7 libc_nonshared.a libssp_nonshared.a )

Using lld (LLVM's linker) on FreeBSD fails due to this, as it does not have
built-in search paths and relies on the compiler driver to pass in the expected
paths via -L arguments. Clang currently passes only -L /usr/lib, as this is the
only path that "should" be required at link time.

We may be able to restore the paths and use the --sysroot argument to ld.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list