forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ELF: Add support for the asm .version directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156712 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s | ||
|
||
.version "1234" | ||
.version "123" | ||
|
||
// CHECK: (('sh_name', 0x0000000c) # '.note' | ||
// CHECK-NEXT: ('sh_type', 0x00000007) | ||
// CHECK-NEXT: ('sh_flags', 0x00000000) | ||
// CHECK-NEXT: ('sh_addr', 0x00000000) | ||
// CHECK-NEXT: ('sh_offset', 0x00000034) | ||
// CHECK-NEXT: ('sh_size', 0x00000024) | ||
// CHECK-NEXT: ('sh_link', 0x00000000) | ||
// CHECK-NEXT: ('sh_info', 0x00000000) | ||
// CHECK-NEXT: ('sh_addralign', 0x00000004) | ||
// CHECK-NEXT: ('sh_entsize', 0x00000000) | ||
// CHECK-NEXT: ('_section_data', '05000000 00000000 01000000 31323334 00000000 04000000 00000000 01000000 31323300') | ||
// CHECK-NEXT: ), |