forked from OSchip/llvm-project
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
RUN: lld -flavor gnu -target hexagon %p/Inputs/use-shared.hexagon -shared -o %t1
|
|
RUN: llvm-readobj -dyn-symbols %t1 > %t2
|
|
RUN: FileCheck -check-prefix=DYNSYMS %s < %t2
|
|
RUN: llvm-readobj -program-headers %t1 | FileCheck %s
|
|
|
|
DYNSYMS: DynamicSymbols [
|
|
DYNSYMS: Symbol {
|
|
DYNSYMS: Name: fn2
|
|
DYNSYMS-NEXT: Value:
|
|
DYNSYMS-NEXT: Size:
|
|
DYNSYMS-NEXT: Binding: Global
|
|
DYNSYMS-NEXT: Type: Function
|
|
DYNSYMS-NEXT: Other:
|
|
DYNSYMS-NEXT: Section: .text
|
|
DYNSYMS: }
|
|
DYNSYMS: Symbol {
|
|
DYNSYMS: Name: fn1
|
|
DYNSYMS-NEXT: Value:
|
|
DYNSYMS-NEXT: Size:
|
|
DYNSYMS-NEXT: Binding: Global
|
|
DYNSYMS-NEXT: Type: Function
|
|
DYNSYMS-NEXT: Other:
|
|
DYNSYMS-NEXT: Section: .text
|
|
DYNSYMS: }
|
|
DYNSYMS: Symbol {
|
|
DYNSYMS: Name: fn3
|
|
DYNSYMS-NEXT: Value:
|
|
DYNSYMS-NEXT: Size:
|
|
DYNSYMS-NEXT: Binding: Global
|
|
DYNSYMS-NEXT: Type: Function
|
|
DYNSYMS-NEXT: Other:
|
|
DYNSYMS-NEXT: Section: .text
|
|
DYNSYMS-NEXT: }
|
|
DYNSYMS-NEXT: ]
|
|
|
|
CHECK-NOT: PT_PHDR
|