mold
mold copied to clipboard
Mold: A Modern Linker 🦠
linking the application fails, the following errors are reported: mold: fatal: symbol referring .eh_frame is not supported: .eh_frame_seg /opt/oracle/product/12.2.0.3.150/lib/libclntst19.a(ipc1_ipclw_emu.o) mold: fatal: symbol referring .eh_frame is not supported: .eh_frame_seg /opt/oracle/product/12.2.0.3.150/lib/libclntst19.a(generic19_skgvm.o) Note...
I am trying to build BIND using mold-1.4.1 on macOS 12.5.1 I have mostly got it working, with some ugly hacks to the build system to persuade autotools to invoke...
I would like to drop mold into a project that cross-compiles macOS binaries, however it does not yet support `-bind_at_load`: > -bind_at_load > Sets a bit in the mach header...
mold fails to build with lto and `-Werror=odr` enabled on Gentoo gcc version: 12.2.0 [complete build log](https://github.com/rui314/mold/files/9434548/build.log) ```/var/tmp/portage/sys-devel/mold-1.4.1/work/mold-1.4.1/third-party/tbb/src/tbb/../../include/tbb/../oneapi/tbb/detail/_exception.h:31: error: type ‘tbb::detail::d0::exception_id’ violates the C++ One Definition Rule [-Werror=odr] 31 |...
Hi Trying out mold with LibreOffice on macOS 11.6.8 (Big Sur) and it's complaining about the single_module flag. This is an x86-64 build. Thanks
I used the latest version of mold (694f973dc50d2d7f207849cf64f6cc1ddd00a987) on macOS 12.5, and compared its performance with Apple's built-in `ld`, and I find its performance not as good as I expected,...
Using the latest build of mold (694f973dc50d2d7f207849cf64f6cc1ddd00a987), I compiled and linked a non trivial program, and the link finished successfully, but after launching the program, the program crashed with segmentation...
How to reproduce: ``` cargo new --bin test-mold cd test-mold env RUSTFLAGS="-C link-arg=-fuse-ld=/opt/homebrew/bin/ld64.mold" cargo build ``` ``` dsymutil -s target/debug/test-mold|grep N_OSO ``` `dsymutil` outputs no content. mold version: mold 1.4.1...
In bfd and gold, packed dynamic relocations are toggled with the `-z pack-relative-relocs` and `-z nopack-relative-relocs` cmd line flags, while mold uses `-pack-dyn-relocs=none|relr`. For compatibility it would be simpler if...
I got some error when building on Termux. ``` macho/main.cc:444:11: error: no viable overloaded '+=' counter += std::erase_if(osec.members, [](Subsection *subsec) { ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ macho/main.cc:455:7: note: in instantiation of function...