diff options
author | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-20 14:00:34 +0000 |
---|---|---|
committer | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-20 14:00:34 +0000 |
commit | ac2d02c3e08c4c3d62859bffb4dd3bb891b3d5c6 (patch) | |
tree | e2bbc127a4a059392f3c5bea27e2944e0c149ecb /package/busybox/patches/480-disable_braindead_optimization.patch | |
parent | e90b272ea7df4d2c356ad1331cd9529e06331448 (diff) |
upgrade busybox to v1.11.1 and add current upstream fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12348 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/480-disable_braindead_optimization.patch')
-rw-r--r-- | package/busybox/patches/480-disable_braindead_optimization.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/package/busybox/patches/480-disable_braindead_optimization.patch b/package/busybox/patches/480-disable_braindead_optimization.patch index e5664e177f..e69de29bb2 100644 --- a/package/busybox/patches/480-disable_braindead_optimization.patch +++ b/package/busybox/patches/480-disable_braindead_optimization.patch @@ -1,40 +0,0 @@ -Index: busybox-1.8.1/editors/awk.c -=================================================================== ---- busybox-1.8.1.orig/editors/awk.c 2007-11-10 23:53:16.950053243 +0100 -+++ busybox-1.8.1/editors/awk.c 2007-11-10 23:53:23.422422084 +0100 -@@ -446,7 +446,7 @@ - tsplitter fsplitter, rsplitter; - }; - #define G1 (ptr_to_globals[-1]) --#define G (*(struct globals2 *const)ptr_to_globals) -+#define G (*(struct globals2 *)ptr_to_globals) - /* For debug. nm --size-sort awk.o | grep -vi ' [tr] ' */ - /* char G1size[sizeof(G1)]; - 0x6c */ - /* char Gsize[sizeof(G)]; - 0x1cc */ -Index: busybox-1.8.1/include/libbb.h -=================================================================== ---- busybox-1.8.1.orig/include/libbb.h 2007-11-10 23:53:38.135260518 +0100 -+++ busybox-1.8.1/include/libbb.h 2007-11-10 23:54:15.773405393 +0100 -@@ -1111,8 +1111,10 @@ - struct globals; - /* '*const' ptr makes gcc optimize code much better. - * Magic prevents ptr_to_globals from going into rodata. -- * If you want to assign a value, use PTR_TO_GLOBALS = xxx */ --extern struct globals *const ptr_to_globals; -+ * If you want to assign a value, use PTR_TO_GLOBALS = xxx -+ * unfortunately the above hack doesn't work properly :P -+ */ -+extern struct globals *ptr_to_globals; - #define PTR_TO_GLOBALS (*(struct globals**)&ptr_to_globals) - - -Index: busybox-1.8.1/libbb/messages.c -=================================================================== ---- busybox-1.8.1.orig/libbb/messages.c 2007-11-10 23:52:47.116353117 +0100 -+++ busybox-1.8.1/libbb/messages.c 2007-11-10 23:52:57.752959269 +0100 -@@ -74,4 +74,4 @@ - - struct globals; - /* Make it reside in R/W memory: */ --struct globals *const ptr_to_globals __attribute__ ((section (".data"))); -+struct globals *ptr_to_globals __attribute__ ((section (".data"))); |