Skip to content

Commit

Permalink
lone: add ELF header file
Browse files Browse the repository at this point in the history
Defines lone's program header table entry type.
  • Loading branch information
matheusmoreira committed Nov 16, 2023
1 parent bfbcb1d commit 8c023fd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/lone/elf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef LONE_ELF_HEADER
#define LONE_ELF_HEADER

#include <linux/elf.h>

#ifndef PT_LONE
// PT_LONE l o n e
#define PT_LONE 0x6c6f6e65
#endif

#if PT_LONE < PT_LOOS || PT_LONE > PT_HIOS
#warning "PT_LONE outside reserved operating system specific range"
#endif

#endif /* LONE_ELF_HEADER */

0 comments on commit 8c023fd

Please sign in to comment.