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 TARGET_ARM_ARMGNUINFO_H_
10 #define TARGET_ARM_ARMGNUINFO_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  public:
ARMGNUInfo(const llvm::Triple & pTriple)19   explicit ARMGNUInfo(const llvm::Triple& pTriple) : GNUInfo(pTriple) {}
20 
machine()21   uint32_t machine() const { return llvm::ELF::EM_ARM; }
22 
defaultTextSegmentAddr()23   uint64_t defaultTextSegmentAddr() const { return 0x8000; }
24 
flags()25   uint64_t flags() const { return llvm::ELF::EF_ARM_EABI_VER5; }
26 };
27 
28 }  // namespace mcld
29 
30 #endif  // TARGET_ARM_ARMGNUINFO_H_
31