diff options
author | James Clarke <jrtc27@jrtc27.com> | 2016-06-28 12:00:56 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-06-28 12:00:56 +0100 |
commit | 7160c10d6530b79ea45d435933b07765f610f54d (patch) | |
tree | 16edffe83c4a976ac178ae15d6f7a0306c89c603 /ld | |
parent | 6c9a7fb62fcddbcafba8ab765e6fe190482c3d0a (diff) | |
download | gdb-7160c10d6530b79ea45d435933b07765f610f54d.zip gdb-7160c10d6530b79ea45d435933b07765f610f54d.tar.gz gdb-7160c10d6530b79ea45d435933b07765f610f54d.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/symbolic-func.r | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 79c495d..9b6ff77 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2016-06-28 James Clarke <jrtc27@jrtc27.com> + + * testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from + .text. + 2016-06-28 Maciej W. Rozycki <macro@imgtec.com> * testsuite/ld-mips-elf/attr-gnu-4-10.d: Match any UNIX OS/ABI. 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 |