logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

elf-fdpic.h (1621B)


  1. /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2. /* elf-fdpic.h: FDPIC ELF load map
  3. *
  4. * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
  5. * Written by David Howells (dhowells@redhat.com)
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. #ifndef _LINUX_ELF_FDPIC_H
  13. #define _LINUX_ELF_FDPIC_H
  14. #include <linux/elf.h>
  15. #define PT_GNU_STACK (PT_LOOS + 0x474e551)
  16. /* segment mappings for ELF FDPIC libraries/executables/interpreters */
  17. struct elf32_fdpic_loadseg {
  18. Elf32_Addr addr; /* core address to which mapped */
  19. Elf32_Addr p_vaddr; /* VMA recorded in file */
  20. Elf32_Word p_memsz; /* allocation size recorded in file */
  21. };
  22. struct elf32_fdpic_loadmap {
  23. Elf32_Half version; /* version of these structures, just in case... */
  24. Elf32_Half nsegs; /* number of segments */
  25. struct elf32_fdpic_loadseg segs[];
  26. };
  27. #define ELF32_FDPIC_LOADMAP_VERSION 0x0000
  28. /* segment mappings for ELF FDPIC libraries/executables/interpreters */
  29. struct elf64_fdpic_loadseg {
  30. Elf64_Addr addr; /* core address to which mapped */
  31. Elf64_Addr p_vaddr; /* VMA recorded in file */
  32. Elf64_Word p_memsz; /* allocation size recorded in file */
  33. };
  34. struct elf64_fdpic_loadmap {
  35. Elf64_Half version; /* version of these structures, just in case... */
  36. Elf64_Half nsegs; /* number of segments */
  37. struct elf64_fdpic_loadseg segs[];
  38. };
  39. #define ELF64_FDPIC_LOADMAP_VERSION 0x0000
  40. #endif /* _LINUX_ELF_FDPIC_H */