Skip to content
Snippets Groups Projects
Commit 1fe9eb1b authored by Pavel Roskin's avatar Pavel Roskin Committed by Alexandre Julliard
Browse files

Make it possible to link Wine statically (at least on RedHat 6.0).

parent dfed208e
No related branches found
No related tags found
No related merge requests found
......@@ -1175,7 +1175,11 @@ DEBUG_ReadExecutableDbgInfo(void)
Elf32_Dyn * dynpnt;
struct r_debug * dbg_hdr;
struct link_map * lpnt = NULL;
#ifdef __GNUC__
extern Elf32_Dyn _DYNAMIC[] __attribute__ ((weak));
#else
extern Elf32_Dyn _DYNAMIC[];
#endif
int rtn = FALSE;
int rowcount;
......@@ -1196,10 +1200,11 @@ DEBUG_ReadExecutableDbgInfo(void)
* of the other shared libraries which might be loaded. Perform the
* same step for all of these.
*/
dynpnt = _DYNAMIC;
if( dynpnt == NULL )
if( (&_DYNAMIC == NULL) || (_DYNAMIC == NULL) )
goto leave;
dynpnt = _DYNAMIC;
/*
* Now walk the dynamic section (of the executable, looking for a DT_DEBUG
* entry.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment