From 0adaa71ed66bae4bfbf5d43292833153d16bf88d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 22 May 2012 21:42:50 +0000 Subject: [PATCH] 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. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-x86-64/ilp32-11.d | 2 +- ld/testsuite/ld-x86-64/ilp32-11.s | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 75b2089de29..895e19bbbbc 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-05-22 H.J. Lu + + * ld-x86-64/ilp32-11.s Add ".space 0x1000" before func. + (func): Make it global and hidden. + * ld-x86-64/ilp32-11.d: Updated. + 2012-05-22 Roland McGrath * ld-elf/eh4.d: Revert last change. diff --git a/ld/testsuite/ld-x86-64/ilp32-11.d b/ld/testsuite/ld-x86-64/ilp32-11.d index 56bb8b3bcfe..f6fc86c3f82 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 2c853850f86..438f0949a9d 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 -- 2.30.2