[lld] r262954 - Use defined hidden symbols for out of range tests.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 8 11:51:59 PST 2016
Author: rafael
Date: Tue Mar 8 13:51:58 2016
New Revision: 262954
URL: http://llvm.org/viewvc/llvm-project?rev=262954&view=rev
Log:
Use defined hidden symbols for out of range tests.
When the symbol can be preempted the error is not entirely accurate.
This just makes upcoming patches more readable.
Added:
lld/trunk/test/ELF/Inputs/ppc64-addr16-error.s
lld/trunk/test/ELF/Inputs/x86-64-reloc-error.s
Modified:
lld/trunk/test/ELF/ppc64-addr16-error.s
lld/trunk/test/ELF/x86-64-reloc-error.s
Added: lld/trunk/test/ELF/Inputs/ppc64-addr16-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/Inputs/ppc64-addr16-error.s?rev=262954&view=auto
==============================================================================
--- lld/trunk/test/ELF/Inputs/ppc64-addr16-error.s (added)
+++ lld/trunk/test/ELF/Inputs/ppc64-addr16-error.s Tue Mar 8 13:51:58 2016
@@ -0,0 +1,3 @@
+.global sym
+.hidden sym
+sym = 0
Added: lld/trunk/test/ELF/Inputs/x86-64-reloc-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/Inputs/x86-64-reloc-error.s?rev=262954&view=auto
==============================================================================
--- lld/trunk/test/ELF/Inputs/x86-64-reloc-error.s (added)
+++ lld/trunk/test/ELF/Inputs/x86-64-reloc-error.s Tue Mar 8 13:51:58 2016
@@ -0,0 +1,7 @@
+.global big
+.hidden big
+big = 0x1000000000
+
+.global foo
+.hidden foo
+foo = 0
Modified: lld/trunk/test/ELF/ppc64-addr16-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-addr16-error.s?rev=262954&r1=262953&r2=262954&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-addr16-error.s (original)
+++ lld/trunk/test/ELF/ppc64-addr16-error.s Tue Mar 8 13:51:58 2016
@@ -1,5 +1,6 @@
// RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t
-// RUN: not ld.lld -shared %t -o %t2 2>&1 | FileCheck %s
+// RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-addr16-error.s -o %t2
+// RUN: not ld.lld -shared %t %t2 -o %t3 2>&1 | FileCheck %s
// REQUIRES: ppc
.short sym+65539
Modified: lld/trunk/test/ELF/x86-64-reloc-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-error.s?rev=262954&r1=262953&r2=262954&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-error.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-error.s Tue Mar 8 13:51:58 2016
@@ -1,10 +1,10 @@
-// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/abs.s -o %tabs
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: not ld.lld -shared %tabs %t -o %t2 2>&1 | FileCheck %s
// REQUIRES: x86
movl $big, %edx
- movq _start - 0x1000000000000, %rdx
+ movq $foo - 0x1000000000000, %rdx
# CHECK: R_X86_64_32 out of range
# CHECK: R_X86_64_32S out of range
More information about the llvm-commits
mailing list