aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-07-16 21:26:39 +0000
committerRichard Henderson <rth@redhat.com>1999-07-16 21:26:39 +0000
commit437d5cf011852e5fa3825a380ca8f0c3e4e2e4aa (patch)
tree607592db10582be98c854edb521b6f4b91a26581
parentd6bcbdc1fe20d65ec144f223b963f5e88e86fdb6 (diff)
downloadgdb-437d5cf011852e5fa3825a380ca8f0c3e4e2e4aa.zip
gdb-437d5cf011852e5fa3825a380ca8f0c3e4e2e4aa.tar.gz
gdb-437d5cf011852e5fa3825a380ca8f0c3e4e2e4aa.tar.bz2
Jakub Jelinek <jj@ultra.linux.cz>
* sparc.h (ELF64_R_TYPE_DATA): Only use ELF64_R_TYPE bits, not ELF64_R_SYM bits.
-rw-r--r--include/elf/ChangeLog5
-rw-r--r--include/elf/sparc.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index 08249bd..b13ab78 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-14 Jakub Jelinek <jj@ultra.linux.cz>
+
+ * sparc.h (ELF64_R_TYPE_DATA): Only use ELF64_R_TYPE bits, not
+ ELF64_R_SYM bits.
+
1999-06-21 Philip Blundell <pb@nexus.co.uk>
* arm.h (EF_SOFT_FLOAT, F_SOFT_FLOAT): Define.
diff --git a/include/elf/sparc.h b/include/elf/sparc.h
index ad3e1e5..9b33319 100644
--- a/include/elf/sparc.h
+++ b/include/elf/sparc.h
@@ -139,7 +139,7 @@ END_RELOC_NUMBERS
/* Relocation macros. */
#define ELF64_R_TYPE_DATA(info) \
- (((bfd_signed_vma)((info) >> 8) ^ 0x800000) - 0x800000)
+ (((bfd_signed_vma)(ELF64_R_TYPE(info) >> 8) ^ 0x800000) - 0x800000)
#define ELF64_R_TYPE_ID(info) \
((info) & 0xff)
#define ELF64_R_TYPE_INFO(data, type) \