This is an archive of the discontinued LLVM Phabricator instance.

lld: make pe targets use the coff linker
AbandonedPublic

Authored by martell on Aug 25 2015, 10:43 AM.

Details

Reviewers
ruiu

Diff Detail

Event Timeline

martell updated this revision to Diff 33089.Aug 25 2015, 10:43 AM
martell retitled this revision from to lld: make pe targets use the coff linker.
martell updated this object.
martell added a reviewer: ruiu.
martell added a project: lld.
martell added subscribers: lld, llvm-commits.
compnerd added inline comments.
lib/Driver/UniversalDriver.cpp
97

I think we should flip this around, and make this more getTargetFromEmulation. It should return a tuple (pair) for architecture, format for the emulation mode. So, i386pe -> (COFF,I386), thumb2pe -> (COFF,ARMNT). This could then be used in the future to extend it for the other GNU emulations.

212

Space after if. Although, this would change with the above to switch off of the format that we converted the emulation to.

martell updated this revision to Diff 37973.Oct 21 2015, 1:55 AM

Address compnerd's review

ruiu edited edge metadata.Oct 21 2015, 5:28 AM

This simply dispatch to the link.exe-compatible driver, so all options except -m have to be in link.exe style. What's the point of this change?

This simply dispatch to the link.exe-compatible driver, so all options except -m have to be in link.exe style. What's the point of this change?

Yes it currently forces gnu COFF targets to use the link driver
http://reviews.llvm.org/D13933
then adds the some needed alias's to support GNU style where needed.
Or at least at the minute enough to compile a simple hello world

martell abandoned this revision.Nov 28 2017, 11:10 PM

we have come a long way since then @ruiu :) , abandoning a really old revision