Don't try to compute a value that is known to fail.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 20 Sep 2017 16:42:56 +0000 (16:42 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 20 Sep 2017 16:42:56 +0000 (16:42 +0000)
commite4bad83edb9abd8bd5b33c74c06dcccacc3c9405
treece86b08bcb927e4ed818be61fd57f3e8ab187bd2
parent3dd2356b3aa227aa241ab4c7e4da11d5df1045f6
Don't try to compute a value that is known to fail.

We try to evaluate expressions early when possible, but it is not
possible to evaluate them early if they are based on a section.

Before we would get this wrong on ABSOLUTE expressions.

llvm-svn: 313764
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/early-assign-symbol.s