References to unique symbols from copy relocations can only come
from executables which cannot be unloaded anyway. Optimize the
code to set the unload flag a bit.
{
table[idx].sym = sym;
table[idx].map = map;
- }
- if (table[idx].map->l_type == lt_loaded)
- /* Make sure we don't unload this object by
- setting the appropriate flag. */
- table[idx].map->l_flags_1 |= DF_1_NODELETE;
+ if (map->l_type == lt_loaded)
+ /* Make sure we don't unload this object by
+ setting the appropriate flag. */
+ map->l_flags_1 |= DF_1_NODELETE;
+ }
return;
}