Code: Select all
sh-elf-objdump -d file.elf
I actually figured out a more complicated method for disassembling these raw binaries. I just remained convinced that there must be a more straightforward method using objdump.
Code: Select all
sh-elf-objdump -d file.elf
Code: Select all
sh-elf-objdump -b binary -m sh4 -EL --adjust-vma=0x8c010000 -D file.bin
Thanks! That works. My overcomplicated solution was to convert the raw binary to a sequence of hex numbers printed in text, place them into a skeleton ASM file and use GNU as and ld to construct an ELF file, then disassemble that. That also worked but I like your solution better.Ex-Cyber wrote:I don't have an actual SuperH toolchain built right now to check, but I think you want something like:
Code: Select all
sh-elf-objdump -b binary -m sh4 -EL --adjust-vma=0x8c010000 -D file.bin