remove always-true conditional in dynamic linker TLSDESC processing

the allocating path which can fail is for dynamic TLS, which can only
occur at runtime, and the check for runtime was already made in the
outer conditional.
This commit is contained in:
Rich Felker 2015-04-21 13:22:48 -04:00
parent 97b72d22ad
commit c5ab5bd3be
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ static void do_relocs(struct dso *dso, size_t *rel, size_t rel_size, size_t stri
error(
"Error relocating %s: cannot allocate TLSDESC for %s",
dso->name, sym ? name : "(local)" );
if (runtime) longjmp(*rtld_fail, 1);
longjmp(*rtld_fail, 1);
}
new->next = dso->td_index;
dso->td_index = new;