LD linker code offset problem
Hey i need help with the LD linker. I am trying to compile a os image and the linker keeps putting the windows dos headder on the top of the file and setting the code offset to 400h. IS there any way to remove the header so the code starts at offset 0h in the image file?
Disassembly of File: C:\Documents and Settings\Chris\Desktop\Kernel\ALISKERNEL\Kernel Build\a.exe
//right here is the problem Code Offset = 00000400
//this needs to be 0
Code Offset = 00000400, Code Size = 00000A00
Data Offset = 000011A0, Data Size = 00000200
Number of Objects = 0004 (dec), Imagebase = 00400000h
Object01: .text RVA: FFC08000 Offset: 00000400 Size: 00000A00 Flags: 60000020
Object02: .debug RVA: FFC09000 Offset: 00000E00 Size: 00000200 Flags: 42000040
Object03: .data RVA: FFC091A0 Offset: 000011A0 Size: 00000200 Flags: C0000040
Object04: .bss RVA: FFC091B0 Offset: 00000000 Size: 00000000 Flags: C0000080
//also the Entry Point needs to be 00008000
Program Entry Point = 00008820
:00008000 55 push ebp
Any help would be great. realley dont feel like writing my own linker. probley should though. Nothing is a good for what you want to do than somthing you did yourself.
|