Sign extend a value before passing it to the Target.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 1 Sep 2016 13:52:52 +0000 (13:52 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 1 Sep 2016 13:52:52 +0000 (13:52 +0000)
commit3a9eef1670a50265379d4602d17644e491d39597
treed6f4c382d5cd209e459bfff9942e1a19ffcbb93f
parent0f298a2655d01f531bd4bc9d082aeba7615091f9
Sign extend a value before passing it to the Target.

This is what InputSectionBase<ELFT>::relocate does and we need to be
consistent. The other option would be to be more explicit about which
relocations are signed and which are not, and sign extend only when
appropriated. That would require extending the target interface.

llvm-svn: 280366
lld/ELF/Thunks.cpp
lld/test/ELF/arm-thumb-interwork-thunk-range.s [new file with mode: 0644]