* Decide whether to use BeOS style symbol resolution at run time
depending on the gcc version of the executable. * Adjusted non-BeOS-style symbol resolution so that add-ons and dynamically loaded libraries find symbols in the executable. This change re-enables support for undefined symbols. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24537 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -74,6 +74,11 @@ typedef struct image_queue_t {
|
||||
image_t *tail;
|
||||
} image_queue_t;
|
||||
|
||||
// image_t::flags
|
||||
#define IMAGE_FLAG_RTLD_MASK 0x03
|
||||
// RTLD_{LAZY,NOW} | RTLD_{LOCAL,GLOBAL}
|
||||
#define IMAGE_FLAG_R5_SYMBOL_RESOLUTION 0x04
|
||||
|
||||
#define STRING(image, offset) ((char *)(&(image)->strtab[(offset)]))
|
||||
#define SYMNAME(image, sym) STRING(image, (sym)->st_name)
|
||||
#define SYMBOL(image, num) ((struct Elf32_Sym *)&(image)->syms[num])
|
||||
|
||||
Reference in New Issue
Block a user