forked from OSchip/llvm-project
22 lines
642 B
Plaintext
22 lines
642 B
Plaintext
# This test checks that GOTPCREL entries are being handled properly
|
|
RUN: lld -flavor gnu -target x86_64-linux -static -e main --output-filetype=yaml \
|
|
RUN: --noinhibit-exec %p/Inputs/gotpcrel.x86-64 \
|
|
RUN: | FileCheck %s -check-prefix=YAML
|
|
|
|
YAML: name: main
|
|
YAML: references:
|
|
YAML: kind: R_X86_64_GOTPCREL
|
|
YAML: offset: 3
|
|
YAML: target: [[NULLGOT:[a-zA-Z0-9_]+]]
|
|
YAML: kind: R_X86_64_GOTPCREL
|
|
YAML: offset: 10
|
|
YAML: target: [[MAINGOT:[a-zA-Z0-9_]+]]
|
|
|
|
YAML: name: [[NULLGOT]]
|
|
YAML: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
|
|
YAML-NOT: references:
|
|
|
|
YAML: name: [[MAINGOT]]
|
|
YAML: kind: R_X86_64_64
|
|
YAML: target: main
|