diff options
author | Tim Northover <tnorthover@apple.com> | 2013-07-10 20:58:17 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-07-10 20:58:17 +0000 |
commit | f5b1c5043de4d485ff17d8b2aad709c63a5a9ff3 (patch) | |
tree | 024aea140d04106e1a9d725fdb1a6d2bb2ac15dd /test/MC/ELF | |
parent | 75d13065fda4b470f272311520f5dfe6c11460ce (diff) | |
download | external_llvm-f5b1c5043de4d485ff17d8b2aad709c63a5a9ff3.zip external_llvm-f5b1c5043de4d485ff17d8b2aad709c63a5a9ff3.tar.gz external_llvm-f5b1c5043de4d485ff17d8b2aad709c63a5a9ff3.tar.bz2 |
Put ELF COMDAT relocations into the relevant COMDAT group.
Patch from Игорь Пашев (I do hope we support utf-8 commit messages; I
also hope he'll forgive me for transliterating it as Igor Pashev in
case things go horribly wrong).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF')
-rw-r--r-- | test/MC/ELF/comdat-reloc.s | 29 | ||||
-rw-r--r-- | test/MC/ELF/comdat.s | 2 |
2 files changed, 30 insertions, 1 deletions
diff --git a/test/MC/ELF/comdat-reloc.s b/test/MC/ELF/comdat-reloc.s new file mode 100644 index 0000000..d893a7b --- /dev/null +++ b/test/MC/ELF/comdat-reloc.s @@ -0,0 +1,29 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck %s + + .text + .globl hello + .type hello,@function +hello: + call world + ret + + .section .text.world,"axG",@progbits,world,comdat + .type world,@function +world: + call doctor + ret + +// CHECK: Name: .group +// CHECK-NOT: SectionData +// CHECK: SectionData +// CHECK-NEXT: 0000: 01000000 06000000 07000000 + +// CHECK: Index: 6 +// CHECK-NEXT: Name: .text.world +// CHECK-NOT: Section { +// CHECK: SHF_GROUP + +// CHECK: Index: 7 +// CHECK-NEXT: Name: .rela.text.world +// CHECK-NOT: Section { +// CHECK: SHF_GROUP diff --git a/test/MC/ELF/comdat.s b/test/MC/ELF/comdat.s index f9469df..6dbe583 100644 --- a/test/MC/ELF/comdat.s +++ b/test/MC/ELF/comdat.s @@ -39,7 +39,7 @@ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: 0x54 -// CHECK-NEXT: Size: 8 +// CHECK-NEXT: Size: 12 // CHECK-NEXT: Link: 13 // CHECK-NEXT: Info: 13 // CHECK-NEXT: AddressAlignment: 4 |