Home | History | Annotate | Download | only in ARM
      1 //===- ARMGNUInfo.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_ARM_GNU_INFO_H
     10 #define MCLD_TARGET_ARM_GNU_INFO_H
     11 #include <mcld/Target/GNUInfo.h>
     12 
     13 #include <llvm/Support/ELF.h>
     14 
     15 namespace mcld {
     16 
     17 class ARMGNUInfo : public GNUInfo
     18 {
     19 public:
     20   ARMGNUInfo(const llvm::Triple& pTriple) : GNUInfo(pTriple) { }
     21 
     22   uint32_t machine() const { return llvm::ELF::EM_ARM; }
     23 
     24   uint64_t defaultTextSegmentAddr() const { return 0x8000; }
     25 
     26   uint64_t flags() const
     27   { return llvm::ELF::EF_ARM_EABI_VER5; }
     28 
     29 };
     30 
     31 } // namespace of mcld
     32 
     33 #endif
     34 
     35