2010-09-16 17:05:55 +00:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
|
|
|
|
|
|
|
|
// Test that these names are accepted.
|
|
|
|
|
|
|
|
.section .note.GNU-stack,"",@progbits
|
|
|
|
.section .note.GNU-,"",@progbits
|
|
|
|
.section -.note.GNU,"",@progbits
|
|
|
|
|
2010-10-19 17:39:10 +00:00
|
|
|
// CHECK: ('sh_name', 0x00000012) # '.note.GNU-stack'
|
|
|
|
// CHECK: ('sh_name', 0x00000022) # '.note.GNU-'
|
|
|
|
// CHECK: ('sh_name', 0x0000002d) # '-.note.GNU'
|
2010-10-27 18:45:20 +00:00
|
|
|
|
|
|
|
// Test that the dafults for init and fini are used
|
|
|
|
|
|
|
|
.section .init
|
|
|
|
.section .fini
|
|
|
|
|
|
|
|
// CHECK: (('sh_name', 0x00000038) # '.init'
|
|
|
|
// CHECK-NEXT: ('sh_type', 0x00000001)
|
|
|
|
// CHECK-NEXT: ('sh_flags', 0x00000006)
|
|
|
|
// CHECK-NEXT: ('sh_addr', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_offset', 0x00000040)
|
|
|
|
// CHECK-NEXT: ('sh_size', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_link', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_info', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_addralign', 0x00000001)
|
|
|
|
// CHECK-NEXT: ('sh_entsize', 0x00000000)
|
|
|
|
// CHECK-NEXT: ),
|
|
|
|
// CHECK-NEXT: # Section 0x00000008
|
|
|
|
// CHECK-NEXT: (('sh_name', 0x0000003e) # '.fini'
|
|
|
|
// CHECK-NEXT: ('sh_type', 0x00000001)
|
|
|
|
// CHECK-NEXT: ('sh_flags', 0x00000006)
|
|
|
|
// CHECK-NEXT: ('sh_addr', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_offset', 0x00000040)
|
|
|
|
// CHECK-NEXT: ('sh_size', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_link', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_info', 0x00000000)
|
|
|
|
// CHECK-NEXT: ('sh_addralign', 0x00000001)
|
|
|
|
// CHECK-NEXT: ('sh_entsize', 0x00000000)
|