提交 c5ab5bd3 编写于 作者: R Rich Felker

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.
上级 97b72d22
...@@ -340,7 +340,7 @@ static void do_relocs(struct dso *dso, size_t *rel, size_t rel_size, size_t stri ...@@ -340,7 +340,7 @@ static void do_relocs(struct dso *dso, size_t *rel, size_t rel_size, size_t stri
error( error(
"Error relocating %s: cannot allocate TLSDESC for %s", "Error relocating %s: cannot allocate TLSDESC for %s",
dso->name, sym ? name : "(local)" ); dso->name, sym ? name : "(local)" );
if (runtime) longjmp(*rtld_fail, 1); longjmp(*rtld_fail, 1);
} }
new->next = dso->td_index; new->next = dso->td_index;
dso->td_index = new; dso->td_index = new;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册