summaryrefslogtreecommitdiffstats
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
parent91e080633221cadece6c1c37786ef8a18a9d1a5e (diff)
downloadop-kernel-dev-ed5010ea469baa8c0038d027c3b79a600da36811.zip
op-kernel-dev-ed5010ea469baa8c0038d027c3b79a600da36811.tar.gz
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>
-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 6f56d95..2d2728b 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__ $< \
OpenPOWER on IntegriCloud