Skip to content

Commit

Permalink
Just ignore unknown ELF program headers instead of failing.
Browse files Browse the repository at this point in the history
* This fixes loading executables with a TLS section (which we do not support
  so far, though). Still, no reason to let the runtime loader choke on it.
  • Loading branch information
axeld committed Nov 5, 2012
1 parent 1a1e202 commit d2c8db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system/runtime_loader/elf_load_image.cpp
@@ -1,6 +1,6 @@
/*
* Copyright 2008-2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* Copyright 2003-2008, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2003-2012, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*
* Copyright 2002, Manuel J. Petit. All rights reserved.
Expand Down Expand Up @@ -80,7 +80,7 @@ count_regions(const char* imagePath, char const* buff, int phnum, int phentsize)
default:
FATAL("%s: Unhandled pheader type in count 0x%lx\n",
imagePath, pheaders->p_type);
return B_BAD_DATA;
break;
}
}

Expand Down

0 comments on commit d2c8db2

Please sign in to comment.