4 ms·
Do whatever libc's getauxval does to find the aux vector. Then env array is just below it, and the argv is below that iirc. EDIT: I agree it's ugly, I'm just n
by ithkuil 3y ago
Do whatever libc's getauxval does to find the aux vector. Then env array is just below it, and the argv is below that iirc.
EDIT: I agree it's ugly, I'm just not sure if is fair to call it brittle
- amluto 3y agoThe “whatever” is that glibc is the implementation of the ELF entry point. It remembers where the data structure is.