radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.8k stars 3.02k forks source link

rasm2 tricore ld.bu disassembly error #16533

Open brandonros opened 4 years ago

brandonros commented 4 years ago

similar to https://github.com/radareorg/radare2/issues/15912

from ghidra:

                             //
                             // bootloader2-code1 
                             // ram: 80018800-800328e7
                             //
                             LAB_80018800                                    XREF[5]:     bootloader2-header:8001851c(*), 
                                                                                          bootloader2-code2:80037bea(j), 
                                                                                          bootloader2-code2:80037c0a(j), 
                                                                                          bootloader2-code2:80037c2a(j), 
                                                                                          bootloader2-code2:80037dae(j)  
     e1:80018800 91 00 00 f7     movh.a     a15, #0x7000
     e1:80018804 02 4a           mov        d10, d4
     e1:80018806 39 ff 0c 35     ld.bu      d15, [a15]0x50cc

from rasm2:

rasm2 -a tricore -o 0x80018800 -D '910000f7024a39ff0c35'

0x80018800   4                 910000f7  movh.a a15, 28672
0x80018804   2                     024a  mov d10, d4
0x80018806   2                     39ff  .hword 0xff39
0x80018808   2                     0c35  ld.bu d15, [a3]5
radare commented 4 years ago

Try with latest binutils we can update the disassembler from gnu if tht works

On 12 Apr 2020, at 01:34, Brandon Ros notifications@github.com wrote:

 similar to #15912

from ghidra:

                         //
                         // bootloader2-code1 
                         // ram: 80018800-800328e7
                         //
                         LAB_80018800                                    XREF[5]:     bootloader2-header:8001851c(*), 
                                                                                      bootloader2-code2:80037bea(j), 
                                                                                      bootloader2-code2:80037c0a(j), 
                                                                                      bootloader2-code2:80037c2a(j), 
                                                                                      bootloader2-code2:80037dae(j)  
 e1:80018800 91 00 00 f7     movh.a     a15, #0x7000
 e1:80018804 02 4a           mov        d10, d4
 e1:80018806 39 ff 0c 35     ld.bu      d15, [a15]0x50cc

from rasm2:

rasm2 -a tricore -o 0x80018800 -D '910000f7024a39ff0c35'

0x80018800 4 910000f7 movh.a a15, 28672 0x80018804 2 024a mov d10, d4 0x80018806 2 39ff .hword 0xff39 0x80018808 2 0c35 ld.bu d15, [a3]5 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.