[En-Nut-Discussion] Fwd: objtool for ethernut

JasonG jas_g at yahoo.com
Fri Dec 6 19:15:11 CET 2002


--- Jason Riffel <jason.riffel at cadreng.com> wrote:
> To: jas_g at yahoo.com
> From: "Jason Riffel" <jason.riffel at cadreng.com>
> Subject: objtool for ethernut
> Date: Thu, 05 Dec 2002 17:30:31 -0600
> 
> Hi Jason,
> 
> I saw your message about the ethernut project and the use of
> 'objtool'.  I am not on that list so I couldn't post an answer there.
>  Perhaps you could quote this there for me to help others.
> 
> You should have full symbolic information for the ethernut project -
> However, obviously you do not and I can think of a reason why.
> 
> AVR Studio requires that any file referenced in the symbol
> information must exist.  If it does not then studio will 'bomb' out. 
> The generated .ELF file contains symbols for files from the build of
> the toolchain that are not present.  To get around this problem,
> 'objtool' will look for each file before including debug information
> on that file.
> 
> Now lets talk about another known issue, long filenames.  These are
> currently not supported because I'm not sure how to implement it.  I
> will be finding a workaround soon.  The reason they are not supported
> is because in the .ELF file a filename+path is stored in the string
> table which can be of any length.  In a .COF file the filename+path
> is stored in an 'auxiliary record' which has a maximum length of 14
> bytes.  So I can't place the long filenames or path into the record.
> 
> Putting it all into perspective, objtool looks ONLY in the current
> directory for source files to include symbol information on.  I have
> never built the ethernut project but I know its a well formed project
> and most likely the sources are divided up into sub-directories which
> may explain why you get no symbol information because 'objtool' does
> not see the files.
> 
> What to do?  For now there is not a good solution, I HOPE to fix long
> filename support very soon which should be in release .07beta - Maybe
> a few days?  Right now, if you want to 'fool' the tool you could
> place a copy of all your source files into your root directory.  Its
> ugly, but 'objtool' will see those files and then include symbols for
> them.
> 
> Hope this helps, and if not please let me know.  I'm trying to make
> this tool stable for everyone.
> 
> Best regards,
> Jason Riffel
> Cadre Engineering, LLC
> http://www.cadreng.com
> 4094 Majestic Lane Suite 226
> Fairfax, VA 22033
> (703)818-7200 x112
> jason.riffel at cadreng.com
> 


=====
JasonG
jas_g at yahoo.com

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the En-Nut-Discussion mailing list