Correct call sequence for `mcount()' when -fpic is on. Also, our mcount()

doesn't take an argument.
This commit is contained in:
pk 1994-04-20 09:19:02 +00:00
parent cf78b04c1a
commit dea3fb5642
1 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,6 @@
/* Configuration for an i386 running NetBSD as the target machine. /* Configuration for an i386 running NetBSD as the target machine.
$Id: tm.h,v 1.5 1993/12/06 09:49:15 cgd Exp $ $Id: tm.h,v 1.6 1994/04/20 09:19:02 pk Exp $
*/ */
/* This is tested by i386gas.h. */ /* This is tested by i386gas.h. */
@ -41,13 +41,10 @@
{ \ { \
if (flag_pic) \ if (flag_pic) \
{ \ { \
fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%eax\n", \ fprintf (FILE, "\tcall mcount@PLT\n"); \
LPREFIX, (LABELNO)); \
fprintf (FILE, "\tcall *mcount@GOT(%%ebx)\n"); \
} \ } \
else \ else \
{ \ { \
fprintf (FILE, "\tmovl $%sP%d,%%eax\n", LPREFIX, (LABELNO)); \
fprintf (FILE, "\tcall mcount\n"); \ fprintf (FILE, "\tcall mcount\n"); \
} \ } \
} }