// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s // Test that both % and @ are accepted. .global foo .type foo,%function foo: .global bar .type bar,@object bar: // Test that gnu_unique_object is accepted. .type zed,@gnu_unique_object obj: .global obj .type obj,@object .type obj,@notype func: .global func .type func,@function .type func,@object ifunc: .global ifunc .type ifunc,@gnu_indirect_function .type ifunc,@function tls: .global tls .type tls,@tls_object .type tls,@gnu_indirect_function // CHECK: (('st_name', {{.*}}) # 'bar' // CHECK-NEXT: ('st_bind', 0x1) // CHECK-NEXT: ('st_type', 0x1) // CHECK-NEXT: ('st_other', 0x00) // CHECK-NEXT: ('st_shndx', 0x0001) // CHECK-NEXT: ('st_value', 0x0000000000000000) // CHECK-NEXT: ('st_size', 0x0000000000000000) // CHECK: (('st_name', {{.*}}) # 'foo' // CHECK-NEXT: ('st_bind', 0x1) // CHECK-NEXT: ('st_type', 0x2) // CHECK-NEXT: ('st_other', 0x00) // CHECK-NEXT: ('st_shndx', 0x0001) // CHECK-NEXT: ('st_value', 0x0000000000000000) // CHECK-NEXT: ('st_size', 0x0000000000000000) // CHECK: (('st_name', {{.*}}) # 'func' // CHECK-NEXT: ('st_bind', 0x1) // CHECK-NEXT: ('st_type', 0x2) // CHECK-NEXT: ('st_other', 0x00) // CHECK-NEXT: ('st_shndx', 0x0001) // CHECK-NEXT: ('st_value', 0x0000000000000000) // CHECK-NEXT: ('st_size', 0x0000000000000000) // CHECK: (('st_name', {{.*}}) # 'ifunc' // CHECK-NEXT: ('st_bind', 0x1) // CHECK-NEXT: ('st_type', 0xa) // CHECK-NEXT: ('st_other', 0x00) // CHECK-NEXT: ('st_shndx', 0x0001) // CHECK-NEXT: ('st_value', 0x0000000000000000) // CHECK-NEXT: ('st_size', 0x0000000000000000) // CHECK: (('st_name', {{.*}}) # 'obj' // CHECK-NEXT: ('st_bind', 0x1) // CHECK-NEXT: ('st_type', 0x1) // CHECK-NEXT: ('st_other', 0x00) // CHECK-NEXT: ('st_shndx', 0x0001) // CHECK-NEXT: ('st_value', 0x0000000000000000) // CHECK-NEXT: ('st_size', 0x0000000000000000) // CHECK: (('st_name', {{.*}}) # 'tls' // CHECK-NEXT: ('st_bind', 0x1) // CHECK-NEXT: ('st_type', 0x6) // CHECK-NEXT: ('st_other', 0x00) // CHECK-NEXT: ('st_shndx', 0x0001) // CHECK-NEXT: ('st_value', 0x0000000000000000) // CHECK-NEXT: ('st_size', 0x0000000000000000)