- Aug 02, 2020
-
-
Jeremy Soller authored
-
- Jul 19, 2020
-
-
Ahmed Abd El Mawgood authored
It is fact that ld.so has libc statially linked into it. Normally we wouldn't need ld.so functionality once the program is finalyl loaded, but with the next few patches, we will have dlopen which will reuse the same ld.so functionality. The problem is that it seams that huge part of the code is possible not referntially transparent. That is, it is not impossible that some of the functions have internals states. So when using the struct Linker that is initialized by ld.so's copy of libc. we must access it using the same copy even if both copies are identical. For example in dlopen if you do linker.load_library(..). That would segfault because it is using the function from libc not ld.so So I don't truly undestand why should this be needed, but after long hours of being stuck I thought maybe.. maybe that is the issue and indeed it turned out to be so.
-
Ahmed Abd El Mawgood authored
-
- Jun 13, 2020
-
-
Ahmed Abd El Mawgood authored
This patch implements access function for both redox and linux and makes sure that neither access errno variable
-
This reverts commit d9bacaec.
-
- Jun 07, 2020
-
-
Jeremy Soller authored
-
- Jun 03, 2020
-
-
Ahmed Abd El Mawgood authored
-
- Jun 01, 2020
-
-
Ahmed Abd El Mawgood authored
During early parts of ld.so, errno and other thread local variables are not yet initialized so we cannot use function (such as unistd::access) that depends on such thread local variables (errno). For this reason this patch creates small wrapper around the syscall that doesn't not touch the errno
-
- Apr 13, 2020
-
-
Ahmed Abd El Mawgood authored
-
- Jul 07, 2019
-
-
Jeremy Soller authored
-
- Jul 01, 2019
-
-
Jeremy Soller authored
-
- Apr 14, 2019
-
-
Jeremy Soller authored
-
- Apr 13, 2019
-
-
Jeremy Soller authored
-