Skip to content

LLD fails to link MIPS kernel #1267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nabijaczleweli opened this issue Jan 25, 2021 · 1 comment
Closed

LLD fails to link MIPS kernel #1267

nabijaczleweli opened this issue Jan 25, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@nabijaczleweli
Copy link

make LLVM=1 CC=clang CROSS_COMPILE=mips-linux-gnu ARCH=mips in 228a65d (and, previously, accefff) yields this:

ld.lld: error: arch/mips/vdso/elf.o is incompatible with elf32-tradlittlemips
ld.lld: error: arch/mips/vdso/vgettimeofday.o is incompatible with elf32-tradlittlemips
ld.lld: error: arch/mips/vdso/sigreturn.o is incompatible with elf32-tradlittlemips
make[2]: *** [arch/mips/vdso/Makefile:121: arch/mips/vdso/vdso.so.dbg.raw] Error 1
make[1]: *** [scripts/Makefile.build:496: arch/mips/vdso] Error 2
make[1]: *** Waiting for unfinished jobs....

However, overriding just LD to binutils' works, so a success nonetheless.

Toolchain, as obtained from http://apt.llvm.org/buster/:

nabijaczleweli@tarta:~/store/Carambola2/linux$ ld.lld --version
LLD 12.0.0 (compatible with GNU linkers)
nabijaczleweli@tarta:~/store/Carambola2/linux$ clang --version
Debian clang version 12.0.0-++20210124115112+5d12b976b004-1~exp1~20210124105850.1269
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /bin
@nathanchance
Copy link
Member

This is a duplicate of #1025, which is a known issue with ld.lld because it does not properly support a triple version of OUTPUT_FORMAT.

Thank you for testing and reporting it back, I appreciate it!

@nathanchance nathanchance added the duplicate This issue or pull request already exists label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants