about summary refs log tree commit diff
path: root/sysdeps/powerpc/dl-tunables.list
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-05-23 09:15:52 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-05-24 07:42:12 -0700
commit79aec841029c160a85f46564f8bad132af008e30 (patch)
treeaf636da51359f8ff5d18d700b51067e1196b37c0 /sysdeps/powerpc/dl-tunables.list
parent1b992204f68af851e905c16016756fd4421e1934 (diff)
downloadglibc-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