avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] objdump patch


From: gouy yann
Subject: Re: [avr-gcc-list] objdump patch
Date: Tue, 7 Sep 2004 10:48:05 +0200 (CEST)

 --- "Svein E. Seldal" <address@hidden> a
écrit : 
> Theodore A. Roth wrote:
> > On Mon, 6 Sep 2004, gouy yann wrote:
> > 
> > 
> >>Hello,
> >>
> >>having the symbols is definitively a good idea.
> >>by the way, since you ask, I would have prefered:
> >>
> >>20c:       02 c0           rjmp    .+4            
> ;
> >>0x212 <.do_copy_data_start>
> > 
> > 
> > The arm port of gcc does it like this:
> > 
> >    0:   ea000006        b       20 <_start>
> 
> I've manually added "0x" in front of the symbol. I
> thought that was 
> rational because avr-objdump seem to separate
> between hex and decimal 
> output. The other targets that I've been working on
> in binutils uses it 
> in the same way as the arm port.
> 
> This can kick both ways. Do you want the symbol to
> refer to an address, 
> this would be the output:
> 
> 226:       e1 f7           brne    0x220
> <.do_clear_bss_loop>      ; .-8
> 
> or, if you want to refer to the label it should be
> printed like this:
> 
> 226:       e1 f7           brne    220
> <.do_clear_bss_loop>      ; .-8
> 
> 
> Personally I will lean towards:
> 
> 226:       e1 f7           brne    0x220
> <.do_clear_bss_loop>
> 
> (with hex and without "; .+5" because it generally
> does not tell you 
> anything useful)

Sure, the 0x seems to me necessary but it is missing
at the very beginning of the line too.

my thought of having the line number and the symbol
after the ';' was also the preserve the hex opcode and
the disassembled opcode next to the other.

regards.
    Yann

> 
> 
> On a last note I would like to comment that gas is
> not capable of 
> reading objdumps output, so it really doesnt matter
> how we format the 
> output.
> 
> Svein
> 
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>  

=====



        

        
                
Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour 
dialoguer instantanément avec vos amis. A télécharger gratuitement sur 
http://fr.messenger.yahoo.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]