• Heiko Carstens's avatar
    s390: fix linker script for 31 bit builds · adb0f4a1
    Heiko Carstens authored
    commit c985cb37 upstream.
    
    Because of a change in the s390 arch backend of binutils (commit 23ecd77
    "Pick the default arch depending on the target size" in binutils repo)
    31 bit builds will fail since the linker would now try to create 64 bit
    binary output.
    Fix this by setting OUTPUT_ARCH to s390:31-bit instead of s390.
    Thanks to Andreas Krebbel for figuring out the issue.
    
    Fixes this build error:
    
      LD      init/built-in.o
    s390x-4.7.2-ld: s390:31-bit architecture of input file
     `arch/s390/kernel/head.o' is incompatible with s390:64-bit output
    
    Cc: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
    Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    [bwh: Backported to 3.2: adjust context]
    Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
    adb0f4a1
vmlinux.lds.S 1.79 KB