haiku/headers/private/system/image_defs.h
Ingo Weinhold 9266cd66c7 extended_image_info: Add text_delta field
Needed to offset a symbol address read from the symbol table to the
actual load address.
2016-04-29 22:32:14 +02:00

30 lines
733 B
C

/*
* Copyright 2009-2016, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_IMAGE_DEFS_H
#define _SYSTEM_IMAGE_DEFS_H
#include <SupportDefs.h>
#include <image.h>
#define B_SHARED_OBJECT_HAIKU_VERSION_VARIABLE _gSharedObjectHaikuVersion
#define B_SHARED_OBJECT_HAIKU_VERSION_VARIABLE_NAME "_gSharedObjectHaikuVersion"
#define B_SHARED_OBJECT_HAIKU_ABI_VARIABLE _gSharedObjectHaikuABI
#define B_SHARED_OBJECT_HAIKU_ABI_VARIABLE_NAME "_gSharedObjectHaikuABI"
typedef struct extended_image_info {
image_info basic_info;
ssize_t text_delta;
void* symbol_table;
void* symbol_hash;
void* string_table;
} extended_image_info;
#endif /* _SYSTEM_IMAGE_DEFS_H */