[LLD][ELF] - ICF: Check we do not fold sections which relocations reffering to absolu...
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 31 Jul 2018 13:55:25 +0000 (13:55 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 31 Jul 2018 13:55:25 +0000 (13:55 +0000)
commit7a49ce4ac488343c7d54b48283dd3151f7f957da
tree70b9719c1460a4cc312163e7e4e91d56a9234027
parentec9bd36f2d13d2afad0150d16e68039ec8511222
[LLD][ELF] - ICF: Check we do not fold sections which relocations reffering to absolute symbols with a different values.

This adds a test for the following uncovered piece of code:
https://github.com/llvm-mirror/lld/blob/master/ELF/ICF.cpp#L263

Without that lines we would crash.

llvm-svn: 338379
lld/test/ELF/Inputs/icf-absolute2.s [new file with mode: 0644]
lld/test/ELF/icf-absolute2.s [new file with mode: 0644]