summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-02-18 21:44:53 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-02-18 21:44:53 +0000
commit699ef3129bdda98a0a0164e4d221a0273dfc24d8 (patch)
treee069082d5276eb511e5621c24cb299f4d260312d /contrib/gcc
parent58abb279f50d5ad9fbad30a39da04296664ec6cb (diff)
downloadFreeBSD-src-699ef3129bdda98a0a0164e4d221a0273dfc24d8.zip
FreeBSD-src-699ef3129bdda98a0a0164e4d221a0273dfc24d8.tar.gz
Turn off default generation of userland dot symbols on powerpc64 now that
we have a binutils that supports it. Kernel dot symbols remain on to assist DDB.
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/config/rs6000/freebsd.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/gcc/config/rs6000/freebsd.h b/contrib/gcc/config/rs6000/freebsd.h
index ca06d20..52b013e 100644
--- a/contrib/gcc/config/rs6000/freebsd.h
+++ b/contrib/gcc/config/rs6000/freebsd.h
@@ -37,6 +37,13 @@
#undef TARGET_AIX
#define TARGET_AIX TARGET_64BIT
+#ifdef HAVE_LD_NO_DOT_SYMS
+/* New ABI uses a local sym for the function entry point. */
+extern int dot_symbols;
+#undef DOT_SYMBOLS
+#define DOT_SYMBOLS dot_symbols
+#endif
+
#undef FBSD_TARGET_CPU_CPP_BUILTINS
#define FBSD_TARGET_CPU_CPP_BUILTINS() \
do \
@@ -196,7 +203,7 @@
#ifdef __powerpc64__
#define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
asm (SECTION_OP "\n" \
-" bl ." #FUNC "\n" \
+" bl " #FUNC "\n" \
" nop\n" \
" .previous");
#endif
OpenPOWER on IntegriCloud