[ELF] - Linkerscript: implemented ADDR command.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 30 Aug 2016 09:54:01 +0000 (09:54 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 30 Aug 2016 09:54:01 +0000 (09:54 +0000)
commit96659df09c7b6920651dcbda8f11caad95d9bde8
treeecf68ea920bce64aaa72d036e51fccf8fb9681d8
parenta2496cbed4e3ff7896bd570abed64f441cfc9fdf
[ELF] - Linkerscript: implemented ADDR command.

ADDR(section)
Return the absolute address (the VMA) of the named section.

Used in the wild, eg.: https://searchcode.com/file/53617342/arch/x86/kernel/vmlinux.lds.S

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

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