Skip to content

Commit

Permalink
elf: enumerate ranges of ELF types and flags
Browse files Browse the repository at this point in the history
Enumerate the minimum and maximum values
of the ELF segment type and flag values
defined in the specification.
  • Loading branch information
matheusmoreira committed Aug 5, 2024
1 parent 96f734a commit c25b34b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/lone/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,16 @@ enum lone_elf_ranges_version {
LONE_ELF_RANGES_VERSION_MAX = LONE_ELF_VERSION_CURRENT,
};

enum lone_elf_ranges_segment_type {
LONE_ELF_RANGES_SEGMENT_TYPE_MIN = LONE_ELF_SEGMENT_TYPE_NULL,
LONE_ELF_RANGES_SEGMENT_TYPE_MAX = LONE_ELF_SEGMENT_TYPE_TLS,
};

enum lone_elf_ranges_segment_flags {
LONE_ELF_RANGES_SEGMENT_FLAGS_MIN = LONE_ELF_SEGMENT_FLAGS_NONE,
LONE_ELF_RANGES_SEGMENT_FLAGS_MAX = LONE_ELF_SEGMENT_FLAGS_RWX,
};

#define LONE_ELF_IDENT_MAGIC_INIT(...) \
{ \
LONE_ELF_IDENT_MAGIC_0, \
Expand Down

0 comments on commit c25b34b

Please sign in to comment.