Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
i'm trying to write loader for coff-go32 format.
in the linker script i specify 3 sections.but when i read coff header,it shows that there are 4 sections.
here are commands for compiling and linking c and asm files.
the 4th section added is .comment section.
what does this section contain.is it added by default because in limker script there is nothing about .comment section.
nasm adds comments to its objects, basically saying what something like 'nasm 0.98' or something. you can strip it out if you want. it wont be loaded either.
here are steps which i'll follow to load statically linked coff kernel.
1) i'll get no.of sections from coff file header
2)then i'll read initial entry point from a.out file header
3)by using the "section offset" fields,i'll load .code,.data and .bss sections to desired physical addresses(pointed to by "physical addresses of sections" field in section header.
4)then i'll jump to initial entry point obtained from a.out header.
are these steps correct to load a statically linked coff kernel.