Page 1 of 1

how can I objdump the kernel.bin for bran's OS

Posted: Mon Sep 08, 2008 3:22 am
by leeygang
I use DJGPP to build the bran's OS successfully.
but I can not use objdump(DJGPP) to get the full information of kernel.bin


objdump -b binary -x kernel.bin

kernel.bin: file format binary
kernel.bin
architecture: UNKNOWN!, flags 0x00000000:
start address 0x00000000

Sections:
Idx Name Size VMA LMA File off Algn
0 .data 00002000 00000000 00000000 00000000 2**0
CONTENTS, ALLOC, LOAD, DATA
SYMBOL TABLE:
no symbols

Re: how can I objdump the kernel.bin for bran's OS

Posted: Mon Sep 08, 2008 4:07 am
by eddyb
I know objdump is for object file... I saw somewehe there is a such tool for binaries, you should search it

Re: how can I objdump the kernel.bin for bran's OS

Posted: Mon Sep 08, 2008 4:15 am
by AJ
Hi,

If you are using raw binary format, the best you can hope for is a disassembly, not a full dump containing section information. This is because a raw binary executable is just that - no symbolic information is stored fo objdump to find.

If you want debug information, try a formatted binary such as ELF.

Cheers,
Adam

Re: how can I objdump the kernel.bin for bran's OS

Posted: Tue Sep 09, 2008 1:35 am
by leeygang
thank both of you very much