runtime loader: Export get_executable_architecture() function

Given a path of an ELF file, it tries to determine its architecture.
This commit is contained in:
Ingo Weinhold
2013-11-17 02:09:36 +01:00
parent b83f9b3940
commit cf7e2ad812
4 changed files with 240 additions and 5 deletions
@@ -41,6 +41,8 @@ struct rld_export {
image_id* _imageID, char** _imagePath, char** _symbolName,
int32* _type, void** _location);
status_t (*test_executable)(const char *path, char *interpreter);
status_t (*get_executable_architecture)(const char *path,
const char** _architecture);
status_t (*get_next_image_dependency)(image_id id, uint32 *cookie,
const char **_name);