Rui Ueyama
Rui Ueyama
Re: dynamic linker I think we should seriously consider writing our own dynamic linker and statically link that dynamic linker to main executables, so that we don't need to depend...
Maybe we can just use musl?
Many Linux systems use non-glibc libc's (e.g. Android), so it should be viable. It feels a bit crazy to write our own dynamic linker, but writing a GNU-compatible static linker...
@Alcaro Thanks for the info! I didn't know that. The format of base relocation information in PE/COFF is indeed designed to make page-in relocation easy. @danobi Yeah, that's what I...
Thanks for the link. That's very interesting. I believe Android is one of the best platforms to implement the page-in linking for various reasons: 1. It's Linux-based but Google controls...
The above points also apply to ChromeOS as it's controlled by a single company and often runs on memory-constrained machines.
userfaultfd wouldn't work because application developers have to be aware that there's a thread that handles page faults. That's not compatible with many applications. For example, if you call `fork(2)`,...
We want to support this flag.
@jcelerier I believe mold currently ignores `--allow-shlib-undefined`, so it's not supported, but it shouldn't cause a build failure. Did you get any error when you tried to build your program...
I don't know the cause of the failure, but armv7l is a 32-bit ARM processor, and mold isn't tested well on 32-bit hosts. I'll take a look when I have...