aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-01-14 10:16:35 -0800
committerH.J. Lu <hjl.tools@gmail.com>2016-01-15 08:43:07 -0800
commit82a543ffd097f4f5e60e898086f0bda2a647e37f (patch)
tree13c9a85c844215c04a8175154fd56d4aa31b6d3a
parent0d32fcb814a7ea7e857a967e96e5c76205bd729b (diff)
downloadtermbaud-82a543ffd097f4f5e60e898086f0bda2a647e37f.tar.gz
termbaud-82a543ffd097f4f5e60e898086f0bda2a647e37f.tar.xz
termbaud-82a543ffd097f4f5e60e898086f0bda2a647e37f.zip
Compile x86 syscalls with -fomit-frame-pointer
-rw-r--r--sysdeps/unix/sysv/linux/i386/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/Makefile b/sysdeps/unix/sysv/linux/i386/Makefile
index 71ba61e9d75..7014829f880 100644
--- a/sysdeps/unix/sysv/linux/i386/Makefile
+++ b/sysdeps/unix/sysv/linux/i386/Makefile
@@ -10,6 +10,10 @@ CFLAGS-mmap.o += -fomit-frame-pointer
CFLAGS-mmap.os += -fomit-frame-pointer
CFLAGS-mmap64.o += -fomit-frame-pointer
CFLAGS-mmap64.os += -fomit-frame-pointer
+CFLAGS-pselect.o += -fomit-frame-pointer
+CFLAGS-pselect.os += -fomit-frame-pointer
+CFLAGS-rtld-mmap.o += -fomit-frame-pointer
+CFLAGS-rtld-mmap.os += -fomit-frame-pointer
endif
ifeq ($(subdir),sysvipc)
@@ -26,11 +30,31 @@ endif
# fallocate, posix_fallocate use six-argument inline syscalls.
ifeq ($(subdir),io)
sysdep_routines += libc-do-syscall
+# %ebp may be used to pass the 6th argument to syscall.
+CFLAGS-fallocate.o += -fomit-frame-pointer
+CFLAGS-fallocate.os += -fomit-frame-pointer
+CFLAGS-fallocate64.o += -fomit-frame-pointer
+CFLAGS-fallocate64.os += -fomit-frame-pointer
+CFLAGS-posix_fallocate.o += -fomit-frame-pointer
+CFLAGS-posix_fallocate.os += -fomit-frame-pointer
+CFLAGS-posix_fallocate64.o += -fomit-frame-pointer
+CFLAGS-posix_fallocate64.os += -fomit-frame-pointer
+CFLAGS-sync_file_range.o += -fomit-frame-pointer
+CFLAGS-sync_file_range.os += -fomit-frame-pointer
endif
# libpthread uses six-argument inline syscalls.
ifeq ($(subdir),nptl)
libpthread-sysdep_routines += libc-do-syscall
+# %ebp may be used to pass the 6th argument to syscall.
+CFLAGS-pthread_rwlock_timedrdlock.o += -fomit-frame-pointer
+CFLAGS-pthread_rwlock_timedrdlock.os += -fomit-frame-pointer
+CFLAGS-pthread_rwlock_timedwrlock.o += -fomit-frame-pointer
+CFLAGS-pthread_rwlock_timedwrlock.os += -fomit-frame-pointer
+CFLAGS-sem_timedwait.o += -fomit-frame-pointer
+CFLAGS-sem_timedwait.os += -fomit-frame-pointer
+CFLAGS-sem_wait.o += -fomit-frame-pointer
+CFLAGS-sem_wait.os += -fomit-frame-pointer
endif
ifeq ($(subdir),resource)