Rui Ueyama
7b251e3d7b
[ELF] Improve .init and .fini detection logic
2021-10-05 11:05:36 +09:00
Rui Ueyama
30b45d2263
[ELF] Rename Symbol<E>::intern
-> intern
2021-10-05 08:31:28 +09:00
Rui Ueyama
3fc9c6c3ed
[ELF] Rename section piece -> subsection
2021-10-05 08:22:38 +09:00
Rui Ueyama
97ff050396
Use s
suffix
2021-10-04 15:41:49 +09:00
Rui Ueyama
e89af3ee94
Use sv
suffix
2021-10-04 15:28:02 +09:00
Rui Ueyama
77069156cb
[ELF] Rename OutputChunk Chunk
2021-10-04 10:16:24 +09:00
Rui Ueyama
0c42930d55
[Mach-O] Add -o option
2021-10-03 18:17:59 +09:00
Rui Ueyama
928c39937a
Refactor
2021-10-03 16:26:31 +09:00
Rui Ueyama
001cf042d9
Refactor
2021-10-03 16:01:59 +09:00
Rui Ueyama
fcd10254b7
Rename variables
2021-10-03 16:01:59 +09:00
Rui Ueyama
bc3f556055
Make get_file_type() to recognize Mach-O file types
2021-10-03 13:44:45 +09:00
Rui Ueyama
0426ec6d2f
[Mach-O] Simplify
2021-10-03 12:01:17 +09:00
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