https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207980

            Bug ID: 207980
           Summary: /usr/lib/libc.so not compatible with lld due to path
                    stripping
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: ema...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to