summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/config/i386/freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/config/i386/freebsd.h')
-rw-r--r--contrib/gcc/config/i386/freebsd.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h
index 7563948..d55c8f8 100644
--- a/contrib/gcc/config/i386/freebsd.h
+++ b/contrib/gcc/config/i386/freebsd.h
@@ -405,9 +405,10 @@ do { \
#define FUNCTION_PROFILER(FILE, LABELNO) \
{ \
if (flag_pic) \
- fprintf (FILE, "\tcall *mcount@GOT(%%ebx)\n"); \
+ fprintf (FILE, "\tcall *%s@GOT(%%ebx)\n", \
+ TARGET_AOUT ? "mcount" : ".mcount"); \
else \
- fprintf (FILE, "\tcall mcount\n"); \
+ fprintf (FILE, "\tcall %s\n", TARGET_AOUT ? "mcount" : ".mcount"); \
}
#define FUNCTION_PROFILER_EPILOGUE(FILE) \
@@ -415,9 +416,11 @@ do { \
if (TARGET_PROFILER_EPILOGUE) \
{ \
if (flag_pic) \
- fprintf (FILE, "\tcall *mexitcount@GOT(%%ebx)\n"); \
+ fprintf (FILE, "\tcall *%s@GOT(%%ebx)\n", \
+ TARGET_AOUT ? "mexitcount" : ".mexitcount"); \
else \
- fprintf (FILE, "\tcall mexitcount\n"); \
+ fprintf (FILE, "\tcall %s\n", \
+ TARGET_AOUT ? "mexitcount" : ".mexitcount"); \
} \
}
OpenPOWER on IntegriCloud