diff options
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 2911e0778d..81ac23371b 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1176,7 +1176,8 @@ _dl_map_object_from_fd (const char *name, int fd, char *realname, /* If this object has DT_SYMBOLIC set modify now its scope. We don't have to do this for the main map. */ - if (l->l_info[DT_SYMBOLIC] && &l->l_searchlist != l->l_scope[0]) + if (__builtin_expect (l->l_info[DT_SYMBOLIC] != NULL, 0) + && &l->l_searchlist != l->l_scope[0]) { /* Create an appropriate searchlist. It contains only this map. |