This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Define MALLOC_ALIGNMENT as 16 for x32
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 15 May 2012 07:41:11 -0700
- Subject: PATCH: Define MALLOC_ALIGNMENT as 16 for x32
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
X32 psABI specifies 16-byte alignment for malloc, the same as
x86-64. This patch defines MALLOC_ALIGNMENT as 16 for x32. Tested
on Linux/x32. OK to install?
Thanks.
H.J.
----
* sysdeps/x86_64/x32/Makefile: New.
diff --git a/sysdeps/x86_64/x32/Makefile b/sysdeps/x86_64/x32/Makefile
new file mode 100644
index 0000000..5b3ac54
--- /dev/null
+++ b/sysdeps/x86_64/x32/Makefile
@@ -0,0 +1,3 @@
+ifeq ($(subdir),malloc)
+CFLAGS-malloc.c += -DMALLOC_ALIGNMENT=16
+endif
--
1.7.6.5