diff options
author | Collin Funk <collin.funk1@gmail.com> | 2025-06-16 20:45:14 -0700 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-06-21 14:39:36 +0200 |
commit | 5071149e89867070f692d89d75be5d7449294d1c (patch) | |
tree | 092a855e64f573ac7fd6f46aa5f4558c933bf5fb /sysdeps/unix/sysv/linux/dl-execstack.c | |
parent | 69f8b3e7deaca579511957959f8a7676a7428f49 (diff) | |
download | glibc-5071149e89867070f692d89d75be5d7449294d1c.zip glibc-5071149e89867070f692d89d75be5d7449294d1c.tar.gz glibc-5071149e89867070f692d89d75be5d7449294d1c.tar.bz2 |
hurd: Fix redefinition of 'P2ALIGN'.
When building on GNU/Hurd warnings like the following occur:
../sysdeps/x86_64/multiarch/strnlen-evex-base.S:53:10: warning: "P2ALIGN" redefined
53 | # define P2ALIGN(...) .p2align 4,, 6
| ^~~~~~~
In file included from /usr/include/x86_64-gnu/mach/x86_64/syscall_sw.h:30,
from ../sysdeps/mach/sysdep.h:21,
from ../sysdeps/mach/x86/sysdep.h:31,
from ../sysdeps/x86_64/multiarch/strnlen-evex-base.S:24:
/usr/include/x86_64-gnu/mach/x86_64/asm.h:78:9: note: this is the location of the previous definition
78 | #define P2ALIGN(p2) .p2align p2 /* gas-specific */
| ^~~~~~~
The fix is to undefine the macro from system headers in sysdep.h so that
it can be properly defined in assembly files where its definition
depends on whether string functions are being compiled for
wide-characters or not.
Message-ID: <721cd3a1bae1a553857db1dd69761a175f611364.1750131904.git.collin.funk1@gmail.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-execstack.c')
0 files changed, 0 insertions, 0 deletions