Added an assertion to make sure I've really understood the semantics
of the ctok32 filter length.
This commit is contained in:
+2
-1
@@ -271,7 +271,8 @@ void PackVmlinuxBase<T>::pack(OutputFile *fo)
|
|||||||
defineDecompressorSymbols();
|
defineDecompressorSymbols();
|
||||||
defineFilterSymbols(linker, &ft);
|
defineFilterSymbols(linker, &ft);
|
||||||
if (0x40==(0xf0 & ft.id)) {
|
if (0x40==(0xf0 & ft.id)) {
|
||||||
linker->defineSymbol("filter_length", ph.u_len); // redefine
|
linker->defineSymbol("filter_length", ft.buf_len); // redefine
|
||||||
|
assert(ft.buf_len == ph.u_len);
|
||||||
}
|
}
|
||||||
relocateLoader();
|
relocateLoader();
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -445,7 +445,8 @@ void PackBvmlinuzI386::pack(OutputFile *fo)
|
|||||||
|
|
||||||
defineFilterSymbols(linker, &ft);
|
defineFilterSymbols(linker, &ft);
|
||||||
if (0x40==(0xf0 & ft.id)) {
|
if (0x40==(0xf0 & ft.id)) {
|
||||||
linker->defineSymbol("filter_length", ph.u_len); // redefine
|
linker->defineSymbol("filter_length", ft.buf_len); // redefine
|
||||||
|
assert(ft.buf_len == ph.u_len);
|
||||||
}
|
}
|
||||||
defineDecompressorSymbols();
|
defineDecompressorSymbols();
|
||||||
linker->defineSymbol("original_entry", physical_start);
|
linker->defineSymbol("original_entry", physical_start);
|
||||||
|
|||||||
Reference in New Issue
Block a user