diff options
author | Stefan Liebler <stli@linux.ibm.com> | 2024-01-30 09:34:32 +0100 |
---|---|---|
committer | Stefan Liebler <stli@linux.ibm.com> | 2024-02-01 10:09:31 +0100 |
commit | 18876c9ff52c3d9aefe2c663b1a287589bebedc0 (patch) | |
tree | dcf1f52f16fdb4c1739d8b7d502de796e89f1836 /sysdeps/sparc/sparc32/memset.S | |
parent | 30e546d76e756fe4d2d20a8b2286de4fbf30ceb5 (diff) | |
download | glibc-18876c9ff52c3d9aefe2c663b1a287589bebedc0.tar glibc-18876c9ff52c3d9aefe2c663b1a287589bebedc0.tar.gz glibc-18876c9ff52c3d9aefe2c663b1a287589bebedc0.tar.bz2 glibc-18876c9ff52c3d9aefe2c663b1a287589bebedc0.zip |
S390: Fix building with --disable-mutli-arch [BZ #31196]
Starting with commits
- 7ea510127e2067efa07865158ac92c330c379950
string: Add libc_hidden_proto for strchrnul
- 22999b2f0fb62eed1af4095d062bd1272d6afeb1
string: Add libc_hidden_proto for memrchr
building glibc on s390x with --disable-multi-arch fails if only
the C-variant of strchrnul / memrchr is used. This is the case
if gcc uses -march < z13.
The build fails with:
../sysdeps/s390/strchrnul-c.c:28:49: error: ‘__strchrnul_c’ undeclared here (not in a function); did you mean ‘__strchrnul’?
28 | __hidden_ver1 (__strchrnul_c, __GI___strchrnul, __strchrnul_c);
With --disable-multi-arch, __strchrnul_c is not available as string/strchrnul.c
is just included without defining STRCHRNUL and thus we also don't have to create
the internal hidden symbol.
Tested-by: Andreas K. Hüttel <dilfridge@gentoo.org>
(cherry picked from commit cc1b91eabd806057aa7e3058a84bf129ed36e157)
Diffstat (limited to 'sysdeps/sparc/sparc32/memset.S')
0 files changed, 0 insertions, 0 deletions