1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 02:20:51 +03:00
Commit Graph

2768 Commits

Author SHA1 Message Date
Rui Ueyama
cc5cd031ab [Mach-O] Use sysctl -n hw.logicalcpu instead of nproc no macOS
`nproc` is not a valid command on macOS.
2021-09-28 21:20:05 +09:00
Rui Ueyama
e3d47ddafa [Mach-O] Do not try to use ccache for brew
The brew command, by design, will never use ccache.
2021-09-28 21:15:00 +09:00
Rui Ueyama
4f69f53cae [Mach-O] Make GitHub actions macOS rules to use ccache 2021-09-28 21:12:58 +09:00
Rui Ueyama
99fba5995a [Mach-O] Make GitHub CI to run make test on macOS 2021-09-28 18:49:11 +09:00
Rui Ueyama
9d805f5d26 [Mach-O] Make make test to work on macOS 2021-09-28 18:47:24 +09:00
Rui Ueyama
5e3f526bc1 Refactor 2021-09-28 16:40:07 +09:00
Rui Ueyama
c74b2197f9 Refactor 2021-09-28 16:24:41 +09:00
Rui Ueyama
dad3306d1f [Mach-O] Set up macOS github actions 2021-09-28 15:44:25 +09:00
Rui Ueyama
2844f1f573 [ELF] Refactor 2021-09-28 13:23:58 +09:00
Rui Ueyama
bc2bd0e26a [ELF] Refactor 2021-09-27 23:01:51 +09:00
Rui Ueyama
3d95b0e1d4 [ELF] Refactor 2021-09-27 21:44:39 +09:00
Rui Ueyama
5bd9edeeed Bump mold version to 0.9.6 2021-09-27 20:38:18 +09:00
Rui Ueyama
c40b9aea5f [Mach-O] Generalize perf.cc so that we can use the feature in mold/mach-o 2021-09-27 18:14:56 +09:00
Rui Ueyama
1fb421d82c Fix a bug for a very long pathname 2021-09-27 17:38:55 +09:00
Rui Ueyama
541399911d [ELF] Refactor 2021-09-26 19:55:46 +09:00
Rui Ueyama
67990f775b [ELF] Refactor 2021-09-26 18:50:03 +09:00
Rui Ueyama
58f1fbadc3 [ELF] Refactor 2021-09-26 12:43:51 +09:00
Rui Ueyama
6536663130 [ELF] Fix comment 2021-09-26 12:43:39 +09:00
Rui Ueyama
774fc0f340 [ELF] Remove an extra space in an error message 2021-09-26 12:43:39 +09:00
Rui Ueyama
a5d02b18c7 Refactor 2021-09-25 21:47:09 +09:00
Rui Ueyama
e4861bb3e1 [ELF] Fix "recompile with -fPIC" error
mold used to emit a spurious "recompile with -fPIC" error when creating
a position-dependent executable. This is because we alwyas create
dynamic relocations for importe symbols. If the relocated place is
read-only, we can't apply a dynamic relocation, and we printed out the
error message.

This patch fixes the issue by creating copy relocations and PLTs for
such symbols.

Fixes https://github.com/rui314/mold/issues/116
2021-09-25 18:13:26 +09:00
Rui Ueyama
d11ecda08c [Mach-O] wip 2021-09-23 14:38:37 +09:00
Rui Ueyama
23ab97351f Update README 2021-09-23 14:32:22 +09:00
Rui Ueyama
326831837d [Mach-O] wip 2021-09-23 14:31:04 +09:00
Rui Ueyama
bdd458241b [Mach-O] wip 2021-09-21 21:48:32 +09:00
Rui Ueyama
fc2ee0d0b0 [Mach-O] wip 2021-09-21 19:32:48 +09:00
Rui Ueyama
c002284cd8 [Mach-O] wip 2021-09-21 19:11:34 +09:00
Rui Ueyama
56fb6ba443 [Mach-O] wip 2021-09-21 18:56:31 +09:00
Rui Ueyama
c66bd302bd [Mach-O] Programmatically construct __stubs, __stub_helper and __la_symbol_ptr 2021-09-21 17:19:44 +09:00
Rui Ueyama
17c67418f6 [Mach-O] wip 2021-09-21 17:16:42 +09:00
Rui Ueyama
935194d5ae [Mach-O] wip 2021-09-21 15:57:23 +09:00
Rui Ueyama
02ce171aba [Mach-O] wip 2021-09-21 14:53:38 +09:00
Rui Ueyama
a52179d090 [Mach-O] wip 2021-09-21 14:51:29 +09:00
Rui Ueyama
1390a7f622 [Mach-O] wip 2021-09-21 14:47:09 +09:00
Rui Ueyama
a05d073018 [Mach-O] wip 2021-09-21 14:32:54 +09:00
Rui Ueyama
c0daab6075 [Mach-O] wip 2021-09-21 12:55:09 +09:00
Rui Ueyama
18fb0d5d3f [Mach-O] Programmatically construct symtab 2021-09-20 22:04:41 +09:00
Rui Ueyama
5f5139ad6c [Mach-O] wip 2021-09-20 19:41:03 +09:00
Rui Ueyama
046324b64c Simplify 2021-09-20 17:59:37 +09:00
Rui Ueyama
48c16571d1 Simplify 2021-09-20 17:27:23 +09:00
Rui Ueyama
1127061d54 Simplify 2021-09-20 16:36:50 +09:00
Rui Ueyama
fa2f54b358 Fix indentation 2021-09-20 16:31:33 +09:00
Rui Ueyama
afbc46e135 Simplify 2021-09-20 12:39:34 +09:00
Rui Ueyama
e3cebd981e [Mach-O] wip 2021-09-19 20:28:45 +09:00
Rui Ueyama
9881a61cb3 [Mach-O] Programmatically construct export trie 2021-09-19 20:18:34 +09:00
Rui Ueyama
43e513d7af [Mach-O] wip 2021-09-19 19:17:12 +09:00
Rui Ueyama
08f049434f [Mach-O] wip 2021-09-19 16:21:08 +09:00
Rui Ueyama
a71f70708c [Mach-O] wip 2021-09-19 14:35:45 +09:00
Rui Ueyama
7f671f5390 [Mach-O] Programmatically construct lazy bind instructions 2021-09-19 14:13:01 +09:00
Rui Ueyama
d84b813cb3 [Mach-O] Programmatically construct bind instructions 2021-09-19 13:37:56 +09:00