summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-22 21:42:50 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-05-22 21:42:50 +0000
commit1795d8edbdd84d8bec3abdc6faf804da15d67d48 (patch)
treec3b55b9f93de1fd6627128c13aec8c7b920f209b /ld/testsuite/ld-x86-64
parent96b8fa8e446545368aa8a6608bf4418d76b2d321 (diff)
downloadbinutils-redhat-1795d8edbdd84d8bec3abdc6faf804da15d67d48.tar.gz
Adjust ld-x86-64/ilp32-11.s for NACL
* ld-x86-64/ilp32-11.s Add ".space 0x1000" before func. (func): Make it global and hidden. * ld-x86-64/ilp32-11.d: Updated.
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r--ld/testsuite/ld-x86-64/ilp32-11.d2
-rw-r--r--ld/testsuite/ld-x86-64/ilp32-11.s3
2 files changed, 4 insertions, 1 deletions
diff --git a/ld/testsuite/ld-x86-64/ilp32-11.d b/ld/testsuite/ld-x86-64/ilp32-11.d
index 56bb8b3bcf..f6fc86c3f8 100644
--- a/ld/testsuite/ld-x86-64/ilp32-11.d
+++ b/ld/testsuite/ld-x86-64/ilp32-11.d
@@ -1,3 +1,3 @@
#as: --x32
#ld: -shared -melf32_x86_64
-#error: .*addend 0x7fffffff in relocation R_X86_64_64 against symbol `.text' at 0x0 in section `.data.rel.local' is out of range
+#error: .*addend 0x7fffffff in relocation R_X86_64_64 against symbol `func' at 0x0 in section `.data.rel.local' is out of range
diff --git a/ld/testsuite/ld-x86-64/ilp32-11.s b/ld/testsuite/ld-x86-64/ilp32-11.s
index 2c853850f8..438f0949a9 100644
--- a/ld/testsuite/ld-x86-64/ilp32-11.s
+++ b/ld/testsuite/ld-x86-64/ilp32-11.s
@@ -4,6 +4,9 @@
.quad func + 0x7fffffff
.text
+ .space 0x1000
.type func, @function
+ .global func
+ .hidden func
func:
ret