diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-12 15:47:08 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-12 15:47:08 +0000 |
commit | d4a352609f0ebe8bdea2f70d4e0efae9b5db778e (patch) | |
tree | 65939c8ea9dda9be6124eb003cb9092db2f06ca9 /test/MC/ELF/section.s | |
parent | c9d8a75e44a56828cb4adcb9f54ff5c825571ce4 (diff) | |
download | external_llvm-d4a352609f0ebe8bdea2f70d4e0efae9b5db778e.zip external_llvm-d4a352609f0ebe8bdea2f70d4e0efae9b5db778e.tar.gz external_llvm-d4a352609f0ebe8bdea2f70d4e0efae9b5db778e.tar.bz2 |
gnu as support both % and @ before types, do the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/section.s')
-rw-r--r-- | test/MC/ELF/section.s | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s index 9e9129d..f3700ca 100644 --- a/test/MC/ELF/section.s +++ b/test/MC/ELF/section.s @@ -3,12 +3,14 @@ // Test that these names are accepted. .section .note.GNU-stack,"",@progbits +.section .note.GNU-stack2,"",%progbits .section .note.GNU-,"",@progbits .section -.note.GNU,"",@progbits // CHECK: ('sh_name', 0x00000012) # '.note.GNU-stack' -// CHECK: ('sh_name', 0x00000022) # '.note.GNU-' -// CHECK: ('sh_name', 0x0000002d) # '-.note.GNU' +// CHECK: ('sh_name', 0x00000022) # '.note.GNU-stack2' +// CHECK: ('sh_name', 0x00000033) # '.note.GNU-' +// CHECK: ('sh_name', 0x0000003e) # '-.note.GNU' // Test that the dafults are used @@ -16,7 +18,7 @@ .section .fini .section .rodata -// CHECK: (('sh_name', 0x00000038) # '.init' +// CHECK: (('sh_name', 0x00000049) # '.init' // CHECK-NEXT: ('sh_type', 0x00000001) // CHECK-NEXT: ('sh_flags', 0x00000006) // CHECK-NEXT: ('sh_addr', 0x00000000) @@ -27,8 +29,8 @@ // CHECK-NEXT: ('sh_addralign', 0x00000001) // CHECK-NEXT: ('sh_entsize', 0x00000000) // CHECK-NEXT: ), -// CHECK-NEXT: # Section 0x0000000a -// CHECK-NEXT: (('sh_name', 0x0000003e) # '.fini' +// CHECK-NEXT: # Section 0x0000000b +// CHECK-NEXT: (('sh_name', 0x0000004f) # '.fini' // CHECK-NEXT: ('sh_type', 0x00000001) // CHECK-NEXT: ('sh_flags', 0x00000006) // CHECK-NEXT: ('sh_addr', 0x00000000) @@ -39,8 +41,8 @@ // CHECK-NEXT: ('sh_addralign', 0x00000001) // CHECK-NEXT: ('sh_entsize', 0x00000000) // CHECK-NEXT: ), -// CHECK-NEXT: # Section 0x0000000b -// CHECK-NEXT: (('sh_name', 0x00000044) # '.rodata' +// CHECK-NEXT: # Section 0x0000000c +// CHECK-NEXT: (('sh_name', 0x00000055) # '.rodata' // CHECK-NEXT: ('sh_type', 0x00000001) // CHECK-NEXT: ('sh_flags', 0x00000002) // CHECK-NEXT: ('sh_addr', 0x00000000) |