aboutsummaryrefslogtreecommitdiffstats
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-rw-r--r--trunk/ChangeLog5
-rw-r--r--trunk/src/dwarf2.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/trunk/ChangeLog b/trunk/ChangeLog
index 258c8e5..a5c0c5e 100644
--- a/trunk/ChangeLog
+++ b/trunk/ChangeLog
@@ -1,3 +1,8 @@
+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-07-09 Jakub Jelinek <jakub@redhat.com>
* src/conflict.c (prelink_build_conflicts): Don't call
diff --git a/trunk/src/dwarf2.c b/trunk/src/dwarf2.c
index 8869dc3..e831a18 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