Don't convert R_SPARC_32 to R_SPARC_RELATIVE if class is ELFCLASS64.
authorJames Clarke <jrtc27@jrtc27.com>
Tue, 28 Jun 2016 11:00:56 +0000 (12:00 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 28 Jun 2016 11:00:56 +0000 (12:00 +0100)
commit7160c10d6530b79ea45d435933b07765f610f54d
tree16edffe83c4a976ac178ae15d6f7a0306c89c603
parent6c9a7fb62fcddbcafba8ab765e6fe190482c3d0a
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.
bfd/ChangeLog
bfd/elfxx-sparc.c
gold/ChangeLog
gold/sparc.cc
ld/ChangeLog
ld/testsuite/ld-elf/symbolic-func.r