aboutsummaryrefslogtreecommitdiffstats
path: root/COFF/Chunks.h
diff options
context:
space:
mode:
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;