Meanings of mips flags from readelf command?

只谈情不闲聊 提交于 2020-01-05 06:59:19

问题


I have executed the command "readelf -h test" ("test" is my binary program) on linux, and got following text:

ELF header:
   Magic:  7f 45 4c 46 ....
   Data:   2's complement, little endian
   ...
   **Flags: 0x1007, noreorder, pic, cpic, o32, mips1**
   ...

Could you please let me know each meanings of flags of the above text in detail?

I have googled it, but could not find answers. Any comments would be appreciated.


回答1:


ELF header flags are architecture-specific. For MIPS they are defined in SYSTEM V APPLICATION BINARY INTERFACE

EF_MIPS_NOREORDER 0x00000001
EF_MIPS_PIC       0x00000002
EF_MIPS_CPIC      0x00000004
EF_MIPS_ARCH      0xf0000000


来源:https://stackoverflow.com/questions/23909788/meanings-of-mips-flags-from-readelf-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!