From 5a5c549fe9a3fef595297bd21d36bed8409dc37d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 30 Dec 2015 11:57:38 +0000 Subject: Vendor import of lld trunk r256633: https://llvm.org/svn/llvm-project/lld/trunk@256633 --- test/old-elf/gotpcrel.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/old-elf/gotpcrel.test (limited to 'test/old-elf/gotpcrel.test') diff --git a/test/old-elf/gotpcrel.test b/test/old-elf/gotpcrel.test new file mode 100644 index 000000000000..b8695f1aedfb --- /dev/null +++ b/test/old-elf/gotpcrel.test @@ -0,0 +1,21 @@ +# This test checks that GOTPCREL entries are being handled properly +RUN: lld -flavor old-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 -- cgit v1.3