From a56e9d6dbf40d037a4858354916a27371e2f3434 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Mon, 14 Aug 2006 16:27:13 +0000 Subject: uclibc: patches to compile with gcc 4.1.1 with thumb instruction set (patches derived from busybox mailing list) --- packages/uclibc/uclibc-0.9.28/dl-sysdep.h.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/uclibc/uclibc-0.9.28/dl-sysdep.h.patch (limited to 'packages/uclibc/uclibc-0.9.28/dl-sysdep.h.patch') diff --git a/packages/uclibc/uclibc-0.9.28/dl-sysdep.h.patch b/packages/uclibc/uclibc-0.9.28/dl-sysdep.h.patch new file mode 100644 index 0000000000..0d271a9ca0 --- /dev/null +++ b/packages/uclibc/uclibc-0.9.28/dl-sysdep.h.patch @@ -0,0 +1,10 @@ +--- uClibc-0.9.28/ldso/ldso/arm/dl-sysdep.h.orig 2006-08-14 17:22:50.000000000 +0200 ++++ uClibc-0.9.28/ldso/ldso/arm/dl-sysdep.h 2006-08-14 17:23:45.000000000 +0200 +@@ -43,6 +43,7 @@ + return m; + } + #define do_rem(result, n, base) ((result) = arm_modulus(n, base)) ++#define do_div_10(result, remain) ((result) = (((result) - (remain)) / 2) * -(-1ul / 5ul)) + + /* Here we define the magic numbers that this dynamic loader should accept */ + #define MAGIC1 EM_ARM -- cgit v1.2.3