]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Replace `strcpy` call with `memcpy` [BZ #29454]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 8 Aug 2022 03:26:22 +0000 (11:26 +0800)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 11 Aug 2022 14:11:14 +0000 (22:11 +0800)
commit302bc33bc53c787da6e74162a7092e9c0fb964a8
tree7c6f8bdefc8da6cbb46541c6820bbad7b74c7c51
parentac47d8f6cf9744139adb12f540fb9cc610cac579
elf: Replace `strcpy` call with `memcpy` [BZ #29454]

GCC normally does this optimization for us in
strlen_pass::handle_builtin_strcpy but only for optimized
build. To avoid needing to include strcpy.S in the rtld build to
support the debug build, just do the optimization by hand.

(cherry picked from commit 483cfe1a6a33d6335b1901581b41040d2d412511)
elf/dl-cache.c