diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-12-19 21:06:23 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-12-27 22:12:51 +0000 |
commit | 97f13188c9fbafeaab89146996b3cce1f4952b5e (patch) | |
tree | 517d63c21e7afc0be357bf610d2e76f6eef7840a /ChangeLog | |
parent | 48a8f8328122ab8d06b7333cb87be46feeaf7cca (diff) | |
download | glibc-97f13188c9fbafeaab89146996b3cce1f4952b5e.tar.gz glibc-97f13188c9fbafeaab89146996b3cce1f4952b5e.tar.xz glibc-97f13188c9fbafeaab89146996b3cce1f4952b5e.zip |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 086bb81956..297dd703c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-12-27 Dmitry V. Levin <ldv@altlinux.org> + + * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path + is set and name contains ':', and all code depending on these checks. + 2017-12-24 Zack Weinberg <zackw@panix.com> * libio/libio.h, libio/_G_config.h: New stub headers which issue a |