1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-21 18:08:01 +03:00
Commit Graph

2979 Commits

Author SHA1 Message Date
Rui Ueyama
19b1b0252c [Mach-O] Dump export table entries 2021-10-02 17:48:52 +09:00
Rui Ueyama
ebc8a68cb3 [ELF] Rename variables 2021-10-02 14:12:42 +09:00
Rui Ueyama
4a65748851 [Mach-O] Refactor 2021-10-02 14:02:42 +09:00
Rui Ueyama
56b7c42fae Refactor 2021-10-01 00:35:42 +09:00
Rui Ueyama
52c7793326 Move archive-file.cc out of elf directory 2021-09-30 23:13:27 +09:00
Rui Ueyama
7c9205f68d Move memory-mapped-file.cc out of elf directory
So that we can use the class from mold/mach-o.
2021-09-30 23:13:22 +09:00
Rui Ueyama
ffd34678e0 [ELF] Fix "mold-wrapper.so is not found" error 2021-09-30 15:01:55 +09:00
Rui Ueyama
a6c75e969d [ELF] Refactor 2021-09-30 00:10:56 +09:00
Rui Ueyama
a2c9d0ad4d [ELF] Reduce the size of Subsection struct 2021-09-29 16:30:04 +09:00
Rui Ueyama
aa46df7735 [ELF] s/SectionFragment/Subsection/g 2021-09-29 16:18:41 +09:00
Rui Ueyama
d123009460 [Mach-O] Add a test 2021-09-28 21:55:37 +09:00
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