objdump - head ELF - Meaning of flags?

微笑、不失礼 提交于 2019-12-01 18:21:18

They are BFD-specific bitmasks. In the binutils source tree, see bfd/bfd-in2.h:

  /* BFD contains relocation entries.  */
#define HAS_RELOC      0x01

  /* BFD is directly executable.  */
#define EXEC_P         0x02
...
  /* BFD has symbols.  */
#define HAS_SYMS       0x10
...
  /* BFD is dynamically paged (this is like an a.out ZMAGIC file) (the
     linker sets this by default, but clears it for -r or -n or -N).  */
#define D_PAGED        0x100

These flag values won't appear in your object file; they are simply an in-memory representation that libbfd uses.

They are LibBFD flags. You're trying to recode objdump ? ... =)

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