Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/Elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define HALIDE_ELF_H

#include <algorithm>
#include <cstdint>
#include <iterator>
#include <list>
#include <memory>
Expand Down Expand Up @@ -225,17 +226,17 @@ class Section {
SHT_REL = 9,
SHT_SHLIB = 10,
SHT_DYNSYM = 11,
SHT_LOPROC = 0x70000000,
SHT_HIPROC = 0x7fffffff,
SHT_LOUSER = 0x80000000,
SHT_HIUSER = 0xffffffff,
SHT_LOPROC = 0x70000000u,
SHT_HIPROC = 0x7fffffffu,
SHT_LOUSER = 0x80000000u,
SHT_HIUSER = 0xffffffffu,
};

enum Flag : uint32_t {
SHF_WRITE = 0x1,
SHF_ALLOC = 0x2,
SHF_EXECINSTR = 0x4,
SHF_MASKPROC = 0xf0000000,
SHF_MASKPROC = 0xf0000000u,
};

typedef std::vector<Relocation> RelocationList;
Expand Down Expand Up @@ -463,8 +464,8 @@ class Object {
ET_EXEC = 2,
ET_DYN = 3,
ET_CORE = 4,
ET_LOPROC = 0xff00,
ET_HIPROC = 0xffff,
ET_LOPROC = 0xff00u,
ET_HIPROC = 0xffffu,
};

// We use lists for sections and symbols to avoid iterator
Expand Down
Loading