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

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 23 08:57:28 PDT 2017


smeenai added a comment.

The grouping by import library is definitely important for both Microsoft-style and binutils-style import libraries. I'm pretty sure the second issue (how to get the correct ILT and IAT start addresses inside `d000000.o`) is solved by them special casing imports handling, as I mentioned before.

In https://reviews.llvm.org/D38513#896182, @smeenai wrote:

> In general, link.exe is definitely doing some special-casing for `.idata$*` chunks though:
>
> - They end up in the `.rdata` section in the final image (whereas LLD produces a separate `.idata` output section).
> - The import address table chunks (`.idata$5`) end up at the start of the `.rdata` section, so regular grouping order isn't respected there.





https://reviews.llvm.org/D38513





More information about the llvm-commits mailing list