summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/Makefile
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2010-05-01 23:00:07 -0700
committerChris Zankel <chris@zankel.net>2010-05-01 23:00:07 -0700
commited5010ea469baa8c0038d027c3b79a600da36811 (patch)
treeba70a250d2ea286f4eae0d2822ac3bf975f8a9b3 /arch/xtensa/kernel/Makefile
parent91e080633221cadece6c1c37786ef8a18a9d1a5e (diff)
downloadlinux-ed5010ea469baa8c0038d027c3b79a600da36811.tar.gz
linux-ed5010ea469baa8c0038d027c3b79a600da36811.tar.bz2
linux-ed5010ea469baa8c0038d027c3b79a600da36811.zip
xtensa: Fix linker script patch-up
The Xtensa architecture requires to patch the generated linker script to insert precede certain sections with a .literal section. Ammend the sed script to fix-up only sequences that start with a '*': '*(.init.text)' -> '*(.init.literal .init.text)' Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/kernel/Makefile')
-rw-r--r--arch/xtensa/kernel/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/Makefile b/arch/xtensa/kernel/Makefile
index 6f56d95f2c1e..2d2728b3e862 100644
--- a/arch/xtensa/kernel/Makefile
+++ b/arch/xtensa/kernel/Makefile
@@ -23,8 +23,8 @@ obj-$(CONFIG_MODULES) += xtensa_ksyms.o module.o
#
# Replicate rules in scripts/Makefile.build
-sed-y = -e 's/(\(\.[a-z]*it\|\.ref\|\)\.text)/(\1.literal \1.text)/g' \
- -e 's/(\(\.text\.[a-z]*\))/(\1.literal \1)/g'
+sed-y = -e 's/\*(\(\.[a-z]*it\|\.ref\|\)\.text)/*(\1.literal \1.text)/g' \
+ -e 's/\*(\(\.text\.[a-z]*\))/*(\1.literal \1)/g'
quiet_cmd__cpp_lds_S = LDS $@
cmd__cpp_lds_S = $(CPP) $(cpp_flags) -P -C -Uxtensa -D__ASSEMBLY__ $< \