]> sourceware.org Git - glibc.git/commit
elf: remove redundant code from _dl_dst_substitute
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Dec 2017 21:06:23 +0000 (21:06 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 27 Dec 2017 22:12:51 +0000 (22:12 +0000)
commit97f13188c9fbafeaab89146996b3cce1f4952b5e
tree517d63c21e7afc0be357bf610d2e76f6eef7840a
parent48a8f8328122ab8d06b7333cb87be46feeaf7cca
elf: remove redundant code from _dl_dst_substitute

There are just two users of _dl_dst_substitute: one is expand_dst that
sets is_path argument to 0, another one is expand_dynamic_string_token.
The latter function also has just two users: one is _dl_map_object that
sets is_path argument to 0, another one is fillin_rpath that sets
is_path argument to 1 and name argument contains no ':'.

In any case (is_path && name[i] == ':') is always false and all code
depending on it can be safely removed.

* elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
is set and name contains ':', and all code depending on these checks.
ChangeLog
elf/dl-load.c
This page took 0.805563 seconds and 5 git commands to generate.