diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-05-23 09:15:52 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-05-24 07:42:12 -0700 |
commit | 79aec841029c160a85f46564f8bad132af008e30 (patch) | |
tree | af636da51359f8ff5d18d700b51067e1196b37c0 /sysdeps/powerpc/dl-tunables.list | |
parent | 1b992204f68af851e905c16016756fd4421e1934 (diff) | |
download | glibc-79aec841029c160a85f46564f8bad132af008e30.tar.gz glibc-79aec841029c160a85f46564f8bad132af008e30.tar.xz glibc-79aec841029c160a85f46564f8bad132af008e30.zip |
Properly check stack alignment [BZ #27901]
1. Replace if ((((uintptr_t) &_d) & (__alignof (double) - 1)) != 0) which may be optimized out by compiler, with int __attribute__ ((weak, noclone, noinline)) is_aligned (void *p, int align) { return (((uintptr_t) p) & (align - 1)) != 0; } 2. Add TEST_STACK_ALIGN_INIT to TEST_STACK_ALIGN. 3. Add a common TEST_STACK_ALIGN_INIT to check 16-byte stack alignment for both i386 and x86-64. 4. Update powerpc to use TEST_STACK_ALIGN_INIT. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/powerpc/dl-tunables.list')
0 files changed, 0 insertions, 0 deletions