• Welcome to Computer Association of SIUE - Forums.
 

Kernel Booter Help (IA-32 Knowledge Required)

Started by William Grim, 2005-07-20T05:32:18-05:00 (Wednesday)

Previous topic - Next topic

William Grim

I have a technical question regarding some code of mine  at this URL.  If you untar that, go into kernel/, type 'make' and then check the hex dump of kernel/boot/boot, you will notice that the object's text segment is located at address 0x1000.  However, I need the text segment to begin at location 0x0.

When I do the placement of the 0xAA55 boot signature at location 0x510, it technically does it correctly.  It's just that it has that same problem where the original text segment is beginning at 0x1000.

I'm using GNU/binutils 2.15.

Any of you have any idea what is happening?  ANY help would be appreciated.
William Grim
IT Associate, Morgan Stanley

William Grim

Well, I figured out my problem was that ELF headers were being tagged onto the front of my binary.  I just had to modify my linking of the object so that it output a pure binary with no extra headers.
William Grim
IT Associate, Morgan Stanley