about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrooks Moses <bmoses@google.com>2014-05-08 15:32:21 -0700
committerBrooks Moses <bmoses@google.com>2014-05-08 15:32:21 -0700
commitecce267984d39cc5c54e777133f21eaaafc29a9b (patch)
treecd84bb38a6360e6d1987135456485a1b4442720e
parente5e5c541b57a1d3d9252d9afc3d80e7e430ceb18 (diff)
downloadglibc-ecce267984d39cc5c54e777133f21eaaafc29a9b.tar.gz
glibc-ecce267984d39cc5c54e777133f21eaaafc29a9b.tar.xz
glibc-ecce267984d39cc5c54e777133f21eaaafc29a9b.zip
For b/14616463, add -fno-function-sections to nptl/events.c compilation.
-rw-r--r--README.google4
-rw-r--r--nptl/Makefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/README.google b/README.google
index 73fb156672..75c89087fb 100644
--- a/README.google
+++ b/README.google
@@ -304,3 +304,7 @@ sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S
 sysdeps/unix/sysv/linux/sys/ptrace.h
   For b/13432624, add PTRACE_EVENT_STOP to __ptrace_eventcodes enum.
   (bmoses, not yet upstream)
+
+nptl/Makefile
+  For b/14616463, add -fno-function-sections to events.c compilation.
+  (bmoses, google-local)
diff --git a/nptl/Makefile b/nptl/Makefile
index 0a1fa5c7c4..4c9015ab70 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -137,6 +137,10 @@ libpthread-static-only-routines = pthread_atfork
 
 CFLAGS-pthread_atfork.c = -DNOT_IN_libc
 
+# Google-local (b/14616463): Turn off function sections in events.c to
+# avoid folding that causes a bad debugging experience.
+CFLAGS-events.c = -fno-function-sections
+
 # Since cancellation handling is in large parts handled using exceptions
 # we have to compile some files with exception handling enabled, some
 # even with asynchronous unwind tables.