Skip to content

6.4.9-zen1: Clang LTO broken #322

@aidanharris

Description

@aidanharris

This is a regression from 6.4.8

make defconfig
export CC=clang-16
export HOSTCC=$CC
env PATH=/usr/lib/llvm/16/bin:"$PATH" LIBCLANG_PATH=/usr/lib/llvm/16/lib64 make CC=$CC HOSTCC=$CC LLVM=1 LLVM_IAS=1 V=1 -j1
# enable thin-lto when prompted, don't enable CFI
+ ld.lld -m elf_x86_64 --thinlto-cache-dir=.thinlto-cache -mllvm -import-instr-limit=5 -z noexecstack --emit-relocs --discard-none -z max-page-size=0x200000 --build-id=sha1 --orphan-handling=error --script=./arch/x86/kernel/vmlinux.lds --strip-debug -o .tmp_vmlinux.kallsyms1 --whole-archive vmlinux.o .vmlinux.export.o init/version-timestamp.o --no-whole-archive --start-group --end-group
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:35: unable to move location counter backward for: .text
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:203: at least one side of the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:204: at least one side of the expression must be absolute
ld.lld: error: SRSO function pair won't alias
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:35: unable to move location counter backward for: .text
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:203: at least one side of the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:204: at least one side of the expression must be absolute
ld.lld: error: SRSO function pair won't alias
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:35: unable to move location counter backward for: .text
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:203: at least one side of the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:204: at least one side of the expression must be absolute
ld.lld: error: SRSO function pair won't alias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions