summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-21 13:22:48 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-21 13:22:48 -0400
commitc5ab5bd3be15eb9d49222df132a51ae8e8f78cbc (patch)
treeeef581a4fe709eb5fa1b6fabb4cc2607c6d21429 /src
parent97b72d22ad53e8f1306bf8e943571b698058f49d (diff)
downloadmusl-c5ab5bd3be15eb9d49222df132a51ae8e8f78cbc.tar.gz
musl-c5ab5bd3be15eb9d49222df132a51ae8e8f78cbc.tar.bz2
musl-c5ab5bd3be15eb9d49222df132a51ae8e8f78cbc.tar.xz
musl-c5ab5bd3be15eb9d49222df132a51ae8e8f78cbc.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index efb00496..7c92ef6c 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -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;