mold
mold copied to clipboard
Mold: A Modern Linker 🦠
Thanks for providing such a cool ld. Environment: Ubuntu 20.04, 8 core intel processor, 16G memory, gcc 9.3.0, mold built from commit [cb2b4b8](https://github.com/rui314/mold/commit/cb2b4b8f724ed8b1b4665bc5c3134652d4031fd1). I add ```sh [target.x86_64-unknown-linux-gnu] linker = "clang"...
Error message ``` : error: Warning: Couldn't figure out linker information! Make sure you're using GNU ld, GNU gold or the built in OS X linker, etc ``` Steps to...
Hi Both mold 1.0.0 & 1.0.1 fails to build on 32 bit (i586 & armv7) See https://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20220102173806.tv.duvel.3477176/log/mold-1.0.1-1.mga9/build.i586.0.20220102173905.log [ 10%] Building CXX object src/tbb/CMakeFiles/tbb.dir/arena.cpp.o cd /home/iurt/rpmbuild/BUILD/mold-1.0.1/out/tbb/src/tbb && /usr/bin/g++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -I/home/iurt/rpmbuild/BUILD/mold-1.0.1/third-party/tbb/src/tbb/../../include...
dosemu.spec.out:mold: unknown command line option: --oformat ld seems to support it.
I notice new error message: mold: /usr/lib64/gnuefi//x64/efi.lds:3: OUTPUT_ARCH(i386:x86-64) ^ unknown linker script token It looks to me like mold needs to understand this token.
The GNU ld/gold semantics may feel weird for people coming from VMS, Mach-O ld64, Windows link.exe world, but it does have a nice property: https://maskray.me/blog/2021-06-13-dependency-related-linker-options#warn-backrefs
I built the mold with version 1.0.0 with instructions on README I was trying to replace ld with mold, and got very excited that the linking time reduced from minutes...
It took a while to get this right. Maybe someone else wants to compile mold on Ubuntu 18.04, if so, this seems to work on a fresh Ubuntu 18.04 docker...
I am trying out mold in our (old) dev environment, with gcc 4.8. Built a statically linked mold using the docker script, and tried the `mold -run` command to intercept...
Mold works great when compiling for a single target binary, but when we do a complete build repo wide (ninja with no target), things start to grind to a halt...