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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 22 14:00:02 PDT 2017


mstorsjo added a comment.

FWIW, I noticed this detail when linking to a GNU import library using link.exe; if linking with `-verbose`, link.exe prints a list of object files at the end:

  testlib.lib(d000004.o)
  testlib.lib(d000005.o)
  testlib.lib(d000006.o)
  testlib.lib(d000000.o)
  testlib.lib(d000011.o)

These clearly are grouped by import library, which confirms one detail of it. But this also is more or less the same order as lld would end up linking them right now, and that doesn't work for lld, since `d000000.o` would have a reference to the end of the IAT instead of the start.


https://reviews.llvm.org/D38513





More information about the llvm-commits mailing list