* dyn_load.c (GC_FirstDLOpenedLinkMap): Add comment for
_DYNAMIC-is-NULL code branch; cast _DYNAMIC (array symbol) to ptr_t
in comparison to NULL (0).
dynStructureAddr = &_DYNAMIC;
# endif
- if( dynStructureAddr == 0) {
+ if (dynStructureAddr == 0) {
+ /* _DYNAMIC symbol not resolved. */
return(0);
}
if( cachedResult == 0 ) {
ElfW(Dyn) *dp;
static struct link_map *cachedResult = 0;
- if( _DYNAMIC == 0) {
+ if (0 == (ptr_t)_DYNAMIC) {
+ /* _DYNAMIC symbol not resolved. */
return(0);
}
if( cachedResult == 0 ) {