llvm-project/lld/lib/ReaderWriter/PECOFF
Rui Ueyama 44a7c7f1aa [PECOFF] Set ordinal to alias atoms
Atoms are ordered in the output file by ordinal. File has file ordinal,
and atom has atom ordinal which is unique within the file.
No two atoms should have the same combination of ordinals.

However that contract was not satisifed for alias atoms. Alias atom
is defined by /alternatename:sym1=sym2. In this case sym1 is defined
as an alias for sym2. sym1 always got ordinal 0.

As a result LLD failed with an assertion failure.

This patch assigns ordinal to alias atoms.

llvm-svn: 218158
2014-09-19 21:58:54 +00:00
..
Atoms.h [PECOFF] Explicitly pass machine type 2014-08-22 22:03:16 +00:00
CMakeLists.txt [PECOFF] Emit Load Configuration and SEH Table for x86. 2014-02-26 08:27:59 +00:00
EdataPass.cpp Move function. No functionality change. 2014-09-04 02:52:26 +00:00
EdataPass.h [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
GroupedSectionsPass.h Add "override" to member functions where appropriate. 2014-03-05 19:50:03 +00:00
IdataPass.cpp [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
IdataPass.h [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
LinkerGeneratedSymbolFile.h [PECOFF] Explicitly pass machine type 2014-08-22 22:03:16 +00:00
LoadConfigPass.cpp [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
LoadConfigPass.h Move Simple.h and Alias.h to include/Core. 2014-06-11 21:47:51 +00:00
Makefile Initial set of Makefiles 2014-06-04 09:54:07 +00:00
PECOFFLinkingContext.cpp Driver: accept /machine:arm for Windows linker 2014-09-19 06:09:30 +00:00
Pass.cpp [PECOFF] Explicitly pass machine type 2014-08-22 22:03:16 +00:00
Pass.h [PECOFF] Fix PE+ relocations 2014-08-22 01:15:43 +00:00
ReaderCOFF.cpp [PECOFF] Set ordinal to alias atoms 2014-09-19 21:58:54 +00:00
ReaderImportHeader.cpp [PECOFF] Explicitly pass machine type 2014-08-22 22:03:16 +00:00
WriterImportLibrary.cpp [PECOFF] Run lib.exe with /machine:x64. 2014-09-05 01:35:23 +00:00
WriterImportLibrary.h [PECOFF] Create the import library file. 2013-12-20 11:35:40 +00:00
WriterPECOFF.cpp PECOFF: loosen another assumption of x86 only 2014-09-19 06:09:33 +00:00