start address of the code segment of the program on x86-64
Mulyadi Santosa
mulyadi.santosa at gmail.com
Thu Feb 14 22:19:15 EST 2013
Hi Kevin..
On Thu, Feb 14, 2013 at 8:33 PM, Kevin Wilson <wkevils at gmail.com> wrote:
> Is there a place in the kernel code where I can add a printk on a
> x86_64 machine to view the code segment
> start ? How can it be done ?
I think, you can do that in user space by using "readelf" instead.
However, I agree with Valdis that ASLR might change the situation. BUT
AFAIK, I guess start of code segment will stay unless your binary is
compiled as PIE (Position Independent Executable).
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
More information about the Kernelnewbies
mailing list