Skip to content

remove cc-ldoption #342

@nickdesaulniers

Description

@nickdesaulniers

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.

cc @samitolvanen

Metadata

Metadata

Labels

[BUG] linuxA bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.2This bug was fixed in Linux 5.2[TOOL] lldThe issue is relevant to LLD linker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions