aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1994-04-02 13:15:24 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1994-04-02 13:15:24 +0000
commit4563275aa69c581ed14801e31603407db1a18d0e (patch)
treecfa78b14fad194bc70b88facf8257707dc08d6c3 /gcc/config/i386
parentb6083bc9f8e8a4cac36c9c8cd9a7e90304ffac40 (diff)
downloadgcc-4563275aa69c581ed14801e31603407db1a18d0e.zip
gcc-4563275aa69c581ed14801e31603407db1a18d0e.tar.gz
gcc-4563275aa69c581ed14801e31603407db1a18d0e.tar.bz2
Correct -fpic ELF -pg code
From-SVN: r6958
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/osfrose.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/i386/osfrose.h b/gcc/config/i386/osfrose.h
index faab15e..0a62a6c 100644
--- a/gcc/config/i386/osfrose.h
+++ b/gcc/config/i386/osfrose.h
@@ -239,7 +239,7 @@ do \
fprintf (FILE, "%sPc%d:\tpopl %%eax\n", lprefix, call_no); \
fprintf (FILE, "\taddl $_GLOBAL_OFFSET_TABLE_+[.-%sPc%d],%%eax\n", \
lprefix, call_no++); \
- fprintf (FILE, "\tleal $%sP%d@GOTOFF(%%eax),%%edx\n", \
+ fprintf (FILE, "\tleal %sP%d@GOTOFF(%%eax),%%edx\n", \
lprefix, labelno); \
fprintf (FILE, "\tmovl %s_mcount_ptr@GOT(%%eax),%%eax\n", \
prefix); \
@@ -310,9 +310,9 @@ do \
{ \
fprintf (FILE, "\tmovl 4(%%ebp),%%ecx\n"); \
fprintf (FILE, "\tpushl %%ecx\n"); \
- fprintf (FILE, "\tleal $%sP%d@GOTOFF(%%ebx),%%edx\n", \
+ fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%edx\n", \
lprefix, labelno); \
- fprintf (FILE, "\tmovl _mcount_ptr@GOT(%%eax),%%eax\n"); \
+ fprintf (FILE, "\tmovl _mcount_ptr@GOT(%%ebx),%%eax\n"); \
fprintf (FILE, "\tcall *(%%eax)\n"); \
fprintf (FILE, "\tpopl %%eax\n"); \
} \