proot
proot copied to clipboard
Loader fails to link with LLVM ld
We use -Ttext=0x600000000000
to link loader, but it fails to link with LLVM ld as it attempts to generate a huge file.
x86_64-pc-linux-gnu-clang -o loader/loader loader/loader.o loader/assembly.o -static -nostdlib -Wl,--build-id=none,-Ttext=0x600000000000,-z,noexecstack
ld.lld: error: failed to open loader/loader: File too large
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [GNUmakefile:275: loader/loader] Error 1