unable to disassemble to source

Scott Newell newell at cei.net
Wed Jan 7 16:57:37 UTC 2004


>> Iam working on porting RTEMS 4.6.0 pre5 to MIPS lx4189 (r3000 mips1) core
>> based board. I am using the latest mips toolchain from the rtems website.
>> When I try to disassmble the hello.exe with "mips-rtems-objdump -S
>> hello.exe" , I am getting only the assembly code and no c source code.
>> when i try to disassemble the indiviual object files , I am able to find
the
>> c source with assembly code.
>> How can I get the disassembled code with c source?
>You can't. It's impossible.

Hmmm.  Maybe impossible from the s-record format image file, but not from
an elf format file?  Or impossible from an .o object file?

m68k-rtems-objdump -S -d ticker.nxe:

[snip]

00100a64 <bsp_start>:
 
/*
 *  bsp_start
 *
 *  This routine does the bulk of the system initialization.
 */
void bsp_start( void )
{
  void           *vbr;
  extern void    *_WorkspaceBase;
  extern void    *_RamSize;
  extern unsigned long _M68k_Ramsize;
  _M68k_Ramsize = (unsigned long)&_RamSize;		/* RAM size set in linker
script */
  100a64:	23fc 0008 0000 	movel #524288,113ab8 <_M68k_Ramsize>
  100a6a:	0011 3ab8 
  /*
   *  we only use a hook to get the C library initialized.
   */
  Cpu_table.pretasking_hook = bsp_pretasking_hook;
  100a6e:	23fc 0010 1044 	movel #1052740,11383c <Cpu_table>
  100a74:	0011 383c 
  Cpu_table.predriver_hook  = bsp_predriver_hook;
  100a78:	23fc 0010 0a5c 	movel #1051228,113840 <Cpu_table+0x4>
  100a7e:	0011 3840 
  Cpu_table.postdriver_hook = bsp_postdriver_hook;
  100a82:	23fc 0010 1560 	movel #1054048,113844 <Cpu_table+0x8>
  100a88:	0011 3844 
  m68k_get_vbr( vbr );
  100a8c:	4e7a 1801      	movec %vbr,%d1
  Cpu_table.interrupt_vector_table = vbr;
  100a90:	23c1 0011 3864 	movel %d1,113864 <Cpu_table+0x28>
  BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
  100a96:	23fc 0011 5440 	movel #1135680,113868 <BSP_Configuration>
  100a9c:	0011 3868 

[snip]


newell




More information about the users mailing list