[PATCH] D38513: [LLD] [COFF] Add support for GNU binutils import libraries

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 18 04:35:48 PDT 2018


mstorsjo updated this revision to Diff 165934.
mstorsjo retitled this revision from "[LLD] [RFC] [COFF] Add support for GNU binutils import libraries" to "[LLD] [COFF] Add support for GNU binutils import libraries".
mstorsjo edited the summary of this revision.
mstorsjo added reviewers: rnk, pcc.
mstorsjo added a comment.

Finally updated this patch to a pretty solid, not all too messy implementation (or much less messy than before at least).

With this in place, lld can finally use a normal MinGW sysroot built with GCC and GNU binutils, making lld a proper drop-in replacement for ld.bfd in these environments. (There still are cases with more advanced C++ compiled by GCC which doesn't work properly with lld though.)


https://reviews.llvm.org/D38513

Files:
  COFF/DLL.cpp
  COFF/DLL.h
  COFF/Writer.cpp
  test/COFF/Inputs/gnu-implib-func.s
  test/COFF/Inputs/gnu-implib-head.s
  test/COFF/Inputs/gnu-implib-tail.s
  test/COFF/imports-gnu-only.s
  test/COFF/imports-gnu.test
  test/COFF/no-idata.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38513.165934.patch
Type: text/x-patch
Size: 14692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180918/4fce5d20/attachment.bin>


More information about the llvm-commits mailing list