forked from torvalds/linux
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 15
Closed
Labels
[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.2This bug was fixed in Linux 5.2This bug was fixed in Linux 5.2[TOOL] lldThe issue is relevant to LLD linkerThe issue is relevant to LLD linker
Description
Forked from: ClangBuiltLinux/continuous-integration#122
Some parts of the kernel invoke the linker via $(CC) using -Wl,... flags.  This is problematic because setting LD=ld.lld is not enough for this to work correctly.
If compiling with Clang AND linking with LLD, -fuse-ld=lld needs to be added to KBUILD_CFLAGS.
The pixel kernels have a ld-name macro to distinguish between bfd and gold.  I've extended them to support lld, but seems the base patch is not upstreamed.
Metadata
Metadata
Assignees
Labels
[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.2This bug was fixed in Linux 5.2This bug was fixed in Linux 5.2[TOOL] lldThe issue is relevant to LLD linkerThe issue is relevant to LLD linker