Consider ForceAbsolute again in moveAbsRight.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 20 Sep 2017 19:24:57 +0000 (19:24 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 20 Sep 2017 19:24:57 +0000 (19:24 +0000)
commit23be5e8d70d39129f16096c54db6ff7d12949b3f
tree3502259a34ccdda9b7535846fdab3ad075077b23
parent4355c7c562806cd74341e2bfb448786c40852122
Consider ForceAbsolute again in moveAbsRight.

This patch goes back to considering ForceAbsolute in moveAbsRight, but
only if the second argument is not already absolute.

With this we can handle "foo + ABSOLUTE(foo)" and "ABSOLUTE(foo) + foo".

llvm-svn: 313800
lld/ELF/ScriptParser.cpp
lld/test/ELF/linkerscript/absolute2.s [new file with mode: 0644]