[ARM] Add mapping symbols to PLT entries
authorDenis Protivensky <dprotivensky@accesssoftek.com>
Tue, 7 Apr 2015 07:04:42 +0000 (07:04 +0000)
committerDenis Protivensky <dprotivensky@accesssoftek.com>
Tue, 7 Apr 2015 07:04:42 +0000 (07:04 +0000)
commit6c50e88c0deacca04f345bb08266c101b85da7b6
treeafa35d6f8382b9ef7d24915fbced2bfe91b1fcd6
parent9dedc775d7b436e5f8f961413c3fd867ea8be53e
[ARM] Add mapping symbols to PLT entries

Make PLT entry atoms represent mapping symbols in the Release mode,
while in the Debug mode they are still function-like symbols
with regular names.
It's legal that mapping symbols denote unnamed parts of code,
and PLT entries are not required to have function-like names.

Differential Revision: http://reviews.llvm.org/D8819

llvm-svn: 234301
lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp
lld/test/elf/ARM/plt-mapping.test [new file with mode: 0644]