diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-04-21 13:22:48 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-04-21 13:22:48 -0400 |
commit | c5ab5bd3be15eb9d49222df132a51ae8e8f78cbc (patch) | |
tree | eef581a4fe709eb5fa1b6fabb4cc2607c6d21429 /src | |
parent | 97b72d22ad53e8f1306bf8e943571b698058f49d (diff) | |
download | musl-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.c | 2 |
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; |