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