[ELF] - More direct implementation of edata/etext
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Mar 2016 19:18:07 +0000 (19:18 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Mar 2016 19:18:07 +0000 (19:18 +0000)
commit2abc587c1ef126850cd230e44deca6e93fab0b9b
tree158774a433d6594969e1619c52d00de3a8b953e5
parentebd9193b57750faabaeed0f28acc23fb38d1d06b
[ELF] - More direct implementation of edata/etext

As was suggested in mails, this patch implements edata/etext
symbols in a more direct way.
It iterates through PT_LOADs.

Result seems to be the same and equal to gold output.

Differential revision: http://reviews.llvm.org/D17755

llvm-svn: 262369
lld/ELF/Writer.cpp