Hi Kevin..

On Thu, Feb 14, 2013 at 8:33 PM, Kevin Wilson <wkev...@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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to