elf-fdpic.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #endif /* _LINUX_ELF_FDPIC_H */