summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-16 11:52:35 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-16 11:54:56 -0700
commit617aca05db2580b32217de89f806b6716e36bbdf (patch)
tree7dde8ed009526392a7888341be1a1b753d1884db
parent6a3951a036dcd40d8d81072cbc8b2cdcbd9db7a2 (diff)
downloadglibc-617aca05db2580b32217de89f806b6716e36bbdf.tar.gz
glibc-617aca05db2580b32217de89f806b6716e36bbdf.tar.xz
glibc-617aca05db2580b32217de89f806b6716e36bbdf.zip
Add x32 ffs
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/x86_64/x32/ffs.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f8f216b960..e6331f95f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,10 @@
 
 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* sysdeps/x86_64/x32/ffs.c: New file.
+
+2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
 	__syscall_ulong_t.
 	(shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
diff --git a/sysdeps/x86_64/x32/ffs.c b/sysdeps/x86_64/x32/ffs.c
new file mode 100644
index 0000000000..fa7de8b887
--- /dev/null
+++ b/sysdeps/x86_64/x32/ffs.c
@@ -0,0 +1,4 @@
+#define ffsl __something_else
+#include <sysdeps/x86_64/ffs.c>
+#undef ffsl
+weak_alias (__ffs, ffsl)