COFF: ARM: Fix relocations to thumb code.
authorRui Ueyama <ruiu@google.com>
Wed, 29 Jul 2015 19:25:00 +0000 (19:25 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 29 Jul 2015 19:25:00 +0000 (19:25 +0000)
commit8bc43a142ba4c852820ec1e285f6ead6229baa7c
tree9add0eed393ef2c966e1c08c684a737423a0c88f
parent56965f4b32f6ac6234fdc59cd932d471451c0eee
COFF: ARM: Fix relocations to thumb code.

Windows ARM is the thumb ARM environment, and pointers to thumb code
needs to have its LSB set. When we apply relocations, we need to
adjust the LSB if it points to an executable section.

llvm-svn: 243560
lld/COFF/Chunks.cpp
lld/COFF/Symbols.h
lld/COFF/Writer.cpp
lld/test/COFF/armnt-mov32t-exec.test