summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-09-21 22:01:06 +0000
committerMartin Storsjo <martin@martin.st>2018-09-21 22:01:06 +0000
commit5f6d527f091cb20c176817da9b052aa0840de128 (patch)
tree546e7cd77f662ae23c5e91537f6cff8f96fb93b8 /llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
parent2e102480accc743d0f7fa84169ff580df4c8de93 (diff)
downloadbcm5719-llvm-5f6d527f091cb20c176817da9b052aa0840de128.tar.gz
bcm5719-llvm-5f6d527f091cb20c176817da9b052aa0840de128.zip
[COFF] Support linking to import libraries from GNU binutils
GNU binutils import libraries aren't the same kind of short import libraries as link.exe and LLD produce, but are a plain static library containing .idata section chunks. MSVC link.exe can successfully link to them. In order for imports from GNU import libraries to mix properly with the normal import chunks, the chunks from the existing mechanism needs to be added into named sections like .idata$2. These GNU import libraries consist of one header object, a number of object files, one for each imported function/variable, and one trailer. Within the import libraries, the object files are ordered alphabetically in this order. The chunks stemming from these libraries have to be grouped by what library they originate from and sorted, to make sure the section chunks for headers and trailers for the lists are ordered as intended. This is done on all sections named .idata$*, before adding the synthesized chunks to them. Differential Revision: https://reviews.llvm.org/D38513 llvm-svn: 342777
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud