|
2011/2/5-19 [Computer/SW/Languages/C_Cplusplus] UID:54027 Activity:nil |
2/4 random C programming/linker fu question. If I have int main() { printf("%s is at this adddr %p\n", "strlen", strlen); } and soda's /proc/sys/kernel/randomize_va_space is 2 (eg; on) why is strlen (or any other libc fn) at the same address every time? \_ I don't pretend to actually know the right answer to this, but could it have something to do with shared libraries? \_ i thought tho the whole point was to randomize the addresses of the shared lib fns so that people couldn't r2libc. |