2013-02-12 07:03:35 +08:00
|
|
|
RUN: lld -core -target x86_64-linux %p/Inputs/use-shared.x86-64 \
|
|
|
|
RUN: %p/Inputs/shared.so-x86-64 -emit-yaml -output=- -noinhibit-exec \
|
2013-02-15 04:32:00 +08:00
|
|
|
RUN: -output-type=dynamic \
|
2013-02-12 07:03:35 +08:00
|
|
|
RUN: | FileCheck %s
|
|
|
|
|
2013-02-15 04:32:00 +08:00
|
|
|
CHECK: name: main
|
|
|
|
CHECK: kind: R_X86_64_PC32
|
|
|
|
CHECK: target: [[PLTNAME:[-a-zA-Z0-9_]+]]
|
|
|
|
|
|
|
|
CHECK: type: got
|
|
|
|
CHECK: R_X86_64_RELATIVE
|
|
|
|
|
|
|
|
CHECK: name: [[PLTNAME]]
|
|
|
|
CHECK: type: stub
|
|
|
|
|
2013-02-12 07:03:35 +08:00
|
|
|
CHECK: shared-library-atoms:
|
|
|
|
CHECK: name: foo
|
|
|
|
CHECK: load-name: shared.so-x86-64
|