From 58ea44993b6ed13e5e45e9747ca46a46da11241f Mon Sep 17 00:00:00 2001 From: Nick Kledzik Date: Mon, 28 Oct 2013 22:48:33 +0000 Subject: [PATCH] [MachO] pointer align linker generated (non)lazy pointers llvm-svn: 193551 --- lld/lib/ReaderWriter/MachO/StubAtoms_x86.hpp | 8 ++++++++ lld/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lld/lib/ReaderWriter/MachO/StubAtoms_x86.hpp b/lld/lib/ReaderWriter/MachO/StubAtoms_x86.hpp index 68a253ad3371..39d4ecbca1a8 100644 --- a/lld/lib/ReaderWriter/MachO/StubAtoms_x86.hpp +++ b/lld/lib/ReaderWriter/MachO/StubAtoms_x86.hpp @@ -142,6 +142,10 @@ public: return DefinedAtom::typeLazyPointer; } + virtual Alignment alignment() const { + return Alignment(2); + } + virtual uint64_t size() const { return 4; } @@ -176,6 +180,10 @@ public: return DefinedAtom::typeGOT; } + virtual Alignment alignment() const { + return Alignment(2); + } + virtual uint64_t size() const { return 4; } diff --git a/lld/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp b/lld/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp index ae5e6c45cec9..11a5d8fb221e 100644 --- a/lld/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp +++ b/lld/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp @@ -143,6 +143,10 @@ public: return DefinedAtom::typeLazyPointer; } + virtual Alignment alignment() const { + return Alignment(3); + } + virtual uint64_t size() const { return 8; } @@ -156,7 +160,6 @@ public: { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; return ArrayRef(bytes, 8); } - }; @@ -178,6 +181,10 @@ public: return DefinedAtom::typeGOT; } + virtual Alignment alignment() const { + return Alignment(3); + } + virtual uint64_t size() const { return 8; }