AArch64GNUInfo.h revision 37b74a387bb3993387029859c2d9d051c41c724e
1//===- AArch64GNUInfo.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_AARCH64_AARCH64GNUINFO_H_
10#define TARGET_AARCH64_AARCH64GNUINFO_H_
11#include "mcld/Target/GNUInfo.h"
12
13#include <llvm/Support/ELF.h>
14
15namespace mcld {
16
17class AArch64GNUInfo : public GNUInfo {
18 public:
19  explicit AArch64GNUInfo(const llvm::Triple& pTriple) : GNUInfo(pTriple) {}
20
21  uint32_t machine() const { return llvm::ELF::EM_AARCH64; }
22
23  uint64_t abiPageSize() const { return 0x10000; }
24
25  uint64_t defaultTextSegmentAddr() const { return 0x400000; }
26
27  // There are no processor-specific flags so this field shall contain zero.
28  uint64_t flags() const { return 0x0; }
29};
30
31}  // namespace mcld
32
33#endif  // TARGET_AARCH64_AARCH64GNUINFO_H_
34