Package Details: mold-git 3.0.0.r44.g418dbb77-1

Git Clone URL: https://aur.archlinux.org/mold-git.git (read-only, click to copy)
Package Base: mold-git
Description: A Modern Linker in Rust
Upstream URL: https://github.com/rui314/mold
Keywords: ld.mold linker mold
Licenses: MIT
Conflicts: mold
Provides: mold
Submitter: xyproto
Maintainer: bin (ptr1337, asyync1024)
Last Packager: asyync1024
Votes: 9
Popularity: 0.005080
First Submitted: 2021-02-23 11:05 (UTC)
Last Updated: 2026-10-08 13:40 (UTC)

Required by (140)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

oech3 commented on 2026-10-06 07:28 (UTC)

You can configure libexec now https://github.com/rui314/mold/commit/abff0d11bd14b381a9f595ceb57cbe3eb5e0fcc4 .

Drop zlib from dep since it was replaced with zlib-rs.

Also mold uses pure-Rust crate for xxhash and blake3. So # bundled: xxhash, mimalloc, libblake3 can be simplified to mimalloc only.

asyync1024 commented on 2026-10-03 11:00 (UTC) (edited on 2026-10-04 05:12 (UTC) by asyync1024)

Everybody please note that I have removed the usage of mold, and instead turned off lto for .c files. This does not negatively affect performance in my benchmarks, if it does, feel free to inform me.

asyync1024 commented on 2026-10-03 10:58 (UTC)

@oech3 Makes sense, will remove it.

oech3 commented on 2026-10-01 04:57 (UTC)

I think sed hack can be dropped since user can export CARGO_PROFILE_RELEASE_LTO at makepkg.conf.

asyync1024 commented on 2026-09-29 06:16 (UTC)

@oech3 Done in the latest commit, also added an optional patch to enable ThinLTO ONLY on the release binary if desired :)

oech3 commented on 2026-09-26 13:17 (UTC)

Would you switch to system zstd with export ZSTD_SYS_USE_PKG_CONFIG=1?

asyync1024 commented on 2026-09-21 09:16 (UTC)

I have fixed both the issues, FULL RELRO with a sed patch, and the clean chroot issue turned out be LLD failing to link properly, switching to mold fixed the issue for now.

I think I will report this somewhere, but for now, enjoy!

asyync1024 commented on 2026-09-20 09:11 (UTC) (edited on 2026-09-21 08:39 (UTC) by asyync1024)

I linked dhewm3-git and picom-git and they work fine.

Though building it in a clean chroot gives an error, here is the link to the pastebin: https://paste.c-net.org/EnforceGuard

I honestly don't have any idea (or time due to exams) on how to fix the clean chroot or the FULL RELRO issue of mold-wrapper.so (I have fixed this RELRO issue in the latest commit), so if you have any bright ideas, feel free to post them!

For now, I will be posting the commit.

asyync1024 commented on 2026-09-20 08:37 (UTC)

Good News: I have managed to create a PKGBUILD that builds successfully and is package correctly. Only namcap complains about FULL RELRO missing on mold-wrapper.so, and I don't have any idea how to fix that.

I am going to push an update after some testing.

asyync1024 commented on 2026-09-20 04:57 (UTC) (edited on 2026-09-20 04:57 (UTC) by asyync1024)

I see that mold has been updated to Rust and the PKGBUILD needs to be changed.

However, I have some exams going on and they are going to end on 25, therefore if I don't update the package till tomorrow, it's unlikely this package will get an update for the next few days.