Skip to content

Commit bbf3382

Browse files
Merge pull request ReadyTalk#318 from dicej/bootimage-lzma
fix bootimage lzma build
2 parents 60ea4b2 + 8c1e7d4 commit bbf3382

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/bootimage-generator/main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1851,10 +1851,6 @@ void writeBootImage2(Thread* t,
18511851
abort();
18521852
}
18531853

1854-
SymbolInfo bootimageSymbols[]
1855-
= {SymbolInfo(0, bootimageStart),
1856-
SymbolInfo(bootimageData.length, bootimageEnd)};
1857-
18581854
uint8_t* bootimage;
18591855
unsigned bootimageLength;
18601856
if (useLZMA) {
@@ -1874,6 +1870,10 @@ void writeBootImage2(Thread* t,
18741870
bootimageLength = bootimageData.length;
18751871
}
18761872

1873+
SymbolInfo bootimageSymbols[]
1874+
= {SymbolInfo(0, bootimageStart),
1875+
SymbolInfo(bootimageLength, bootimageEnd)};
1876+
18771877
platform->writeObject(bootimageOutput,
18781878
Slice<SymbolInfo>(bootimageSymbols, 2),
18791879
Slice<const uint8_t>(bootimage, bootimageLength),

0 commit comments

Comments
 (0)