aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trunk/ChangeLog.cross5
-rw-r--r--trunk/src/dwarf2.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/trunk/ChangeLog.cross b/trunk/ChangeLog.cross
index 946a154..557ce43 100644
--- a/trunk/ChangeLog.cross
+++ b/trunk/ChangeLog.cross
@@ -2,6 +2,11 @@
* Integrate prelinker/cross-prelinking patches
+ 2009-08-06 Joseph Myers <joseph@codesourcery.com>
+
+ * src/dwarf2.c (dwarf2_write_le64, dwarf2_write_be64): Shift by 56
+ not 58 for MSB.
+
2009-03-19 Joseph Myers <joseph@codesourcery.com>
Issue #4626
diff --git a/trunk/src/dwarf2.c b/trunk/src/dwarf2.c
index 4c27836..a0a89dd 100644
--- a/trunk/src/dwarf2.c
+++ b/trunk/src/dwarf2.c
@@ -115,7 +115,7 @@ dwarf2_write_le64 (unsigned char *p, GElf_Addr val)
p[4] = val >> 32;
p[5] = val >> 40;
p[6] = val >> 48;
- p[7] = val >> 58;
+ p[7] = val >> 56;
}
static void
@@ -139,7 +139,7 @@ dwarf2_write_be64 (unsigned char *p, GElf_Addr val)
p[3] = val >> 32;
p[2] = val >> 40;
p[1] = val >> 48;
- p[0] = val >> 58;
+ p[0] = val >> 56;
}
static struct