sysdeps/{i386, x86_64}/mempcpy_chk.S: fix linknamespace for __mempcpy_chk
authorFrederic Berat <fberat@redhat.com>
Tue, 20 Jun 2023 18:18:52 +0000 (20:18 +0200)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jun 2023 04:20:52 +0000 (00:20 -0400)
commit1bc85effd549ae42318b37555a4c76ebc479b92a
treeea5d6187c3303b03b2cfb5ed67cafc656f360c5c
parent9e6863a537e66e01f5819dc356c5405a2bc67dc7
sysdeps/{i386, x86_64}/mempcpy_chk.S: fix linknamespace for __mempcpy_chk

On i386 and x86_64, for libc.a specifically, __mempcpy_chk calls
mempcpy which leads POSIX routines to call non-POSIX mempcpy indirectly.

This leads the linknamespace test to fail when glibc is built with
__FORTIFY_SOURCE=3.

Since calling mempcpy doesn't bring any benefit for libc.a, directly
call __mempcpy instead.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
sysdeps/i386/mempcpy_chk.S
sysdeps/x86_64/mempcpy_chk.S