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:
Ithamar R. Adema
2014-08-30 16:43:48 -07:00
parent 6e48c81bad
commit ad5bdbdfd4
+1 -1
View File
@@ -275,7 +275,7 @@ ELFLoader<Class>::Load(int fd, preloaded_image* _image)
// inbetween.
totalSize = secondRegion->start + secondRegion->size - firstRegion->start;
if (totalSize > image->text_region.size + image->data_region.size
+ 8 * 1024) {
+ 16 * 1024) {
status = B_BAD_DATA;
goto error1;
}