4 ms·
> Both [msyscall and pinsyscall] can only be invoked once by a given process, which is done by the dynamic linker. How are/were static executables handled? I’
by philsnow 3y ago
> Both [msyscall and pinsyscall] can only be invoked once by a given process, which is done by the dynamic linker.
How are/were static executables handled? I’m a little fuzzy on how execve notices that a given executable is dynamic (and needs ld.so to run it) or static (in which case.. it just jumps to the _start symbol?). If the dynamic linker isn’t involved, what calls msyscall/pinsyscall?
- philsnow 3y agoAh, found a good discussion of how it works in Linux https://eli.thegreenplace.net/2012/08/13/how-statically-linked-programs-run-on-linux https://eli.thegreenplace.net/2012/08/13/how-statically-link... Is it materially different in openbsd?