From 7160c10d6530b79ea45d435933b07765f610f54d Mon Sep 17 00:00:00 2001 From: James Clarke <jrtc27@jrtc27.com> Date: Tue, 28 Jun 2016 12:00:56 +0100 Subject: Don't convert R_SPARC_32 to R_SPARC_RELATIVE if class is ELFCLASS64. bfd * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Don't convert R_SPARC_32 to R_SPARC_RELATIVE if class is ELFCLASS64. gold * sparc.cc (Target_sparc::Scan::local): Don't convert R_SPARC_32 to R_SPARC_RELATIVE if class is ELFCLASS64. (Target_sparc::Scan::global): Likewise. ld * testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from .text. --- ld/testsuite/ld-elf/symbolic-func.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/testsuite') diff --git a/ld/testsuite/ld-elf/symbolic-func.r b/ld/testsuite/ld-elf/symbolic-func.r index 174e76f..3d31f8f 100644 --- a/ld/testsuite/ld-elf/symbolic-func.r +++ b/ld/testsuite/ld-elf/symbolic-func.r @@ -14,5 +14,5 @@ Relocation section.* *Offset.* -0*[1-9a-f][0-9a-f]* +[^ ]+ +[^ ]+ +([0-9a-f]+( +\.text( \+ 0)?)?)? +0*[1-9a-f][0-9a-f]* +[^ ]+ +[^ ]+ +([0-9a-f]+( +\.text( \+ [0-9a-f]+)?)?)? #pass -- cgit v1.1