We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
ARM generates an ELF as the output on compilation and linking.
The compiler options are embedded in the header of the ELF.
Google "ELF structure" for more information.
You can use toolchains like "fromelf", "objdump" provided by GCC as well to extract the ELF information and print into the readable format.