<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 5.50.4913.1100" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=940255518-25052004><FONT face=Arial color=#0000ff size=2>Herm, 
could you use ppc-linux-objcopy with --adjust-vma, then point GDB at that 
modified executable?</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  u-boot-users-admin@lists.sourceforge.net 
  [mailto:u-boot-users-admin@lists.sourceforge.net]<B>On Behalf Of </B>Stuart 
  Yoder<BR><B>Sent:</B> Tuesday, May 25, 2004 11:28 AM<BR><B>To:</B> 
  u-boot-users@lists.sourceforge.net<BR><B>Subject:</B> [U-Boot-Users] debugging 
  relocated code<BR><BR></FONT></DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial size=2>What is typically 
  done to debug relocated code with&nbsp;gdb?&nbsp;&nbsp; For example, u-boot is 
  linked at 0xFFF0000, but then relocates itself to&nbsp;0x0FF03000.&nbsp;&nbsp; 
  The debug symbols all reference the linked location.&nbsp;&nbsp; After the 
  relocation occurs gdb is lost as far as symbolic information 
  goes.</FONT></SPAN></DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial size=2>Am I supposed to 
  link the code to the place I know it will end up after 
  relocation?</FONT></SPAN></DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial size=2>Anyone know of a 
  way in gdb to relocate all the symbols?</FONT></SPAN></DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial 
  size=2>Thanks,</FONT></SPAN></DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=028192318-25052004><FONT face=Arial size=2>Stuart 
  Yoder</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>