summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <kraj@mvista.com>2008-12-18 17:00:43 +0000
committerKhem Raj <kraj@mvista.com>2008-12-18 17:00:43 +0000
commit3276d3e2f602acab0d4b94599eae4e44d5b29670 (patch)
treebd3011af5bc30d1bfd7a718ccc622eef36503aac
parent2960c7d383a900f80bccdf36e69bc16d1161ced7 (diff)
downloaduClibc-alpine-3276d3e2f602acab0d4b94599eae4e44d5b29670.tar.bz2
uClibc-alpine-3276d3e2f602acab0d4b94599eae4e44d5b29670.tar.xz
Add comment to explain why O2 is used for ldso.c
-rw-r--r--ldso/ldso/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in
index 6d126cb2b..57234f401 100644
--- a/ldso/ldso/Makefile.in
+++ b/ldso/ldso/Makefile.in
@@ -17,6 +17,10 @@ ifeq ($(DODEBUG),y)
# Not really much point in including debugging info, since gdb
# can't really debug ldso, since gdb requires help from ldso to
# debug things....
+# On arm, gcc-4.3.x onwards -Os emits calls to libgcc, which calls _div0,
+# which tries to call raise(). And raise comes from libc so a catch 22.
+# Using -O2 instead. We could have use -fno-early-inlining with -Os too.
+
CFLAGS-ldso += -O2 -g
endif