Skip to content

Conversation

@egtvedt
Copy link
Contributor

@egtvedt egtvedt commented Jun 10, 2025

Add newly released mold version 2.40.1 from upstream https://github.com/rui314/mold

2.40.1
Performance improvements

  • We've eliminated unnecessary memory zero-initialization for the --compress-debug-sections option to make debug section compression faster. With this change, mold sometimes runs faster with --compress-debug-sections than without it due to reduced file I/O.
  • Previously, mold used an exponential pattern-matching algorithm for glob matching, which could significantly slow down version scripts or dynamic list processing for certain glob patterns. Now, we use a linear-time algorithm that is guaranteed to run efficiently for any glob pattern.

Bug Fixes and Compatibility Improvements

  • mold now reports an error if the output .dynsym refers to a section whose section index is ≥65280, since such a dynamic symbol is not representable in ELF. Previously, mold crashed with an assertion failure.

@cpackham
Copy link
Contributor

Missing signed-off-by

@egtvedt
Copy link
Contributor Author

egtvedt commented Jun 13, 2025

Missing signed-off-by

My bad, sorry, force pushed with signed-off-by as only change.

Add newly released mold version 2.40.1 from upstream
https://github.com/rui314/mold

2.40.1
Performance improvements
- We've eliminated unnecessary memory zero-initialization for the
  --compress-debug-sections option to make debug section compression
  faster. With this change, mold sometimes runs faster with
  --compress-debug-sections than without it due to reduced file I/O.
- Previously, mold used an exponential pattern-matching algorithm for
  glob matching, which could significantly slow down version scripts or
  dynamic list processing for certain glob patterns. Now, we use a
  linear-time algorithm that is guaranteed to run efficiently for any
  glob pattern.

Bug Fixes and Compatibility Improvements
- mold now reports an error if the output .dynsym refers to a section
  whose section index is ≥65280, since such a dynamic symbol is not
  representable in ELF. Previously, mold crashed with an assertion
  failure.

Signed-off-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
@cpackham cpackham merged commit 37cf582 into crosstool-ng:master Jul 17, 2025
48 of 60 checks passed
@egtvedt egtvedt deleted the mold-add-2.40.1 branch August 13, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants