Hello Expert.!!
I have a only code in elf file .text section.
I want make a dis-assembler but i don't know which is thumb or arm code.
how to distinguish arm or thumb. i can not read cpsr regester infomation. only have a code...
thanks
Hi 박주병,
although I am not familiar with the elf format, I think there would be boundary addresses of ARM and Thumb codes in an elf header.
As for my previous example, the boundaries would be 0x8000, 0x8009, 0x8010, 0x8018, 0x801c, 0x8020 and 0x8024. All addresses exists in the elf header.
Best regards,
Yasuhiko Koumoto.
umm... so such as idea or objdump (dissassembler) may be parsing elf format and finding bx or blx instruction.
so guess these instruction arm or not.
and blanched address space thumb or arm... humm...
thanks for your opnion and i will more study for that.