ELF: enlarge the allowed padding between sections
Turns out the padding on ARM is slightly larger, and prevented the kernel add-ons from being loaded.
This commit is contained in:
@@ -275,7 +275,7 @@ ELFLoader<Class>::Load(int fd, preloaded_image* _image)
|
|||||||
// inbetween.
|
// inbetween.
|
||||||
totalSize = secondRegion->start + secondRegion->size - firstRegion->start;
|
totalSize = secondRegion->start + secondRegion->size - firstRegion->start;
|
||||||
if (totalSize > image->text_region.size + image->data_region.size
|
if (totalSize > image->text_region.size + image->data_region.size
|
||||||
+ 8 * 1024) {
|
+ 16 * 1024) {
|
||||||
status = B_BAD_DATA;
|
status = B_BAD_DATA;
|
||||||
goto error1;
|
goto error1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user