PATCH: Define MALLOC_ALIGNMENT as 16 for x32
H.J. Lu
hongjiu.lu@intel.com
Tue May 15 14:41:00 GMT 2012
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
More information about the Libc-alpha
mailing list