This is a simple test to use an ld created import library with the lld COFF linker
As discussed here
http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-July/088556.html
Differential D11724
COFF: Add test for ld/section created import library martell on Aug 3 2015, 8:47 AM. Authored by
Details
This is a simple test to use an ld created import library with the lld COFF linker As discussed here http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-July/088556.html
Diff Detail Event TimelineComment Actions Hi rui, I noticed that x86 support seems to be complete so as promised I would create a test case for when using ld libraries. Kind Regards Comment Actions Do you know anything about how GNU ld handles these import libraries? My Comment Actions From my reading on how gnuld handles PE/COFF .idata BLOCK(__section_alignment__) : { /* This cannot currently be handled with grouped sections. See pe.em:sort_sections. */ SORT(*)(.idata$2) SORT(*)(.idata$3) /* These zeroes mark the end of the import list. */ LONG (0); LONG (0); LONG (0); LONG (0); LONG (0); SORT(*)(.idata$4) SORT(*)(.idata$5) SORT(*)(.idata$6) SORT(*)(.idata$7) } Under ld/emultempl/pep.em in binutils it describes how it converts the I assume the conversion will have to go the other way for us You might have a much cleaner solution however. :) If this isn't enough insight into what you need I can do more digging. |