This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[ECOS] mips disassembler


I'm using the ecosSWtools-990319 mips-tx39-elf
toolset.

If I try and disassemble an object file compiled from
a C source file (using objdump -d) the first function
comes out as a hexdump e.g.

[root@xxxx]# mips-tx39-elf-gcc -O2 -c misc1.c
[root@xxxx]# mips-tx39-elf-objdump -d misc1.o

misc1.o:     file format elf32-bigmips

Disassembly of section .text:

0000000000000000 <misc_small1>:
   0:   27 bd ff e0 af b0 00 00 00 00 80 21 af b3 00
0c     '..........!....
  10:   00 80 98 21 af bf 00 18 af b5 00 14 af b4 00
10     ...!............
  20:   af b2 00 08 12 60 00 04 af b1 00 04 02 60 f8
09     .....`.......`..
  30:   00 00 00 00 00 40 a0 21 00 00 90 21 0c 00 00
92     .....@.!...!....
  40:   00 00 88 21 0c 00 01 db 02 02 80 21 02 02 80
21     ...!.......!...!
  50:   26 52 00 01 0c 00 02 6e 26 31 00 01 0c 00 01
1e     &R.....n&1......
  60:   02 02 80 21 02 02 80 21 2a 22 00 02 14 40 ff
f9     ...!...!*"...@..
  70:   00 00 00 00 0c 00 02 a0 00 00 00 00 02 02 80
21     ...............!
  80:   2a 42 00 05 14 40 ff ed 00 00 00 00 12 60 00
04     *B...@.......`..
  90:   00 00 00 00 02 60 f8 09 00 00 00 00 00 40 a8
21     .....`.......@.!
  a0:   16 00 00 03 3c 04 00 00 10 00 00 04 02 b4 10
23     ....<..........#
  b0:   0c 00 00 00 24 84 00 1c 00 00 10 21 8f bf 00
18     ....$......!....
  c0:   8f b5 00 14 8f b4 00 10 8f b3 00 0c 8f b2 00
08     ................
  d0:   8f b1 00 04 8f b0 00 00 03 e0 00 08 27 bd 00
20     ............'.. 

00000000000000e0 <second_function>:
  e0:   8ca20000        lw      $v0,0($a1)
  e4:   00005821        move    $t3,$zero
  e8:   94440000        lhu     $a0,0($v0)
  ec:   3402e809        li      $v0,0xe809
  f0:   3083f81f        andi    $v1,$a0,0xf81f

etc...


Is this a bug somewhere or am I not driving the tools
correctly ?

Thanks

Andre
--

_____________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]