proot-me / proot

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux
https://proot-me.github.io
GNU General Public License v2.0
1.96k stars 369 forks source link

Loader fails to link with LLVM ld #360

Open nya3jp opened 1 year ago

nya3jp commented 1 year ago

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