[lld] r193551 - [MachO] pointer align linker generated (non)lazy pointers
Nick Kledzik
kledzik at apple.com
Mon Oct 28 15:48:33 PDT 2013
Author: kledzik
Date: Mon Oct 28 17:48:33 2013
New Revision: 193551
URL: http://llvm.org/viewvc/llvm-project?rev=193551&view=rev
Log:
[MachO] pointer align linker generated (non)lazy pointers
Modified:
lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86.hpp
lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp
Modified: lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86.hpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86.hpp?rev=193551&r1=193550&r2=193551&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86.hpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86.hpp Mon Oct 28 17:48:33 2013
@@ -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;
}
Modified: lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp?rev=193551&r1=193550&r2=193551&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/StubAtoms_x86_64.hpp Mon Oct 28 17:48:33 2013
@@ -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<uint8_t>(bytes, 8);
}
-
};
@@ -178,6 +181,10 @@ public:
return DefinedAtom::typeGOT;
}
+ virtual Alignment alignment() const {
+ return Alignment(3);
+ }
+
virtual uint64_t size() const {
return 8;
}
More information about the llvm-commits
mailing list