forked from OSchip/llvm-project
44 lines
1.2 KiB
ArmAsm
44 lines
1.2 KiB
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
# RUN: ld.lld %t -o %tout
|
|
# RUN: llvm-readobj -sections %tout | FileCheck %s
|
|
# REQUIRES: x86
|
|
|
|
.global _start
|
|
.text
|
|
_start:
|
|
|
|
.section .text.a,"ax"
|
|
.section .text.,"ax"
|
|
.section .rodata.a,"a"
|
|
.section .rodata,"a"
|
|
.section .data.a,"aw"
|
|
.section .data,"aw"
|
|
.section .bss.a,"",@nobits
|
|
.section .bss,"",@nobits
|
|
.section .foo.a,"aw"
|
|
.section .foo,"aw"
|
|
.section .data.rel.ro,"aw",%progbits
|
|
.section .data.rel.ro.a,"aw",%progbits
|
|
.section .data.rel.ro.local,"aw",%progbits
|
|
.section .data.rel.ro.local.a,"aw",%progbits
|
|
.section .tbss.foo,"aGwT",@nobits,foo,comdat
|
|
.section .gcc_except_table.foo,"aG",@progbits,foo,comdat
|
|
.section .tdata.foo,"aGwT",@progbits,foo,comdat
|
|
|
|
// CHECK-NOT: Name: .rodata.a
|
|
// CHECK: Name: .rodata
|
|
// CHECK: Name: .gcc_except_table ({{.*}})
|
|
// CHECK-NOT: Name: .text.a
|
|
// CHECK: Name: .text
|
|
// CHECK: Name: .tdata ({{.*}})
|
|
// CHECK: Name: .tbss ({{.*}})
|
|
// CHECK-NOT: Name: .data.rel.ro.a
|
|
// CHECK-NOT: Name: .data.rel.ro.local.a
|
|
// CHECK: Name: .data.rel.ro
|
|
// CHECK-NOT: Name: .data.a
|
|
// CHECK: Name: .data
|
|
// CHECK: Name: .foo.a
|
|
// CHECK: Name: .foo
|
|
// CHECK-NOT: Name: .bss.a
|
|
// CHECK: Name: .bss
|