[Avrora] blink.od errors

Tom Parker palfrey at tevp.net
Mon Oct 18 14:10:33 PDT 2004


Ben L. Titzer wrote:
> I think that the problem is that the debugging information is present.  
> I know that the part of Avrora that parses the objdump output seems to  
> have trouble with these sections. Can you try to "strip" (with the  
> strip command) the debugging information?

Tried doing strip (well, avr-strip, as that's the one that can actually understand AVR binaries), 
and ran 'avr-objdump -zhD' again. Same results. This new blink.od has a .text,.data and a .bss section.

I had a bit of a look at the avr-objdump arguments, and tested with the arguments "-zhd" not "-zhD". 
Lowercase d spits out disassembly for just the executable parts (i.e. in this case just the .text 
section), rather than everything for uppercase D. With that output, Avrora dies with

Program error: access to "program" out of bounds at 0x0594

on the new blink.od. 'diff -u' between this one and the Blink.od in CVS says that mine is missing 
the below section at the bottom, but is otherwise identical
-- Begin missing data --
Disassembly of section .data:

00800060 <HPLPowerManagementM$disabled>:
   800060:      01 00           .word   0x0001  ; ????
-- End missing data --

Working from that, I tried removing the .bss section from my blink.od made from the stripped 
blink.elf, and suddenly everything works :-) This blink.od doesn't have any of the useful begin/end 
function markers in there, so if someone can figure out how to tell avr-objdump to just spit out the 
.text and .data sections, then I think everything would work perfectly.

Tom
----------------
palfrey at tevp.net
http://tevp.net
If you're not part of the solution, then we need to increase the acidity


More information about the Avrora mailing list