1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-11 13:06:59 +03:00
Commit Graph

5987 Commits

Author SHA1 Message Date
Jauder Ho
4011923433
Update dependabot.yml
Point to the right location for the Dockerfile
2023-07-28 10:11:52 -07:00
Jauder Ho
e391c4c2c2
Update dependabot.yml
Fix indentation
2023-07-28 10:06:40 -07:00
Jauder Ho
35208b2db6
Merge branch 'rui314:main' into patch-1 2023-07-28 10:05:41 -07:00
Rui Ueyama
b78f237a68 Fix -Wunused-variable
Fixes https://github.com/rui314/mold/issues/1063
2023-07-28 16:55:18 +09:00
Rui Ueyama
1582b720d5 Weak undefs should not keep DSOs alive
Fixes https://github.com/rui314/mold/issues/1067
2023-07-28 15:12:52 +09:00
Rui Ueyama
710127977e Make --repro output readable by busybox's tar command 2023-07-28 15:12:45 +09:00
Rui Ueyama
8e07496e08 Refactor 2023-07-28 12:55:31 +09:00
Rui Ueyama
163f5db0d1 Simplify 2023-07-28 10:58:28 +09:00
Rui Ueyama
be2e1b17cd Skip test if grep is not a "real" grep 2023-07-27 21:48:53 +09:00
Rui Ueyama
5f5e73360b Add build dependencies for Alpine Linux 2023-07-27 21:48:53 +09:00
Rui Ueyama
b0b015bc2e
Merge pull request #1066 from aloisklink/install-LICENSE.third-party 2023-07-27 14:49:00 +09:00
Rui Ueyama
7f66689e21
Merge pull request #1068 from pcc/adrp 2023-07-27 14:42:12 +09:00
Peter Collingbourne
17a5c3e0ab Support R_AARCH64_ADR_PREL_PG_HI21_NC 2023-07-26 21:33:26 -07:00
Alois Klink
3ed5b8ddf7 Install LICENSE.third-party when using CMake 2023-07-27 01:10:22 +01:00
Rui Ueyama
de991b519a Bump mold version to 2.0 2023-07-26 19:40:11 +09:00
Rui Ueyama
a066fe25c6 Change the license to the MIT license 2023-07-26 14:49:42 +09:00
Rui Ueyama
6e8a9dfec1
Merge pull request #1058 from andreas-schwab/main 2023-07-24 19:09:17 +09:00
Rui Ueyama
31eeb44d4f Format 2023-07-23 13:23:36 +09:00
Rui Ueyama
44b15cbb35 Update the bundled xxhash to v0.8.2 2023-07-21 19:28:46 +09:00
Rui Ueyama
b5b3ffa6fe
Merge pull request #1062 from Expander/replace-pow 2023-07-20 19:54:41 +09:00
Rui Ueyama
83a924ddac Fix CI 2023-07-20 17:41:08 +09:00
Rui Ueyama
2e8bd0b7a6 Handle an output relocatable object file with a large number of sections
Fixes https://github.com/rui314/mold/issues/1061
2023-07-20 16:38:54 +09:00
Alexander Voigt
b685f3cab7 replace pow(2,x) by ldexp(1.0,x) for performance 2023-07-20 09:28:35 +02:00
Rui Ueyama
2d25a93126 Handle -undefined as a synonym for --undefined instead of -u ndefined
Fixes https://github.com/rui314/mold/discussions/1059
2023-07-18 16:59:44 +09:00
Rui Ueyama
a8eb52f61a Format 2023-07-17 16:00:39 +09:00
Rui Ueyama
761c341c19 Improve MIPS64 support 2023-07-17 11:45:55 +09:00
Rui Ueyama
000e395c07 Improve MIPS64 support 2023-07-16 08:01:42 +09:00
Rui Ueyama
4b06f1e9f6 Refactor 2023-07-15 15:01:03 +09:00
Rui Ueyama
29dc0cf53f Initial MIPS64 support
Although incomplete, this implementation is capable of passing the
following tests:

  TRIPLE=mips64el-linux-gnuabi64 bash -x ../test/elf/hello-dynamic.sh
  TRIPLE=mips64-linux-gnuabi64 bash -x ../test/elf/hello-dynamic.sh
2023-07-14 15:11:53 +09:00
Rui Ueyama
f8b55680f8 Revert "Merge .alpha_got with .got"
This reverts commit 72671df483.
2023-07-14 14:12:45 +09:00
Rui Ueyama
cb08466693 Attempt to fix CI 2023-07-14 10:41:36 +09:00
Rui Ueyama
72671df483 Merge .alpha_got with .got
It's not only Alpha but MIPS relocations also need dynamic symbols
with addends, so we want to use this code not only for Alpha.
2023-07-14 10:06:18 +09:00
Rui Ueyama
83524e3690 Update comments 2023-07-09 11:25:02 +09:00
Rui Ueyama
0125d9c254 Refactor 2023-07-06 17:33:41 +09:00
Andreas Schwab
1ac5fe7c1e Fix support for R_RISCV_SET_ULEB128 and R_RISCV_SUB_ULEB128
Handle allocated sections and write the full value into the location.

Signed-off-by: Andreas Schwab <schwab@suse.de>
2023-07-06 10:23:38 +02:00
Rui Ueyama
4b42f38257 Handle embedded default version strings in LTO symbols
Fixes https://github.com/rui314/mold/issues/1056
2023-07-05 19:07:52 +09:00
Rui Ueyama
d2b153c522 Refactor 2023-07-05 18:43:07 +09:00
Rui Ueyama
ab126ad1d9 Make sure to import versioned symbols
Undefined versioned symbols are handled specially; they are resolved
at the very end of name resolution stage. When they are resolved, we
need to make sure that they are marked as imported symbols.

Fixes https://github.com/rui314/mold/issues/1057
2023-07-05 11:34:33 +09:00
Rui Ueyama
b04aba89d3 Add -z stack-size
https://github.com/rui314/mold/issues/917
2023-06-29 15:58:00 +09:00
Rui Ueyama
2cb41d8a2b Upgrade bundled mimalloc to v2.1.2 2023-06-29 12:23:39 +09:00
Rui Ueyama
1b1a142a89 Upgrade bundled OneTBB to version 2021.9.0 2023-06-29 12:21:58 +09:00
Rui Ueyama
dcfe76bc80 Format 2023-06-29 12:17:21 +09:00
Rui Ueyama
d4d93d7fb7 Format 2023-06-19 12:35:20 +09:00
Rui Ueyama
ebd780e8ba Support R_PPC64_REL32
Fixes https://github.com/rui314/mold/issues/1049
2023-06-17 19:00:55 +09:00
Rui Ueyama
65bd36ba40 Generate a PT_OPENBSD_RANDOMIZE segment 2023-06-14 14:08:40 +09:00
Rui Ueyama
bc86ab514f Add -nopie as an alias for -no-pie
OpenBSD seems to be using an alternative spelling for this option.
2023-06-14 09:55:55 +08:00
Rui Ueyama
8ee7773260 Do not use mimalloc on OpenBSD
It seems like mimalloc doesn't work on OpenBSD at all.
2023-06-13 11:10:04 +08:00
Rui Ueyama
e011889436 Fix build on systems without ucontext.h in libc
Upstream patch:
ea4e6156a2
2023-06-05 11:52:56 +09:00
Rui Ueyama
16e22ec067 Handle "amd64" as a synonym for "x86_64"
OpenBSD's `uname` returns `amd64` instead of `x86_64`.
2023-06-04 15:28:44 +09:00
Rui Ueyama
d2ee47a4ac Print out a hint about older versions of litbb
https://github.com/rui314/mold/issues/1031
2023-06-04 15:28:44 +09:00