2017-07-28 06:08:11 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# Test that we don't fail with foo being undefined.
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld --export-dynamic %t.o -o %t
|
2017-08-01 02:52:47 +08:00
|
|
|
# RUN: llvm-readobj -dyn-symbols %t | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: DynamicSymbols [
|
|
|
|
# CHECK-NEXT: Symbol {
|
2019-01-08 18:50:59 +08:00
|
|
|
# CHECK-NEXT: Name:
|
2017-08-01 02:52:47 +08:00
|
|
|
# CHECK-NEXT: Value: 0x0
|
|
|
|
# CHECK-NEXT: Size: 0
|
|
|
|
# CHECK-NEXT: Binding: Local (0x0)
|
|
|
|
# CHECK-NEXT: Type: None (0x0)
|
|
|
|
# CHECK-NEXT: Other: 0
|
|
|
|
# CHECK-NEXT: Section: Undefined (0x0)
|
|
|
|
# CHECK-NEXT: }
|
2017-09-16 02:05:02 +08:00
|
|
|
# CHECK-NEXT: Symbol {
|
2019-01-08 18:50:59 +08:00
|
|
|
# CHECK-NEXT: Name: foo
|
2017-09-16 02:05:02 +08:00
|
|
|
# CHECK-NEXT: Value: 0x0
|
|
|
|
# CHECK-NEXT: Size: 0
|
|
|
|
# CHECK-NEXT: Binding: Weak (0x2)
|
|
|
|
# CHECK-NEXT: Type: None (0x0)
|
|
|
|
# CHECK-NEXT: Other: 0
|
|
|
|
# CHECK-NEXT: Section: Undefined (0x0)
|
|
|
|
# CHECK-NEXT: }
|
2017-08-01 02:52:47 +08:00
|
|
|
# CHECK-NEXT: ]
|
2017-07-28 06:08:11 +08:00
|
|
|
|
|
|
|
.weak foo
|
|
|
|
.quad foo
|