1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-15 14:36:25 +03:00
Commit Graph

369 Commits

Author SHA1 Message Date
Rui Ueyama
275a578204 Embed GIT commit hash to binary 2021-03-23 21:15:32 +09:00
Rui Ueyama
4485de811a Do not create a copy relcations against a protected symbol 2021-03-23 15:21:59 +09:00
Rui Ueyama
16cd35999f wip 2021-03-23 14:46:59 +09:00
Rui Ueyama
031e978bc6 Do not emit .got, .got.plt or .rela.got if empty 2021-03-23 11:02:13 +09:00
Rui Ueyama
f56215aae1 wip 2021-03-22 15:33:39 +09:00
Rui Ueyama
a1d8b56c04 Support GOT64, GOTPCREL64 and GOTPC64 relocations 2021-03-22 12:17:03 +09:00
Rui Ueyama
69afad0e29 Handle invalid sections in debug info sectionsy 2021-03-21 13:36:55 +09:00
Rui Ueyama
7d07b48c92 Support R_X86_64_SIZE32 and SIZE64 relocations 2021-03-20 12:35:51 +09:00
Rui Ueyama
1131ea7512 Add "-z nocopyreloc" 2021-03-18 19:54:56 +09:00
Rui Ueyama
b96155dafa Support TLSDESC 2021-03-18 16:43:47 +09:00
Rui Ueyama
614ddb309a Add a test 2021-03-17 22:56:04 +09:00
Rui Ueyama
726a3a59a6 wip 2021-03-17 22:04:17 +09:00
Rui Ueyama
bcfb96308f Support glob pattern in version script 2021-03-17 16:56:37 +09:00
Rui Ueyama
912b99b7ec wip 2021-03-16 12:52:39 +09:00
Rui Ueyama
5671de698b Relax indirect call or jump with GOTPCRELX relocation 2021-03-16 12:42:05 +09:00
Rui Ueyama
c3bbb2c094 Add -filter and -auxiliary 2021-03-16 00:34:09 +09:00
Rui Ueyama
4bdc20986f Relax R_X86_64_GOTPCRELX_REX against MOV instruction to LEA 2021-03-15 20:32:44 +09:00
Rui Ueyama
96075a3e2d wip 2021-03-14 16:36:56 +09:00
Rui Ueyama
b4dda46b2c Add "-z defs" and -no-undefined option 2021-03-13 21:46:09 +09:00
Rui Ueyama
9d52727cd4 Ignore .note.gnu.property for now 2021-03-13 21:29:02 +09:00
Rui Ueyama
be8a9fabc8 Include .dynamic into PT_GNU_RELRO 2021-03-13 13:21:31 +09:00
Rui Ueyama
7d1e40b79b Emit PTGNU_RELRO segment 2021-03-12 20:16:52 +09:00
Rui Ueyama
e8e14e4e0d Add -z execstack and -z noexecstack 2021-03-12 18:09:15 +09:00
Rui Ueyama
fefa083188 Add -push-state and -pop-state 2021-03-12 17:37:39 +09:00
Rui Ueyama
5f42971325 Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
Rui Ueyama
253c946629 wip 2021-03-12 14:33:50 +09:00
Rui Ueyama
c074f8ade6 wip 2021-03-11 17:20:59 +09:00
Rui Ueyama
5ae09ee9d3 Add -build-id=HEXVALUE 2021-03-08 21:05:18 +09:00
Rui Ueyama
b53392c2f7 Add -exclude-libs 2021-03-08 17:24:51 +09:00
Rui Ueyama
7acdcfbcb2 wip 2021-03-08 14:37:13 +09:00
Rui Ueyama
ddd42daf53 Write .gnu.version_d 2021-03-07 15:41:45 +09:00
Rui Ueyama
6a34935cc9 wip 2021-03-05 19:46:12 +09:00
Rui Ueyama
41f8cba844 Do not emit .interp for DSO 2021-03-05 13:57:00 +09:00
Rui Ueyama
791465b832 wip 2021-03-04 20:23:27 +09:00
Rui Ueyama
611910ad37 wip 2021-03-04 14:33:40 +09:00
Rui Ueyama
cc9c23e42b wip 2021-03-04 14:09:56 +09:00
Rui Ueyama
713c71ac1b wip 2021-03-02 22:57:15 +09:00
Rui Ueyama
453104c5b4 Add -Bsymbolic-functions 2021-03-02 22:08:06 +09:00
Rui Ueyama
bc0379ecd4 Add -Bsymbolic 2021-03-02 21:47:19 +09:00
Rui Ueyama
0d56ca6fc6 wip 2021-03-02 20:24:31 +09:00
Rui Ueyama
98db1741c4 Guarantee function pointer equivalence 2021-03-01 23:42:13 +09:00
Rui Ueyama
a3df45cb86 wip 2021-03-01 22:04:42 +09:00
Rui Ueyama
867305ea36 wip 2021-03-01 16:28:16 +09:00
Rui Ueyama
231112ba7b Add -v and --version 2021-03-01 14:13:17 +09:00
Rui Ueyama
ac8e24a683 Add -soname 2021-03-01 13:18:51 +09:00
Rui Ueyama
5d1e0c803c Add -init and -fini 2021-03-01 12:52:45 +09:00
Rui Ueyama
7f4da62ee9 Fix DT_INIT and DT_FINI 2021-03-01 12:45:13 +09:00
Rui Ueyama
e0eeb404dc Emit read-only copyrel to .bss.rel.ro 2021-02-28 23:26:24 +09:00
Rui Ueyama
c15957c02a Demangle by default 2021-02-28 21:11:51 +09:00
Rui Ueyama
12abde58e6 Add --script and -T 2021-02-28 15:24:36 +09:00
Rui Ueyama
d0c7c10ae0 wip 2021-02-28 01:04:26 +09:00
Rui Ueyama
99bbcb3614 wip 2021-02-28 00:56:29 +09:00
Rui Ueyama
ec3f54f544 Support compressed debug sections 2021-02-27 18:28:44 +09:00
Rui Ueyama
c8a931d89c wip 2021-02-26 22:09:04 +09:00
Rui Ueyama
a1bbbd3b1c Create .plt.got 2021-02-26 21:27:01 +09:00
Rui Ueyama
4c2bf53779 wip 2021-02-26 17:52:22 +09:00
Rui Ueyama
66307818ee Support -shared 2021-02-25 22:11:04 +09:00
Rui Ueyama
1d90a5ad5c wip 2021-02-25 20:46:43 +09:00
Rui Ueyama
f9ecf89b16 wip 2021-02-25 20:27:59 +09:00
Rui Ueyama
c118086d29 wip 2021-02-25 17:01:59 +09:00
Rui Ueyama
cd2205d994 wip 2021-02-22 21:39:12 +09:00
Rui Ueyama
09b4a8233f wip 2021-02-22 15:10:30 +09:00
Rui Ueyama
fd6de2d258 Add --undefined 2021-02-21 17:17:41 +09:00
Rui Ueyama
fc84d405c6 wip 2021-02-21 15:51:56 +09:00
Rui Ueyama
d8381f7e74 Export symbols from executables 2021-02-21 00:24:22 +09:00
Rui Ueyama
f3c66028b4 wip 2021-02-20 23:48:27 +09:00
Rui Ueyama
cc4c2e49e5 Fix -hash-style=gnu 2021-02-12 18:02:09 +09:00
Rui Ueyama
80e79114f7 wip 2021-02-10 14:21:41 +09:00
Rui Ueyama
4d40cf6888 Add -build-id={md5,sha1,sha256,uuid} 2021-01-26 20:03:30 +09:00
Rui Ueyama
c1627608fc Add --allow-multiple-definition 2021-01-26 19:12:16 +09:00
Rui Ueyama
4efb48d3ee Remove symbols referencing dead sections from symtab 2021-01-25 17:09:48 +09:00
Rui Ueyama
b1b253cacb wip 2021-01-25 13:16:27 +09:00
Rui Ueyama
1890feec8d wip 2021-01-25 13:16:26 +09:00
Rui Ueyama
3489a464c6 wip 2021-01-25 12:05:12 +09:00
Rui Ueyama
6ec9cb9bfd wip 2021-01-24 21:15:59 +09:00
Rui Ueyama
1bbd8fdddc Implement --gc-sections 2021-01-24 19:47:34 +09:00
Rui Ueyama
532cb962db temporary 2021-01-21 09:58:46 +09:00
Rui Ueyama
198c4e279d temporary 2021-01-20 21:08:37 +09:00
Rui Ueyama
7e1fb026f7 Add PT_NOTE 2021-01-16 15:16:05 +09:00
Rui Ueyama
183f72e067 temporary 2021-01-14 16:25:54 +09:00
Rui Ueyama
0c6fa7236b temporary 2021-01-14 15:13:03 +09:00
Rui Ueyama
cf85630b5d temporary 2021-01-14 14:08:34 +09:00
Rui Ueyama
a7b2f1d328 temporary 2021-01-10 17:39:14 +09:00
Rui Ueyama
36825fe3fe Check for relocation overflow 2021-01-08 21:08:55 +09:00
Rui Ueyama
8a692c7fc6 temporary 2020-12-22 16:33:44 +09:00
Rui Ueyama
ed93e6c6e4 Support response files 2020-12-20 16:17:34 +09:00
Rui Ueyama
8b55a0ebff Add --strip-all 2020-12-20 10:27:01 +09:00
Rui Ueyama
0bbc34ed9e Add --discard-all 2020-12-20 10:20:24 +09:00
Rui Ueyama
221804a046 Revert "Paralell file open"
This reverts commit df8eda9d81.
2020-12-19 18:31:46 +09:00
Rui Ueyama
df8eda9d81 Paralell file open 2020-12-19 18:31:37 +09:00
Rui Ueyama
9b66ca02a7 temporary 2020-12-18 15:13:29 +09:00
Rui Ueyama
4f4d903b41 temporary 2020-12-17 20:22:14 +09:00
Rui Ueyama
0fb22932d5 temporary 2020-12-17 08:01:43 +09:00
Rui Ueyama
cb5d50d22c temporary 2020-12-14 10:41:51 +09:00
Rui Ueyama
695f4da80a temporary 2020-12-13 22:42:20 +09:00
Rui Ueyama
d322939443 temporary 2020-12-13 18:46:07 +09:00
Rui Ueyama
f4e260fdee temporary 2020-12-13 18:32:42 +09:00
Rui Ueyama
7b7b9d7f6b temporary 2020-12-12 12:30:22 +09:00
Rui Ueyama
cf22ce3f9a temporary 2020-12-11 22:15:42 +09:00
Rui Ueyama
40c254507b temporary 2020-12-07 16:19:56 +09:00
Rui Ueyama
d4322df01a temporary 2020-12-07 16:12:19 +09:00
Rui Ueyama
8b2493b3a9 temporary 2020-12-07 15:50:13 +09:00
Rui Ueyama
e99ce26374 temporary 2020-12-07 15:22:19 +09:00
Rui Ueyama
4d0608d4ca rpath 2020-11-30 17:57:58 +09:00
Rui Ueyama
c20b6622a6 as-needed 2020-11-30 16:43:47 +09:00
Rui Ueyama
4f681d9f8f temporary 2020-11-29 16:37:14 +09:00
Rui Ueyama
e6825f54c2 temporary 2020-11-29 16:25:31 +09:00
Rui Ueyama
5d625b1ba0 temporary 2020-11-29 13:23:57 +09:00
Rui Ueyama
0fd08fef83 temporary 2020-11-27 15:31:20 +09:00
Rui Ueyama
56b01e0bb9 temporary 2020-11-26 19:09:47 +09:00
Rui Ueyama
cd160271d8 temporary 2020-11-25 21:12:00 +09:00
Rui Ueyama
f053716009 DSO symbol aliases 2020-11-25 20:55:25 +09:00
Rui Ueyama
278f93d26f temporary 2020-11-25 20:18:19 +09:00
Rui Ueyama
d6716b17b2 temporary 2020-11-25 19:07:52 +09:00
Rui Ueyama
a61911b3d2 temporary 2020-11-25 16:23:40 +09:00
Rui Ueyama
caa9fcd8cb temporary 2020-11-25 13:52:31 +09:00
Rui Ueyama
e17619b960 temporary 2020-11-25 13:29:05 +09:00
Rui Ueyama
e8fceef0e8 temporary 2020-11-24 22:54:21 +09:00
Rui Ueyama
5d390a214a temporary 2020-11-24 21:21:34 +09:00
Rui Ueyama
e5327481cf temporary 2020-11-21 11:58:40 +09:00
Rui Ueyama
73ec145d65 temporary 2020-11-20 19:38:41 +09:00
Rui Ueyama
49074602c2 temporary 2020-11-20 15:35:47 +09:00
Rui Ueyama
5e14f2394f temporary 2020-11-20 14:53:52 +09:00
Rui Ueyama
a5bf19ee06 temporary 2020-11-20 10:09:40 +09:00
Rui Ueyama
6511d0965f temporary 2020-11-19 18:03:26 +09:00
Rui Ueyama
8f5ec2b5ca temporary 2020-11-19 14:09:30 +09:00
Rui Ueyama
fde6b02df6 Add linker_script.cc 2020-11-19 09:31:42 +09:00
Rui Ueyama
ad83dcbe02 temporary 2020-11-18 22:52:08 +09:00
Rui Ueyama
c4612a04e2 temporary 2020-11-18 22:31:02 +09:00
Rui Ueyama
ad9c3e598b temporary 2020-11-18 21:59:03 +09:00
Rui Ueyama
75b5e61af6 Dyanmically-linked "hello world" program worked 2020-11-16 13:50:17 +09:00
Rui Ueyama
9153cb7546 temporary 2020-11-16 13:37:13 +09:00
Rui Ueyama
242d042c20 temporary 2020-11-16 11:48:28 +09:00
Rui Ueyama
7b1791fdb0 temporary 2020-11-15 17:01:52 +09:00
Rui Ueyama
3b2b79d3ac temporary 2020-11-15 16:41:34 +09:00
Rui Ueyama
e40a128d97 temporary 2020-11-13 20:16:55 +09:00
Rui Ueyama
df3498769b temporary 2020-11-13 13:39:29 +09:00
Rui Ueyama
5bb0439bff temporary 2020-11-13 13:13:54 +09:00
Rui Ueyama
3f0005ac95 temporary 2020-11-13 12:34:00 +09:00
Rui Ueyama
8e38fa3477 temporary 2020-11-13 12:30:27 +09:00
Rui Ueyama
8c9d220334 temporary 2020-11-13 10:33:41 +09:00
Rui Ueyama
2d419448da temporary 2020-11-13 08:39:46 +09:00
Rui Ueyama
6e7a23d317 temporary 2020-11-13 00:02:33 +09:00
Rui Ueyama
9684ea349a temporary 2020-11-12 21:08:55 +09:00
Rui Ueyama
5899278828 temporary 2020-11-12 16:01:26 +09:00
Rui Ueyama
0eb89dd29c temporary 2020-11-12 15:38:32 +09:00
Rui Ueyama
5a57684b84 temporary 2020-11-12 14:40:39 +09:00
Rui Ueyama
c3ace840d8 temporary 2020-11-12 13:36:04 +09:00
Rui Ueyama
9c08415553 temporary 2020-11-12 13:19:19 +09:00
Rui Ueyama
781371f242 temporary 2020-11-12 13:15:29 +09:00
Rui Ueyama
bdb275eb49 temporary 2020-11-12 12:13:25 +09:00
Rui Ueyama
a605d871b4 temporary 2020-11-12 12:01:06 +09:00
Rui Ueyama
fdada6a0af temporary 2020-11-12 11:28:26 +09:00
Rui Ueyama
dfb5ff8b15 temporary 2020-11-11 21:42:30 +09:00
Rui Ueyama
dddc5f8959 temporary 2020-11-07 19:23:14 +09:00
Rui Ueyama
d29b17cf0a temporary 2020-11-07 18:19:28 +09:00
Rui Ueyama
b2b4f16350 temporary 2020-11-07 18:09:01 +09:00
Rui Ueyama
008783851a temporary 2020-11-04 16:54:53 +09:00
Rui Ueyama
0e2e52f825 temporary 2020-11-04 15:39:31 +09:00
Rui Ueyama
73f90920af temporary 2020-11-04 10:43:44 +09:00
Rui Ueyama
d2e5d9db03 temporary 2020-11-03 22:57:37 +09:00
Rui Ueyama
09ad31475a temporary 2020-10-26 21:37:49 +09:00
Rui Ueyama
4b1f2ae8f9 temporary 2020-10-26 17:40:37 +09:00
Rui Ueyama
b17862f822 Rename chibild mold 2020-10-20 15:04:18 +09:00
Rui Ueyama
ae0ee2630d temporary 2020-10-20 15:04:18 +09:00
Rui Ueyama
5fa3d0e975 temporary 2020-10-20 15:04:18 +09:00
Rui Ueyama
38b7a31671 temporary 2020-10-20 15:04:18 +09:00
Rui Ueyama
bf00d9cb0d temporary 2020-10-20 15:04:18 +09:00
Rui Ueyama
4ea8f993ea Add an empty project 2020-10-20 15:04:18 +09:00