GCC / Coldfire / Elf format compliant with windows

Nathan Sidwell nathan@codesourcery.com
Tue Nov 9 14:32:00 GMT 2004


Despina wrote:
> Hi everyone,
> 
> I am working with a GCC compiler, for a coldfire 5407 target (under
> windows XP/Cygwin).
> 
> I have written an application that is dedicated to run on my coldfire
> target, using an OS we have developped ourselves. 
> 
> I would like to debug my application, using the BDM port of my device?
> The software I would like to use is Trace 32  along with the Lauterbach
> debug interface. The problem is that Trace 32 doesn't seem to work with
> the elf file I got when compiling my application. It says "Error : entry
> near offset 3708". I have taken a look at the elf file, and I found out
> that every links in this file are expresses "linux style" i.e. with '/'
> directories and so on. I guess this is the reason why my debugging
> software doesn't want to load my elf file. 
> 
> Do you know how I could force the linker (m68k-elf-ld) to generate paths
> in the elf file that are compliant with windows? (by the way, the option
> I use to get my elf file is OUTPUT_FORMAT("elf32-little")   ).

Windows' file system accepts both / and \ as a directory separator.

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the Gcc-help mailing list