mirror of https://git.musl-libc.org/git/musl
Browse Source
this code path potentially runs prior to stage 3, with thread-local storgae and thus errno unavailable. for this reason, commitmaster63c67053a3removed the call to the mprotect function and replaced it with a __syscall operation that bypasses errno. however, this left the error message printing (which is only reachable in stage 3 and thus can safely access errno) with no error code for the %m format specifier to use. introduce a new set_errno function pointer that points to a no-op until stage 3. this is analogous to the error function pointer introduced in commitd16d7b1099.
1 changed files with 15 additions and 0 deletions
Loading…
Reference in new issue