Home | History | Annotate | Download | only in Hexagon
      1 //===- HexagonGNUInfo.h ---------------------------------------------------===//
      2 //
      3 //                     The MCLinker Project
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 #ifndef MCLD_TARGET_HEXAGON_GNU_INFO_H
     10 #define MCLD_TARGET_HEXAGON_GNU_INFO_H
     11 #include <mcld/Target/GNUInfo.h>
     12 
     13 #include <llvm/Support/ELF.h>
     14 
     15 namespace mcld {
     16 
     17 class HexagonGNUInfo : public GNUInfo
     18 {
     19 public:
     20   HexagonGNUInfo(const llvm::Triple& pTriple) : GNUInfo(pTriple) { }
     21 
     22   uint32_t machine() const { return llvm::ELF::EM_HEXAGON; }
     23 
     24   uint64_t defaultTextSegmentAddr() const { return 0x0; }
     25 
     26   /// flags - the value of ElfXX_Ehdr::e_flags
     27   uint64_t flags() const { return 0x2; }
     28 };
     29 
     30 } // namespace of mcld
     31 
     32 #endif
     33 
     34