This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I know if an ELF file is for Cortex-A or Cortex-M?

Hello,

I have a question when doing the binary analysis. For a given ELF file (hello.elf) that has already been identified for the ARM architecture, how can I quickly know if this ELF is for Cortex-A or Cortex-M? More specifically, I'm trying to identify the whole bare-metal images (or RTOS images like FreeRTOS) for the Cortex-M.

From the result of "file hello.elf":

We can only see that this ELF is for ARM.

And from the result of "readelf -h ./hello.elf":

It's also only showing this file is for the ARM architecture.

So are there any other approaches that can quickly identify the target architecture of an ELF file?

Thank you for your time!

0