summaryrefslogtreecommitdiffstats
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-14 13:56:45 +0000
committerNick Clifton <nickc@redhat.com>2001-09-14 13:56:45 +0000
commit841989d692bb545eb35d585f7885da6413974e49 (patch)
treed9fa9f09a809598cdff0a01260170211edb6db2e /bfd
parent056a1d49d70097de36b5293dd52690927e0762bd (diff)
downloadppe42-binutils-841989d692bb545eb35d585f7885da6413974e49.tar.gz
ppe42-binutils-841989d692bb545eb35d585f7885da6413974e49.zip
Fix bug emitting R_SPARC_UA32 relocs into shared objects
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-sparc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9b69654b0c..a634484698 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-14 Michael Rauch <mrauch@netbsd.org>
+
+ * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
+ just like R_SPARC_32.
+
2001-09-14 Kevin Lo <kevlo@openbsd.org>
* configure.bfd: Add arm-openbsd target.
diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c
index 9a8d4e2779..1fe328e8ed 100644
--- a/bfd/elf32-sparc.c
+++ b/bfd/elf32-sparc.c
@@ -1491,7 +1491,7 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section,
}
else
{
- if (r_type == R_SPARC_32)
+ if (r_type == R_SPARC_32 || r_type == R_SPARC_UA32)
{
outrel.r_info = ELF32_R_INFO (0, R_SPARC_RELATIVE);
outrel.r_addend = relocation + rel->r_addend;
OpenPOWER on IntegriCloud