diff options
author | Peter Smith <peter.smith@linaro.org> | 2017-03-31 13:08:49 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2017-03-31 13:08:49 +0000 |
commit | 3add9f9fc75ddf65f5704a1035f5c464d31a1470 (patch) | |
tree | 15cc0a33d0333953df59ac6104f0b4ef055bb3fb /lld/test | |
parent | 77ce4f6e37ad0aa61894d4a840f17e89208d0c74 (diff) | |
download | bcm5719-llvm-3add9f9fc75ddf65f5704a1035f5c464d31a1470.tar.gz bcm5719-llvm-3add9f9fc75ddf65f5704a1035f5c464d31a1470.zip |
[ELF] Add a NOP instruction to make LLVM generate a mapping symbol
This is a test change applicable for ARM targets.
Previously LLVM would generate a mapping symbol when code contains only
data. This was changed as part of
https://reviews.llvm.org/D30724
and to be more close to the ARM ELF ABI.
The test case is changed to check for behavior with minimal changes.
Patch by Shankar Easwaran
Differential Revision: https://reviews.llvm.org/D31500
llvm-svn: 299212
Diffstat (limited to 'lld/test')
-rw-r--r-- | lld/test/ELF/arm-target1.s | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/test/ELF/arm-target1.s b/lld/test/ELF/arm-target1.s index b62d6d663a8..a4adfbe63ea 100644 --- a/lld/test/ELF/arm-target1.s +++ b/lld/test/ELF/arm-target1.s @@ -22,7 +22,9 @@ .text .word patatino(target1) patatino: - + .word 32 +// Force generation of $d.0 as section is not all data + nop // RELATIVE: Disassembly of section .text: // RELATIVE: $d.0: // RELATIVE: 1000: 04 00 00 00 .word 0x00000004 |