bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/4045] objdump -m avr -D prefixes memory addresses with "0x


From: timo dot lindfors at iki dot fi
Subject: [Bug binutils/4045] objdump -m avr -D prefixes memory addresses with "0x0x" in comments
Date: 15 Feb 2007 17:34:17 -0000

------- Additional Comments From timo dot lindfors at iki dot fi  2007-02-15 
17:34 -------
rjmp and jmp look ok in a flat binary file now. However, "0x0x" is still printed
with stripped ELF files:

Steps to reproduce:
1) cat > testcase.c <<EOF
void testfun(void) {
        for (;;) {
        }
}
EOF
2) avr-gcc -c testcase.c
3) avr-strip testcase.o
4) binutils/objdump -m avr -D testcase.o | grep jmp

Expected results:
4)  8:   ff cf           rjmp    .-2             ; 0x8

Actual results:
4)  8:   ff cf           rjmp    .-2             ; 0x0x8


If I don't strip the binary first the output is (correctly)
8:   ff cf           rjmp    .-2             ; 0x8 <__zero_reg__+0x7>



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4045

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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