llvm-project/lld/test
Rui Ueyama 92b5979cb5 PECOFF: Fix symbol aliases
Weak aliases defined using /alternatename command line option were getting
wrong RVAs in the final output because of wrong atom ordinal. Alias atoms
were assigned large ordinals than any other regular atoms because they were
instantiated after other atoms and just got new (larger) ordinals.

Atoms are sorted by its file and atom ordinals in the order pass. Alias
atoms were located after all other atoms in the same file.

An alias atom's ordinal needs to be smaller than its alias target but larger
than the atom appeared before the target -- so that the alias is located
between the two. Since an alias has no size, the alias target will be located
at the same location as the alias.

In this patch, I made a gap between two regular atoms so that we can put
aliases after instantiating them (without re-numbering existing atoms).

llvm-svn: 229762
2015-02-18 23:11:48 +00:00
..
Driver Re-commit r225674: Convert other drivers to use WrapperNode. 2015-01-15 04:34:31 +00:00
LinkerScript [ELF] Support for parsing OUTPUT command in LinkerScript 2015-02-02 06:21:23 +00:00
Unit [lit] Python 3. 2014-03-26 00:53:48 +00:00
core MachO: Move LayoutPass to MachO directory. 2015-02-05 20:05:33 +00:00
darwin [mach-o] refactor KindHandler into ArchHandler and simplify passes. 2014-07-16 19:49:02 +00:00
elf Fix AArhc64 ELF test failure on Windows 2015-02-17 11:16:54 +00:00
mach-o Fix REQUIRES lines added in r226951 and add the x86 feature if the X86 target was compiled in 2015-01-24 03:55:22 +00:00
pecoff PECOFF: Fix symbol aliases 2015-02-18 23:11:48 +00:00
CMakeLists.txt Remove CMake standalone build configuration 2015-01-12 21:41:10 +00:00
Makefile Initial set of Makefiles 2014-06-04 09:54:07 +00:00
lit.cfg Fix REQUIRES lines added in r226951 and add the x86 feature if the X86 target was compiled in 2015-01-24 03:55:22 +00:00
lit.site.cfg.in [lit] Python 3. 2014-03-26 00:53:48 +00:00