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

2013-02-14 Thread Kevin Wilson
Hi, 0×08048000 address is the start address of the code segment of a program in on x86-32. What is the start address of the code segment of the program on x86-64 ? 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

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

2013-02-14 Thread Valdis . Kletnieks
On Thu, 14 Feb 2013 15:33:48 +0200, Kevin Wilson said: Hi, 0x08048000 address is the start address of the code segment of a program in on x86-32. More likely, it was the start address of *one particular run* of the program. In most kernel configurations, there's something called Address

exception before start_idt

2013-02-14 Thread horseriver
hi:) i am debuging my kernel . Before the idt_setup of protect-mode , Is it normal that one page_fault exception occures? As I step into this instruction : lss stack_start,%esp , vm fire an page_fault exception, But at the intr vector check step, as the intr-table has not been

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

2013-02-14 Thread Mulyadi Santosa
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,