proot icon indicating copy to clipboard operation
proot copied to clipboard

Loader fails to link with LLVM ld

Open nya3jp opened this issue 1 year ago • 0 comments

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

nya3jp avatar Jul 05 '23 01:07 nya3jp