diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-02-07 01:05:50 -0500 |
---|---|---|
committer | Riku Voipio <riku.voipio@nokia.com> | 2011-02-09 10:33:54 +0200 |
commit | 1af02e83c00fe269fbbaeaccc7c0b914ad277d18 (patch) | |
tree | d3b6f4442ed254966b10134e24ef8cb1f68b4864 /elf.h | |
parent | 73160d952922157f16946e8ebb4419072de4c657 (diff) | |
download | qemu-1af02e83c00fe269fbbaeaccc7c0b914ad277d18.tar.gz qemu-1af02e83c00fe269fbbaeaccc7c0b914ad277d18.tar.bz2 qemu-1af02e83c00fe269fbbaeaccc7c0b914ad277d18.zip |
linux-user/elfload: add FDPIC support
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Diffstat (limited to 'elf.h')
-rw-r--r-- | elf.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1191,6 +1191,25 @@ typedef struct elf64_note { Elf64_Word n_type; /* Content type */ } Elf64_Nhdr; + +/* This data structure represents a PT_LOAD segment. */ +struct elf32_fdpic_loadseg { + /* Core address to which the segment is mapped. */ + Elf32_Addr addr; + /* VMA recorded in the program header. */ + Elf32_Addr p_vaddr; + /* Size of this segment in memory. */ + Elf32_Word p_memsz; +}; +struct elf32_fdpic_loadmap { + /* Protocol version number, must be zero. */ + Elf32_Half version; + /* Number of segments in this map. */ + Elf32_Half nsegs; + /* The actual memory map. */ + struct elf32_fdpic_loadseg segs[/*nsegs*/]; +}; + #ifdef ELF_CLASS #if ELF_CLASS == ELFCLASS32 |