Hi, See also the discussion on v1 of this patch: https://inbox.sourceware.org/elfutils-devel/f352dba78caee57afc17995f8e36d28ae98afbc0.ca...@klomp.org/#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