There's no need to allocate that much phdr/shdr from the stack.

This commit is contained in:
cognet 2006-06-23 22:45:35 +00:00
parent 905a22c391
commit 39fcd24d6a

View File

@ -350,8 +350,8 @@ load_kernel(unsigned int kstart, unsigned int curaddr,unsigned int func_end,
int d)
{
Elf32_Ehdr *eh;
Elf32_Phdr phdr[512] /* XXX */, *php;
Elf32_Shdr shdr[512] /* XXX */;
Elf32_Phdr phdr[64] /* XXX */, *php;
Elf32_Shdr shdr[64] /* XXX */;
int i,j;
void *entry_point;
int symtabindex = -1;