x86: Fix -Os build (BZ #29576)
commit9dc4e29f630c6ef8299120b275e503321dc0c8c7
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 21 Sep 2022 13:51:08 +0000 (21 10:51 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 5 Oct 2022 21:04:13 +0000 (5 18:04 -0300)
tree167fca82bd58716d247bea3d40c591fc651d44c6
parent6128e82ebe973163d2dd614d31753c88c0c4d645
x86: Fix -Os build (BZ #29576)

The compiler might transform __stpcpy calls (which are routed to
__builtin_stpcpy as an optimization) to strcpy and x86_64 strcpy
multiarch implementation does not build any working symbol due
ISA_SHOULD_BUILD not being evaluated for IS_IN(rtld).

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/x86_64/multiarch/rtld-strcpy.S [new file with mode: 0644]