aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/lib/memcpy_user_64.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-07-08 17:07:41 -0400
committerChris Metcalf <cmetcalf@ezchip.com>2015-07-08 18:53:49 -0400
commit673c2c34f684e9d4328459e426ab54d51a5865c5 (patch)
tree088062278fffd7a652761691dde8ba6c18104654 /arch/tile/lib/memcpy_user_64.c
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff)
modpost: work correctly with tile coldtext sections
The tilegx and tilepro compilers use .coldtext for their unlikely executed text section name, so an __attribute__((cold)) function will (when compiled with higher optimization levels) land in the .coldtext section. Modify modpost to add .coldtext to the set of OTHER_TEXT_SECTIONS so we don't get warnings about referencing such a section in an __ex_table block, and then also modify arch/tile/lib/memcpy_user_64.c so that it uses plain ".coldtext" instead of ".coldtext.memcpy". The latter naming is a relic of an earlier use of -ffunction-sections, which we no longer use by default. Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/tile/lib/memcpy_user_64.c')
-rw-r--r--arch/tile/lib/memcpy_user_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/lib/memcpy_user_64.c b/arch/tile/lib/memcpy_user_64.c
index 88c7016492c4..97bbb6060b25 100644
--- a/arch/tile/lib/memcpy_user_64.c
+++ b/arch/tile/lib/memcpy_user_64.c
@@ -28,7 +28,7 @@
28#define _ST(p, inst, v) \ 28#define _ST(p, inst, v) \
29 ({ \ 29 ({ \
30 asm("1: " #inst " %0, %1;" \ 30 asm("1: " #inst " %0, %1;" \
31 ".pushsection .coldtext.memcpy,\"ax\";" \ 31 ".pushsection .coldtext,\"ax\";" \
32 "2: { move r0, %2; jrp lr };" \ 32 "2: { move r0, %2; jrp lr };" \
33 ".section __ex_table,\"a\";" \ 33 ".section __ex_table,\"a\";" \
34 ".align 8;" \ 34 ".align 8;" \
@@ -41,7 +41,7 @@
41 ({ \ 41 ({ \
42 unsigned long __v; \ 42 unsigned long __v; \
43 asm("1: " #inst " %0, %1;" \ 43 asm("1: " #inst " %0, %1;" \
44 ".pushsection .coldtext.memcpy,\"ax\";" \ 44 ".pushsection .coldtext,\"ax\";" \
45 "2: { move r0, %2; jrp lr };" \ 45 "2: { move r0, %2; jrp lr };" \
46 ".section __ex_table,\"a\";" \ 46 ".section __ex_table,\"a\";" \
47 ".align 8;" \ 47 ".align 8;" \