[ELF] - linkerscript AT keyword (in output section description) implemented.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 17 Aug 2016 07:44:19 +0000 (07:44 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 17 Aug 2016 07:44:19 +0000 (07:44 +0000)
commit8ceadb38a88fa5a71c8c325f420ba3dfd073ce3c
tree40aa7a7c40cfc4d2a31f770472bea85df6218fc9
parentc96f421ad46734d721de8acee4d3ddb3fbd9b3fe
[ELF] - linkerscript AT keyword (in output section description) implemented.

The linker will normally set the LMA equal to the VMA.
You can change that by using the AT keyword.
The expression lma that follows the AT keyword specifies
the load address of the section.

Patch implements this keyword.

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

llvm-svn: 278911
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/linkerscript-at.s [new file with mode: 0644]