forked from OSchip/llvm-project
23 lines
544 B
Plaintext
23 lines
544 B
Plaintext
RUN: lld -flavor gnu -target x86_64 --defsym=main=fn --noinhibit-exec \
|
|
RUN: %p/Inputs/fn.o -o %t
|
|
RUN: llvm-readobj -symbols %t | FileCheck %s
|
|
|
|
CHECK: Symbol {
|
|
CHECK: Name: main (1)
|
|
CHECK: Value: 0x4001E0
|
|
CHECK: Size: 0
|
|
CHECK: Binding: Global (0x1)
|
|
CHECK: Type: Function (0x2)
|
|
CHECK: Other: 0
|
|
CHECK: Section: .text (0x5)
|
|
CHECK: }
|
|
CHECK: Symbol {
|
|
CHECK: Name: fn (6)
|
|
CHECK: Value: 0x4001E0
|
|
CHECK: Size: 6
|
|
CHECK: Binding: Global (0x1)
|
|
CHECK: Type: Function (0x2)
|
|
CHECK: Other: 0
|
|
CHECK: Section: .text (0x5)
|
|
CHECK: }
|