Open nya3jp opened 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.
-Ttext=0x600000000000
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
We use
-Ttext=0x600000000000
to link loader, but it fails to link with LLVM ld as it attempts to generate a huge file.