mold
mold copied to clipboard
Mold: A Modern Linker π¦
Similarly to #93, please consider adding `-flto` support for GCC bytecode. Your linker looks very promising and LTO is getting more commonly used. Note there are distros like openSUSE, Fedora,...
Package kvm-unit-tests seems to have a linker script as follows: SECTIONS { . = 4M + SIZEOF_HEADERS; stext = .; .text : { *(.init) *(.text) *(.text.*) } . = ALIGN(4K);...
From the linux binutils ld.info file (note: for whatever reason this is not in the binutils ld(1) man page or ld --help: ... '-dT SCRIPTFILE' '--default-script=SCRIPTFILE' Use SCRIPTFILE as the...
Thanks for fixing #196. Now I can test mold with linking MongoDB binaries. Environment: Ubuntu 20.04, 8 core intel processor, gcc 9.3.0, mold built from commit 04ad22d326d. I failed to...
madscientist has a nice essay on this: http://make.mad-scientist.net/papers/multi-architecture-builds/ if you want to stay the pure GNU make route.
Currently, `mold -r` does not merge input sections at all. So the resulting object file contains as many `.text` sections as they were in input object files, for example. This...
It appears that object merging when using a linker script produces object files with no symbols. ``` > tree . . βββ ghc_14.ldscript βββ input.o βββ lib.o βββ mold-cmd βββ...
I played around with the mold configuration options, and discovered, that you can use mold with CMAKE_CXX_LINKER_LAUNCHER and mold -run. Unfortunately, I needed to create a separate launcher script (e.g....
a first step at packaging: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+sourcepub/13210136/+listing-archive-extra fails to build on s390x and riscv64 In file included from //third-party/tbb/src/tbb/tools_api/ittnotify_static.c:17, from //third-party/tbb/src/tbb/itt_notify.cpp:43: //third-party/tbb/src/tbb/tools_api/ittnotify_config.h: In function βlong int __itt_interlocked_increment(volatile long int*)β: //third-party/tbb/src/tbb/tools_api/ittnotify_config.h:348:12: error:...
I noticed one can't build `mold` on `s390x` due to: ``` [ 33s] make[3]: Entering directory '/home/abuild/rpmbuild/BUILD/mold-1.0.999+git.20220109.b18d4881/out/mimalloc' [ 33s] [100%] Built target mimalloc-static [ 33s] make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/mold-1.0.999+git.20220109.b18d4881/out/mimalloc' [...