From 2ecebae14f37692582dc3250004e91ba11485315 Mon Sep 17 00:00:00 2001 From: David McPaul Date: Fri, 10 Apr 2009 03:28:00 +0000 Subject: [PATCH] ignore Stack type in elf loader git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30099 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/runtime_loader/elf.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/system/runtime_loader/elf.cpp b/src/system/runtime_loader/elf.cpp index aaed0f63c6..f30a82091d 100644 --- a/src/system/runtime_loader/elf.cpp +++ b/src/system/runtime_loader/elf.cpp @@ -460,8 +460,11 @@ count_regions(char const *buff, int phnum, int phentsize) case PT_PHDR: /* we don't use it */ break; + case PT_STACK: + /* we don't use it */ + break; default: - FATAL("unhandled pheader type 0x%lx\n", pheaders[i].p_type); + FATAL("unhandled pheader type in count 0x%lx\n", pheaders->p_type); return B_BAD_DATA; } } @@ -678,8 +681,11 @@ parse_program_headers(image_t *image, char *buff, int phnum, int phentsize) case PT_PHDR: /* we don't use it */ break; + case PT_STACK: + /* we don't use it */ + break; default: - FATAL("unhandled pheader type 0x%lx\n", pheader[i].p_type); + FATAL("unhandled pheader type in parse 0x%lx\n", pheader->p_type); return B_BAD_DATA; } }