Where is the “Section to segment mapping” stored in ELF files?

前端 未结 2 1749
情歌与酒
情歌与酒 2021-01-07 22:13

As part of trying to write a compiler completely from scratch, I\'m currently working on the part the handles ELF files.

After skimming through several articles and

2条回答
  •  悲&欢浪女
    2021-01-07 23:13

    I still don't quite understand where section to segment mappings are stored.

    They are not stored anywhere.

    Rather, readelf computes the mapping by looking at file offset and size of sections and segments.

提交回复
热议问题