Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2016 16:03:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 207980] /usr/lib/libc.so not compatible with lld due to path stripping
Message-ID:  <bug-207980-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207980

            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: emaste@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 expe=
cted
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207980-8>