⛏️ index : haiku.git

author Axel Dörfler <axeld@pinc-software.de> 2012-11-05 12:18:46.0 +01:00:00
committer Alexander von Gluck IV <kallisti5@unixzen.com> 2012-11-05 14:07:26.0 -06:00:00
commit
ad41dcdef64acfe7483b2c67e4b8df530fac317e [patch]
tree
6832e18b109eb08c4990cc72db1e4f4d3f6997a3
parent
6686e87130fca47f3e129b81c53a3f9edfc3c9e2
download
ad41dcdef64acfe7483b2c67e4b8df530fac317e.tar.gz

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.

Diff

 src/system/runtime_loader/elf_load_image.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/system/runtime_loader/elf_load_image.cpp b/src/system/runtime_loader/elf_load_image.cpp
index 97f6988..d8286ce 100644
--- a/src/system/runtime_loader/elf_load_image.cpp
+++ b/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.
@@ -80,7 +80,7 @@
			default:
				FATAL("%s: Unhandled pheader type in count 0x%lx\n",
					imagePath, pheaders->p_type);
				return B_BAD_DATA;
				break;
		}
	}