diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-08-21 05:08:16 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-08-21 05:08:16 +0000 |
commit | 0193ab3542d06aeb3bcb89e1a8b7fcc17cf87fa9 (patch) | |
tree | 149ce105b5e49b35033e9b33f01f6a843a52bf00 /gnu/egcs | |
parent | 6e93737b98effb9905cfa5f49e6f20c66a36fbf7 (diff) |
fix symbol name error in mcount functionality in a.out->ELF transition.
This changes the real definition to __mcount, but with a weak mcount
for compat. On the next major bump the weak alias should be removed.
Without this diff the compiler symbol mcount conflicts with the
user mcount() function.
Diffstat (limited to 'gnu/egcs')
-rw-r--r-- | gnu/egcs/gcc/config/i386/openbsdelf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/config/i386/openbsdelf.h b/gnu/egcs/gcc/config/i386/openbsdelf.h index 1fee2094377..c15884facf7 100644 --- a/gnu/egcs/gcc/config/i386/openbsdelf.h +++ b/gnu/egcs/gcc/config/i386/openbsdelf.h @@ -188,7 +188,7 @@ Boston, MA 02111-1307, USA. */ The icky part is not here, but in machine/profile.h. */ #undef FUNCTION_PROFILER #define FUNCTION_PROFILER(FILE, LABELNO) \ - fputs (flag_pic ? "\tcall mcount@PLT\n": "\tcall mcount\n", FILE); + fputs (flag_pic ? "\tcall __mcount@PLT\n": "\tcall __mcount\n", FILE); /* Assembler format: exception region output. */ |