Just ignore unknown ELF program headers instead of failing.

* 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.
This commit is contained in:
Axel Dörfler
2012-11-05 12:18:46 +01:00
parent 1a1e2020f9
commit d2c8db267d
+2 -2
View File
@@ -1,6 +1,6 @@
/* /*
* Copyright 2008-2009, Ingo Weinhold, [email protected]. * Copyright 2008-2009, Ingo Weinhold, [email protected].
* Copyright 2003-2008, Axel Dörfler, [email protected]. * Copyright 2003-2012, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Copyright 2002, Manuel J. Petit. All rights reserved. * Copyright 2002, Manuel J. Petit. All rights reserved.
@@ -80,7 +80,7 @@ count_regions(const char* imagePath, char const* buff, int phnum, int phentsize)
default: default:
FATAL("%s: Unhandled pheader type in count 0x%lx\n", FATAL("%s: Unhandled pheader type in count 0x%lx\n",
imagePath, pheaders->p_type); imagePath, pheaders->p_type);
return B_BAD_DATA; break;
} }
} }