mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
xtensa: Fix fix linker script transformation for .text / .text.fixup
Commit779c88c94c("ARM: 8321/1: asm-generic: introduce .text.fixup input section") introduced a new .text.fixup section which is merged with .text at link time. This causes xtensa builds to fail with lots of error messages similar to the following. lib/lib.a(kobject.o): In function `kobject_create': (.text+0x498): dangerous relocation: l32r: literal placed after use: (.literal+0x150) Linker script transformation needs to be updated to detect and handle the new section. Fixes:779c88c94c("ARM: 8321/1: asm-generic: introduce .text.fixup input section") Cc: Ard Biesheuvel <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Chris Zankel <[email protected]>
This commit is contained in:
parent
0372c1abdd
commit
834a316eee
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ AFLAGS_head.o += -mtext-section-literals
|
|||
|
||||
sed-y = -e 's/\*(\(\.[a-z]*it\|\.ref\|\)\.text)/*(\1.literal \1.text)/g' \
|
||||
-e 's/\.text\.unlikely/.literal.unlikely .text.unlikely/g' \
|
||||
-e 's/\*(\(\.text .*\))/*(.literal \1)/g' \
|
||||
-e 's/\*(\(\.text\.[a-z]*\))/*(\1.literal \1)/g'
|
||||
|
||||
quiet_cmd__cpp_lds_S = LDS $@
|
||||
|
|
|
|||
Loading…
Reference in a new issue