From 0193ab3542d06aeb3bcb89e1a8b7fcc17cf87fa9 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 21 Aug 2003 05:08:16 +0000 Subject: 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. --- gnu/egcs/gcc/config/i386/openbsdelf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/egcs') 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. */ -- cgit v1.2.3