[ELF] Update addends in non-allocatable sections for REL targets when creating a...
authorIgor Kudrin <ikudrin@accesssoftek.com>
Wed, 11 Jul 2018 12:52:04 +0000 (12:52 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Wed, 11 Jul 2018 12:52:04 +0000 (12:52 +0000)
commit4f48b3ef90e0bf030489a56afeab188cb3091f29
tree4691ab694eed885072a22f4ed2edec77188a31b8
parent00869f32149e40eb5c139676c8554277382ad200
[ELF] Update addends in non-allocatable sections for REL targets when creating a relocatable output.

This fixes PR37735.

Differential Revision: https://reviews.llvm.org/D48929

llvm-svn: 336799
lld/ELF/InputSection.cpp
lld/test/ELF/pr37735.s [new file with mode: 0644]