Hi,
See also the discussion on v1 of this patch:
https://inbox.sourceware.org/elfutils-devel/[email protected]/#r
I think we need to think about what the libelf API looks like without
mmap. In particular I think we need to decide what to do with the
Elf_Cmds:
ELF_C_READ_MMAP, /* Read, but mmap the file if possible. */
ELF_C_RDWR_MMAP, /* Read and write, with mmap. */
ELF_C_WRITE_MMAP, /* Write, with mmap. */
ELF_C_READ_MMAP_PRIVATE, /* Read, but memory is writable, results are
not written to the file. */
Specifically because libdw does reply on some of them.
Thanks,
Mark