aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakub <jakub@94c539fb-cf18-0410-b60f-edeeb537fa16>2009-08-07 06:13:25 +0000
committerjakub <jakub@94c539fb-cf18-0410-b60f-edeeb537fa16>2009-08-07 06:13:25 +0000
commit116455bfb1e5ed0ec62b62f8a69ff637092f00d1 (patch)
tree1a32b631ec5f5907d5c8825de0f285e6c297d16e
parent3273a6a46ac7b2839087c3d926af4e0f9daaf1f0 (diff)
downloadprelink-cross-116455bfb1e5ed0ec62b62f8a69ff637092f00d1.tar.gz
prelink-cross-116455bfb1e5ed0ec62b62f8a69ff637092f00d1.tar.bz2
prelink-cross-116455bfb1e5ed0ec62b62f8a69ff637092f00d1.zip
* src/dwarf2.c (dwarf2_write_le64, dwarf2_write_be64): Shift by 56prelink_r174
not 58 for MSB. git-svn-id: http://sourceware.org/svn/prelink@174 94c539fb-cf18-0410-b60f-edeeb537fa16
-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