diff options
author | Tim Northover <tnorthover@apple.com> | 2013-06-17 03:03:06 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-06-17 03:03:06 +0000 |
commit | 7338de37a802970857079b5a532c5dd50d0a6d5d (patch) | |
tree | 91184bc6eb913ee3e61f8841152a2c95fc5b2a15 /test | |
parent | 0187e7a9ba5c50b4559e0c2e0afceb6d5cd32190 (diff) | |
download | llvm-7338de37a802970857079b5a532c5dd50d0a6d5d.tar.gz llvm-7338de37a802970857079b5a532c5dd50d0a6d5d.tar.bz2 llvm-7338de37a802970857079b5a532c5dd50d0a6d5d.tar.xz |
AArch64: print relocation addends if present on AArch64
llvm-objdump should provide some way of printing out the addends present in the
.rela sections for debugging purposes if nothing else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AArch64/elf-reloc-addend.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/AArch64/elf-reloc-addend.s b/test/MC/AArch64/elf-reloc-addend.s new file mode 100644 index 0000000000..0e7e2cafb7 --- /dev/null +++ b/test/MC/AArch64/elf-reloc-addend.s @@ -0,0 +1,8 @@ +// RUN: llvm-mc -triple=aarch64-linux-gnu -filetype=obj -o - %s | llvm-objdump -triple=aarch64-linux-gnu -r - | FileCheck %s + + add x0, x4, #:lo12:sym +// CHECK: 0 R_AARCH64_ADD_ABS_LO12_NC sym + add x3, x5, #:lo12:sym+1 +// CHECK: 4 R_AARCH64_ADD_ABS_LO12_NC sym+1 + add x3, x5, #:lo12:sym-1 +// CHECK: 8 R_AARCH64_ADD_ABS_LO12_NC sym-1 |