summaryrefslogtreecommitdiffstats
path: root/trunk/patches/libelf-0.7.0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/patches/libelf-0.7.0.patch')
-rw-r--r--trunk/patches/libelf-0.7.0.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/trunk/patches/libelf-0.7.0.patch b/trunk/patches/libelf-0.7.0.patch
new file mode 100644
index 0000000..1e9e57a
--- /dev/null
+++ b/trunk/patches/libelf-0.7.0.patch
@@ -0,0 +1,16 @@
+2001-09-26 Jakub Jelinek <jakub@redhat.com>
+
+ * lib/64.xlatetof.c (__load_i64M): Don't blow away upper 32 bits
+ if 31th bit is set.
+
+--- libelf-0.7.0/lib/64.xlatetof.c.jj Tue Aug 25 17:22:24 1998
++++ libelf-0.7.0/lib/64.xlatetof.c Wed Sep 26 15:00:18 2001
+@@ -42,7 +42,7 @@ __load_i64L(const unsigned char *from) {
+
+ static __libelf_i64_t
+ __load_i64M(const unsigned char *from) {
+- return ((__libelf_u64_t)__load_u32M(from) << 32) | (__libelf_i64_t)__load_i32M(from + 4);
++ return ((__libelf_i64_t)__load_i32M(from) << 32) | (__libelf_u64_t)__load_u32M(from + 4);
+ }
+
+ static void