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

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.
Post Reply
leeygang
Posts: 2
Joined: Mon Sep 08, 2008 2:10 am

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

Post 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
eddyb
Member
Member
Posts: 248
Joined: Fri Aug 01, 2008 7:52 am

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

Post by eddyb »

I know objdump is for object file... I saw somewehe there is a such tool for binaries, you should search it
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

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

Post 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
leeygang
Posts: 2
Joined: Mon Sep 08, 2008 2:10 am

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

Post by leeygang »

thank both of you very much
Post Reply