Files
clang-p2996/lld/test/elf/gotpcrel.test
Michael J. Spencer 28c7a21b29 [ELF] Refactor x86-64 relocation pass.
This renames the GOTPLTPass to RelocationPass and refactors it to better
represent the different types of relocations.

llvm-svn: 193379
2013-10-24 22:46:48 +00:00

23 lines
649 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: [[NULLGOT:[a-zA-Z0-9_]+]]
YAML: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
YAML-NOT: references:
YAML: name: [[MAINGOT:[a-zA-Z0-9_]+]]
YAML: kind: R_X86_64_64
YAML: target: main
YAML: name: main
YAML: references:
YAML: kind: R_X86_64_GOTPCREL
YAML: offset: 3
YAML: target: [[NULLGOT]]
YAML: kind: R_X86_64_GOTPCREL
YAML: offset: 10
YAML: target: [[MAINGOT]]