microblaze: Change section flags for noMMU
authorMichal Simek <michal.simek@xilinx.com>
Fri, 21 Dec 2012 09:53:40 +0000 (10:53 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 3 Jan 2013 11:47:20 +0000 (12:47 +0100)
All files which uses user unified macros from uaccess.h
(get_user/put_user/clear_user/copy_tofrom_user/
strnlen_user and strncpy_user) generate this
warning messages:
Assembler messages:
Warning: ignoring changed section attributes for .discard

Setting up discard executable section flang for __EX_TABLE_SECTION
macro removed all these warnings.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/uaccess.h

index 927540d3cb7d1ee9ddb62a6b1b0915f758dc8761..a1ab5f0009efcd7bc84d4dd17aabedb915707653 100644 (file)
@@ -108,7 +108,7 @@ static inline int ___range_ok(unsigned long addr, unsigned long size)
 # define __EX_TABLE_SECTION    ".section __ex_table,\"a\"\n"
 #else
 # define __FIXUP_SECTION       ".section .discard,\"ax\"\n"
-# define __EX_TABLE_SECTION    ".section .discard,\"a\"\n"
+# define __EX_TABLE_SECTION    ".section .discard,\"ax\"\n"
 #endif
 
 extern unsigned long __copy_tofrom_user(void __user *to,