mold
mold copied to clipboard
Mold: A Modern Linker 🦠
Fixes #1362 #851 It seems that with llvm lto we don't have much way to fix the issue than increasing the ulimit. (I strace'd bfd and it is calling setprlimit...
I'm reading through https://docs.google.com/document/d/1bVRrKsB6iMGmay1odsmS44PyUzPXgQBH83gYGMY6LWM/edit?tab=t.0#heading=h.yyyj057hy9w8, in particular > You can't control how input sections are mapped to output sections. Input sections are mapped to output sections with the same rule as...
I use mold in our project, with option -flto=auto -flto-partition=one -ffat-lto-objects -B/mold/path works ok, but there is no multithread acceleration (see from in top). Did I miss something?
I used a patch similar to https://github.com/rui314/mold/issues/336#issuecomment-1837256738 to try to build Chromium with thinlto with mold. All is fine except the final link: ``` [48401/48401] "python3.13" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-gnu-clang++-19...
lld lists options ignored for compatibility in their options tablegen: https://github.com/llvm-mirror/lld/blob/master/ELF/Options.td#L561-L584 What's the convention for mold?
Trying to do an ASAN build of a project that builds its own internal tools for use in the build process seems broken. Easy example here would be to try...
`main.c` ``` #include #include int main() { uint8_t data[4]; printf("%c", data[5]); return 0; } ``` Output: ``` main.o> gcc -Og -c -o main.o -std=c23 -gdwarf-4 -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=undefined...
I'm trying to use mold for an ARM32 embedded project (so the gcc toolchain is necessarily out of date), and after removing references to the `--cref` flag which I'm not...
I wasted a few hours finding out that sh_align is handled differently by ld then mold (and gold) ld ignores it, mold respects it and will pad data with zeros...
I was previously having an issue with `mold: error: undefined symbol: OPENSSL_ia32cap_P` https://github.com/rui314/mold/issues/1315 This issue has been resolved currently. My compilation goes through smoothly until the end, but it fails...