Support ABSOLUE keyword in symbol assignments
authorEugene Leviant <evgeny.leviant@gmail.com>
Wed, 7 Sep 2016 07:08:43 +0000 (07:08 +0000)
committerEugene Leviant <evgeny.leviant@gmail.com>
Wed, 7 Sep 2016 07:08:43 +0000 (07:08 +0000)
commitdb741e7203b9246816bc911e3e5fa7b19ffc0c14
tree2b9cf7ba49c660b68a099eb23eb54c03695f3f62
parentf333de37528567ce384554bc333386e4a474af0b
Support ABSOLUE keyword in symbol assignments

This patch allows making section defined symbols absolute:
.foo : {
  begin_foo = ABSOLUTE(.);
  *(.foo)
}

Differential revision: https://reviews.llvm.org/D24135

llvm-svn: 280788
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/test/ELF/linkerscript/symbols-synthetic.s