[cfe-dev] [RFC][libcxx] Fixing "-stdlib=libc++ -lc++abi" on Linux -- Exporting libc++abi through libc++.so.

James Y Knight via cfe-dev cfe-dev at lists.llvm.org
Sun Oct 11 18:34:19 PDT 2015


On Sun, Oct 11, 2015 at 7:58 PM, Eric Fiselier via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> 1. What Linux linkers, if any, don't support linker scripts? Does lld?
>

There cannot be a usable Linux linker which does not at least have minimal
support for linker scripts, since libc.so is a linker script. But features
beyond those used there might be less universally supported.

$ cat /usr/lib/x86_64-linux-gnu/libc.so

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib/x86_64-linux-gnu/libc.so.6
/usr/lib/x86_64-linux-gnu/libc_nonshared.a  AS_NEEDED (
/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ) )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151011/893b8baf/attachment.html>


More information about the cfe-dev mailing list