aboutsummaryrefslogtreecommitdiffstats
path: root/COFF/Chunks.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-11-04 14:42:21 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-11-04 14:42:21 +0000
commitd08c35566595bf29a50e39cbaaf32188ede63f7a (patch)
tree8e0d582dbfb68a3bf01decdab787004fde19f3de /COFF/Chunks.h
parentebe7d41024f3c7f5adddb6a1ff1d0d3361f58c1c (diff)
downloadsrc-d08c35566595bf29a50e39cbaaf32188ede63f7a.tar.gz
src-d08c35566595bf29a50e39cbaaf32188ede63f7a.zip
Notes
Notes: svn path=/vendor/lld/dist-release_70/; revision=340122 svn path=/vendor/lld/lld-release_701-r349250/; revision=342121; tag=vendor/lld/lld-release_701-r349250
Diffstat (limited to 'COFF/Chunks.h')
-rw-r--r--COFF/Chunks.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/COFF/Chunks.h b/COFF/Chunks.h
index 9e896531bd9a..b3199d8d603c 100644
--- a/COFF/Chunks.h
+++ b/COFF/Chunks.h
@@ -345,7 +345,9 @@ private:
// See comments for DefinedLocalImport class.
class LocalImportChunk : public Chunk {
public:
- explicit LocalImportChunk(Defined *S) : Sym(S) {}
+ explicit LocalImportChunk(Defined *S) : Sym(S) {
+ Alignment = Config->is64() ? 8 : 4;
+ }
size_t getSize() const override;
void getBaserels(std::vector<Baserel> *Res) override;
void writeTo(uint8_t *Buf) const override;