It appears that there is no information in the executable about where vdso should be. Assuming that I can control how the program is compiled, linked and written, how can I force it to be at the address I want it to be?
Asked
Active
Viewed 159 times
1
-
You probably can't, and I don't see why you want that. How are you compiling & linking your binary? Do you know about [ASLR](https://en.wikipedia.org/wiki/Address_space_layout_randomization). – Basile Starynkevitch Apr 15 '16 at 16:08
-
I know about ASLR, and I know vdso address is randomized. But I really need to have that memory. I can give it some space somewhere else. – JKS Apr 15 '16 at 16:15
-
Then you might need to patch your kernel. Good luck! – Basile Starynkevitch Apr 15 '16 at 16:18
-
Ehhh i hoped it won't come to this... – JKS Apr 15 '16 at 16:19
-
Did you read [vdso(7)](http://man7.org/linux/man-pages/man7/vdso.7.html) ? – Basile Starynkevitch Apr 15 '16 at 16:21