1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-19 08:57:39 +03:00
Commit Graph

6706 Commits

Author SHA1 Message Date
Rui Ueyama
863893057e Allow numbers other than 1 for MOLD_JOBS 2024-06-18 18:28:28 +09:00
Rui Ueyama
b83b1950c0
Merge pull request #1281 from ziyao233/outgoing/fix-static-flag 2024-06-17 08:10:20 +09:00
Yao Zi
d2774b0da9 Use $CXX to detect cxxflags
Use $CXX instead of $CC to detect whether C++ programs could be built
statically. Add function test_cxxflags for convenience.

Fix test error in an environment where C++ programs cannot be built
statically, with error like:

  mold: fatal: library not found: c++

Signed-off-by: Yao Zi <ziyao@disroot.org>
2024-06-16 20:16:34 +00:00
Rui Ueyama
cff858bad5 Attempt to fix CI 2024-06-13 16:47:50 +09:00
Rui Ueyama
7669a3ce67 Attempt to fix CI 2024-06-13 16:11:48 +09:00
Rui Ueyama
3ad387f20c Refactor 2024-06-13 13:33:45 +09:00
Rui Ueyama
af6d356468 Attempt to fix CI 2024-06-11 14:49:53 +09:00
Rui Ueyama
768f1dffdd Attempt to fix CI 2024-06-11 14:43:54 +09:00
Rui Ueyama
2a25c81834 Refactor 2024-06-11 13:37:21 +09:00
Rui Ueyama
24b8941f60 Refactor 2024-06-10 20:36:40 +09:00
LoveSy
841a186346
Fix corrupted .riscv.attributes ISA string (#1276)
Fix corrupted .riscv.attributes ISA string
extension name can contain digits
2024-06-10 19:56:40 +09:00
Rui Ueyama
ec04bfda9d Bump mold version to 2.32.0 2024-06-09 12:44:21 +09:00
Rui Ueyama
8cd85aaa29 Make --undefined=ignore-in-object-files to override -z defs
The interaction between these flags are unnecessarily complicated,
but it looks like `--undefined=ignore-in-object-files` needs to
share the same internal flag as `-z defs` so that they override
each other.

Fixes https://github.com/rui314/mold/issues/1270
2024-05-31 22:00:03 +09:00
Rui Ueyama
01bc0b522d Update mold.1 (automated commit) 2024-05-31 04:53:42 +00:00
Rui Ueyama
48e777ad7b Update man page 2024-05-31 13:51:59 +09:00
Rui Ueyama
0955c30852 Update mold.1 (automated commit) 2024-05-30 09:51:42 +00:00
Rui Ueyama
02ec7156c1 Update man page 2024-05-30 18:50:35 +09:00
Rui Ueyama
c7c8583946 Allow larger range extension thunks
Fixes https://github.com/rui314/mold/issues/1224
2024-05-27 15:43:43 +09:00
Rui Ueyama
08b0a1629d Do not emit incorrect relocations for mergeable sections with --relocatable
Fixes https://github.com/rui314/mold/issues/1265
2024-05-24 13:01:10 +09:00
Rui Ueyama
02b439af48 Upgrade bundled mimalloc to 2.1.6
Fixes https://github.com/rui314/mold/issues/1257
2024-05-21 11:55:39 +09:00
Rui Ueyama
a8cd2e84e0 Support R_PPC64_TPREL16_LO_DS
Fixes https://github.com/rui314/mold/issues/1262
2024-05-21 11:22:51 +09:00
Rui Ueyama
a25226eb13 Replace our SipHash implementation with https://github.com/rui314/siphash 2024-05-18 12:15:26 +09:00
Rui Ueyama
91f9c4d167 Avoid unaligned memory access 2024-05-17 15:39:19 +09:00
Rui Ueyama
416b0d336f Optimize
Teaching the compiler that `buflen` cannot be negative and also doesn't
take a large value allows it to optimize code a little bit more than
it currently does.
2024-05-16 11:52:58 +09:00
Rui Ueyama
ca4738d5e2 Use Siphash-1-3 instead of SipHash-2-4
I couldn't find any report that the reduced round version is broken
despite being used at a lot of places (e.g. Rust's hash table uses
SipHash-1-3). So I assume it's secure.
2024-05-16 11:44:25 +09:00
Rui Ueyama
4281f45f06 Do not record response files as dependency files
Fixes https://github.com/rui314/mold/issues/1258
2024-05-16 10:31:21 +09:00
Rui Ueyama
08be7ff2d2 Use SipHash-2-4 instead of SipHash-1-3
Because I wasn't not sure SipHash-1-3 is considered as a secure MAC.
2024-05-12 09:11:32 +09:00
Rui Ueyama
47030cf6ca Fix thread-unsafe code
BitVector is not therad-safe if two threads write to the same byte
at the same time.
2024-05-11 19:56:07 +09:00
Rui Ueyama
a5e5ad75fe Refactor 2024-05-11 19:56:07 +09:00
Rui Ueyama
0ce1c78012 Refactor 2024-05-11 16:54:54 +09:00
Rui Ueyama
a250aea2f9 Refactor 2024-05-11 16:38:13 +09:00
Rui Ueyama
1fa4e34cec Inline memcpy
Teaching the compiler that `buflen` can never be negative here allows
it to inline subsequent `memcpy` function calls.
2024-05-11 16:28:46 +09:00
Rui Ueyama
1290a02a4e Refactor 2024-05-11 15:22:56 +09:00
Rui Ueyama
10b69883bd Refactor 2024-05-11 14:39:09 +09:00
Rui Ueyama
fa8e95a289 Use SipHash instead of Blake3 for Identical Code Folding 2024-05-11 14:39:09 +09:00
Rui Ueyama
6373eb05a7 Refactor 2024-05-10 15:51:22 +09:00
Rui Ueyama
3ec4b1787e Refactor 2024-05-08 16:43:42 +09:00
Rui Ueyama
74129bfc86 Fix a test
Fixes https://github.com/rui314/mold/issues/1249
2024-05-06 13:54:17 +09:00
Rui Ueyama
595f98da78 Do not attempt to run an executable built with -z rodynamic
Such executables seem to crash immediately on older systems.
2024-05-06 13:12:33 +09:00
Rui Ueyama
2649b69e95 Fix CI 2024-05-05 22:43:58 +09:00
Rui Ueyama
d20dc21e2a Update mold.1 (automated commit) 2024-05-05 13:22:52 +00:00
Rui Ueyama
7ac0816aa9 Fix typo 2024-05-05 22:21:56 +09:00
Rui Ueyama
154b6b047d Update mold.1 (automated commit) 2024-05-05 13:19:41 +00:00
Rui Ueyama
9a233df7e2 Support -z rodynamic
LLVM lld supports the flag.

Fixes https://github.com/rui314/mold/issues/1253
2024-05-05 22:17:52 +09:00
Rui Ueyama
7b2cb47727 Refactor 2024-05-05 13:08:04 +09:00
Rui Ueyama
d683e8aa0b Add a test for SHF_GNU_RETAIN 2024-05-05 12:41:55 +09:00
Rui Ueyama
5ec3d2dcc2 Do not use std::osyncstream 2024-05-04 20:37:28 +09:00
Rui Ueyama
edcf252603 Rename SyncOut -> Out 2024-05-04 18:16:04 +09:00
Rui Ueyama
024b03791a Remove extraneous newlines from "symbol missing" errors 2024-05-04 18:09:25 +09:00
Rui Ueyama
230ef819c2 Refactor 2024-05-04 18:08:09 +09:00