diff options
author | Chris Zankel <chris@zankel.net> | 2010-05-01 23:00:07 -0700 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2010-05-01 23:00:07 -0700 |
commit | ed5010ea469baa8c0038d027c3b79a600da36811 (patch) | |
tree | ba70a250d2ea286f4eae0d2822ac3bf975f8a9b3 /arch/xtensa | |
parent | 91e080633221cadece6c1c37786ef8a18a9d1a5e (diff) | |
download | kernel_samsung_crespo-ed5010ea469baa8c0038d027c3b79a600da36811.tar.gz kernel_samsung_crespo-ed5010ea469baa8c0038d027c3b79a600da36811.tar.bz2 kernel_samsung_crespo-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')
-rw-r--r-- | arch/xtensa/kernel/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/Makefile b/arch/xtensa/kernel/Makefile index 6f56d95f2c1..2d2728b3e86 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__ $< \ |