[PATCH] Let Clang invoke CloudABI's linker

Ed Schouten ed at nuxi.nl
Wed Mar 11 05:32:03 PDT 2015


Hi echristo,

Now that CloudABI's target information and header search logic for Clang has been submitted, the only thing that remains to be done is adding support for CloudABI's linker.

CloudABI uses Binutils ld, although there is some work to use lld instead. This means that this code is largely based on what we use on FreeBSD. There are some exceptions, however:

- Only static linking is performed. CloudABI does not support any dynamically linked executables.
- CloudABI uses compiler-rt, libc++ and libc++abi unconditionally. Link in these libraries instead of using libgcc_s, libstdc++, etc.
- We must ensure that the .eh_frame_hdr is present to make C++ exceptions work properly.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8250

Files:
  lib/Driver/Driver.cpp
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  lib/Driver/Tools.cpp
  lib/Driver/Tools.h
  test/Driver/cloudabi.c
  test/Driver/cloudabi.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8250.21694.patch
Type: text/x-patch
Size: 8137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150311/7169f5a3/attachment.bin>


More information about the cfe-commits mailing list