Home | History | Annotate | Download | only in include
      1 #ifndef ELF_H
      2 #define ELF_H
      3 
      4 #include <llvm/Support/ELF.h>
      5 // FIXME: XXX: Can't using namespace in header file!
      6 using namespace llvm::ELF;
      7 
      8 // TODO: These definitions are not defined in include/llvm/Support/ELF.h
      9 // elf.h.  So we to this by ourself.  Maybe we should update ELF.h
     10 // instead.
     11 
     12 #ifndef ET_LOOS
     13 #define ET_LOOS 0xfe00
     14 #endif
     15 
     16 #ifndef ET_HIOS
     17 #define ET_HIOS 0xfeff
     18 #endif
     19 
     20 #ifndef STT_LOOS
     21 #define STT_LOOS 10
     22 #endif
     23 
     24 #ifndef STT_HIOS
     25 #define STT_HIOS 12
     26 #endif
     27 
     28 #ifndef STB_LOOS
     29 #define STB_LOOS 10
     30 #endif
     31 
     32 #ifndef STB_HIOS
     33 #define STB_HIOS 12
     34 #endif
     35 
     36 
     37 #endif // ELF_H
     38