Re: start address of the code segment of the program on x86-64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kevin..

On Thu, Feb 14, 2013 at 8:33 PM, Kevin Wilson <wkevils@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux