0

I am coding the function objdump and I would like to know how to recover the flags (HAS_SYMS, D_PAGED) with their addresses.

where is the HAS_SYMS,D_PAGED flags in the elf.h structure ?

  • See https://stackoverflow.com/questions/5235844/objdump-head-elf-meaning-of-flags – Frankie_C Feb 15 '18 at 10:23
  • where are the HAS_SYMS,D_PAGED flags in the elf.h structure ? without the BFD lib. –  Feb 15 '18 at 10:29
  • 1
    Quoting from cited answer "These flag values won't appear in your object file; they are simply an in-memory representation that libbfd uses." where they are? in `/usr/include/bfd.h` in `struct bfd{.../* Format_specific flags. */ flagword flags;...};`. See also https://unix.stackexchange.com/questions/74601/portions-of-the-file-header and https://sourceware.org/binutils/docs-2.23.1/bfd/BFD-front-end.html#BFD-front-end. – Frankie_C Feb 15 '18 at 11:03

0 Answers0