]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Move elf_dynamic_do_Rel RTLD_BOOTSTRAP branches outside
authorFangrui Song <maskray@google.com>
Wed, 20 Apr 2022 20:52:45 +0000 (13:52 -0700)
committerFangrui Song <maskray@google.com>
Wed, 20 Apr 2022 20:52:45 +0000 (13:52 -0700)
commit84e02af1ebc9988126eebe60bf19226cea835623
treeb836e59714fbb7e863699069b500e1a8a30f7210
parenta8e9b5b8079d18116ca69c9797e77804ecf2ee7e
elf: Move elf_dynamic_do_Rel RTLD_BOOTSTRAP branches outside

elf_dynamic_do_Rel checks RTLD_BOOTSTRAP in several #ifdef branches.
Create an outside RTLD_BOOTSTRAP branch to simplify reasoning about the
function at the cost of a few duplicate lines.

Since dl_naudit is zero in RTLD_BOOTSTRAP code, the RTLD_BOOTSTRAP
branch can avoid _dl_audit_symbind calls to decrease code size.

Reviewed-by: Adheemrval Zanella <adhemerval.zanella@linaro.org>
elf/do-rel.h