• Guenter Roeck's avatar
    xtensa: Fix fix linker script transformation for .text / .text.fixup · 834a316e
    Guenter Roeck authored
    Commit 779c88c9 ("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: 779c88c9 ("ARM: 8321/1: asm-generic: introduce .text.fixup
    		     input section")
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarChris Zankel <chris@zankel.net>
    834a316e
Makefile 1.42 KB