aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-12-01 11:07:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-12-01 11:07:30 +0000
commitb759373524ee98afb11f67b6f03791d231403f5a (patch)
tree6b175c32d0c5a573660281377e8f766c5c3cc2d9 /tools
parentc73005f2890ce6129f923a07bf8ed03894f72fea (diff)
downloadupstream-b759373524ee98afb11f67b6f03791d231403f5a.tar.gz
upstream-b759373524ee98afb11f67b6f03791d231403f5a.tar.bz2
upstream-b759373524ee98afb11f67b6f03791d231403f5a.zip
mkimage: remove check for miscompiled __weak
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43458 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage/patches/080-remove_compiler_check.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/mkimage/patches/080-remove_compiler_check.patch b/tools/mkimage/patches/080-remove_compiler_check.patch
new file mode 100644
index 0000000000..3e71ad5b07
--- /dev/null
+++ b/tools/mkimage/patches/080-remove_compiler_check.patch
@@ -0,0 +1,16 @@
+--- a/include/linux/compiler-gcc4.h
++++ b/include/linux/compiler-gcc4.h
+@@ -2,13 +2,6 @@
+ #error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
+ #endif
+
+-/* GCC 4.1.[01] miscompiles __weak */
+-#ifdef __KERNEL__
+-# if GCC_VERSION >= 40100 && GCC_VERSION <= 40101
+-# error Your version of gcc miscompiles the __weak directive
+-# endif
+-#endif
+-
+ #define __used __attribute__((__used__))
+ #define __must_check __attribute__((warn_unused_result))
+ #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)