2018-06-27 06:20:04 +08:00
|
|
|
// REQUIRES: x86
|
2015-09-09 02:08:57 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: ld.lld %t -o %t2
|
2019-05-01 13:49:01 +08:00
|
|
|
// RUN: llvm-readobj --symbols %t2 | FileCheck %s
|
2015-09-09 02:08:57 +08:00
|
|
|
|
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: bar_sym
|
|
|
|
// CHECK-NEXT: Value:
|
|
|
|
// CHECK-NEXT: Size:
|
|
|
|
// CHECK-NEXT: Binding:
|
|
|
|
// CHECK-NEXT: Type:
|
|
|
|
// CHECK-NEXT: Other:
|
|
|
|
// CHECK-NEXT: Section: bar
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: Symbol {
|
|
|
|
// CHECK-NEXT: Name: foo_sym
|
|
|
|
// CHECK-NEXT: Value:
|
|
|
|
// CHECK-NEXT: Size:
|
|
|
|
// CHECK-NEXT: Binding:
|
|
|
|
// CHECK-NEXT: Type:
|
|
|
|
// CHECK-NEXT: Other:
|
|
|
|
// CHECK-NEXT: Section: foo
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
.section foo
|
|
|
|
.global foo_sym
|
|
|
|
foo_sym:
|
|
|
|
|
|
|
|
.section bar, "a"
|
|
|
|
.global bar_sym
|
|
|
|
bar_sym:
|
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|