summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/asm.h
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 /sys/powerpc/include/asm.h
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 'sys/powerpc/include/asm.h')
-rw-r--r--sys/powerpc/include/asm.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/powerpc/include/asm.h b/sys/powerpc/include/asm.h
index 90c30cb..0c6b6a5 100644
--- a/sys/powerpc/include/asm.h
+++ b/sys/powerpc/include/asm.h
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
-#ifdef PIC
+#if defined(PIC) && !defined(__powerpc64__)
#define PIC_PROLOGUE XXX
#define PIC_EPILOGUE XXX
#define PIC_PLT(x) x@plt
@@ -53,11 +53,6 @@
#define PIC_GOT(x) x
#endif
-#ifdef __powerpc64__
-#undef PIC_PLT
-#define PIC_PLT(x) __CONCAT(.,x)
-#endif
-
#define CNAME(csym) csym
#define ASMNAME(asmsym) asmsym
#ifdef __powerpc64__
@@ -73,8 +68,8 @@
#define _ENTRY(x) \
.text; .align 2; .globl x; .section ".opd","aw"; \
.align 3; x: \
- .quad .x,.TOC.@tocbase,0; .previous; \
- .align 4; .globl .x; .type .x,@function; .x:
+ .quad .L.x,.TOC.@tocbase,0; .size x,24; .previous; \
+ .align 4; .type x,@function; .L.x:
#else
#define _ENTRY(x) \
.text; .align 4; .globl x; .type x,@function; x:
OpenPOWER on IntegriCloud