In FS0 filesystem image buffer was smaller than the memfs-defined maximum.

- Now fs size is in sync with memfs max size.
This commit is contained in:
Bahadir Balban
2009-05-13 16:09:20 +03:00
parent 680d20ff94
commit 2c01463482
11 changed files with 68 additions and 64 deletions

View File

@@ -97,11 +97,12 @@ int elf_mark_segments(struct elf_section_header *sect_header, int nsections,
"bss segment in ELF file.\n", __FUNCTION__);
}
/* Data and text are less than page apart */
if ((task->data_start - task->text_start) < PAGE_SIZE) {
/* Data and text are less than page apart and unaligned */
if ((task->data_start - task->text_end) < PAGE_SIZE &&
!is_page_aligned(task->text_end)) {
printf("%s: Error: Distance between data and text"
" sections are less than page size (4K)\n",
__FUNCTION__);
" sections are less than page size (%d bytes)\n",
__FUNCTION__, PAGE_SIZE);
return -ENOEXEC;
}