llvm-project/lld/test
Rui Ueyama 327db80dd5 [ELF] Support --defsym=<symbol>=<symbol>.
Currently LLD supports --defsym only in the form of
--defsym=<symbol>=<integer>, where the integer is interpreted as the
absolute address of the symbol. This patch extends it to allow other
symbol name to be given as an RHS value. If a RHS value is a symbol
name, the LHS symbol will be defined as an alias for the RHS symbol.

Internally, a LHS symbol is represented as a zero-size defined atom
who has an LayoutAfter reference to an undefined atom, whose name is
the RHS value. Everything else is already implemented -- Resolver
will resolve the undefined symbol, and the layout pass will layout
the two atoms at the same location. Looks like it's working fine.

Note that GNU LD supports --defsym=<symbol>=<symbol>+<addend>. That
feature is out of scope of this patch.

Differential Revision: http://reviews.llvm.org/D3332

llvm-svn: 206417
2014-04-16 20:58:57 +00:00
..
Driver Remove ordinals from Input Graph elements. 2014-04-03 02:21:44 +00:00
LinkerScript [LinkerScript] parse OUTPUT_FORMAT : treat quotedStrings as identifier 2014-02-25 17:02:54 +00:00
Unit [lit] Python 3. 2014-03-26 00:53:48 +00:00
core [core] support .gnu.linkonce sections 2014-04-01 03:49:55 +00:00
darwin Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
elf [ELF] Support --defsym=<symbol>=<symbol>. 2014-04-16 20:58:57 +00:00
pecoff [PECOFF] Fix common symbol alignment. 2014-04-09 01:01:51 +00:00
CMakeLists.txt [test] use llvm-config to drive testing in assert mode/debug mode 2014-02-25 02:29:17 +00:00
lit.cfg [lit] Environment variables get stripped in lit. Manually specify locale. 2014-03-26 01:19:07 +00:00
lit.site.cfg.in [lit] Python 3. 2014-03-26 00:53:48 +00:00