mirror of https://git.musl-libc.org/git/musl
Browse Source
this is the analog of commitmaster1c84c99913for static linking. unlike with dynamic linking, we don't have symbolic lookup to use as a barrier. use a dummy (target-agnostic) degenerate inline asm fragment instead. this technique has precedent in commit05ac345f89where it's used for explicit_bzero. if it proves problematic in any way, loading the address of the stage 2 function from a pointer object whose address leaks to kernelspace during thread pointer init could be used as an even stronger barrier.
1 changed files with 13 additions and 0 deletions
Loading…
Reference in new issue