about summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-20 08:47:01 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-20 08:47:01 +0000
commit1eab136137fe8b27f7c8ef2d4bee4c07c1821be3 (patch)
tree3e1075151ce9866843a821d3d85883f5218d8858 /csu
parent73ea3b1baecb3b3bb45fbac1f07dbf1f47845f02 (diff)
downloadglibc-1eab136137fe8b27f7c8ef2d4bee4c07c1821be3.tar.gz
glibc-1eab136137fe8b27f7c8ef2d4bee4c07c1821be3.tar.xz
glibc-1eab136137fe8b27f7c8ef2d4bee4c07c1821be3.zip
Always have prototype for __gmon_start.
Diffstat (limited to 'csu')
-rw-r--r--csu/gmon-start.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/csu/gmon-start.c b/csu/gmon-start.c
index 25f5561128..b5ad6f6ae8 100644
--- a/csu/gmon-start.c
+++ b/csu/gmon-start.c
@@ -1,5 +1,5 @@
 /* Code to enable profiling at program startup.
-   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,11 +33,12 @@ extern void _start, etext;
    mechanism.  We link this file together with start.o to produce gcrt1.o,
    so this constructor will be first in the list.  */
 
-void __gmon_start__ (void) __attribute__ ((constructor));
+extern void __gmon_start__ (void) __attribute__ ((constructor));
 #else
 /* In ELF and COFF, we cannot use the normal constructor mechanism to call
    __gmon_start__ because gcrt1.o appears before crtbegin.o in the link.
    Instead crti.o calls it specially (see initfini.c).  */
+extern void __gmon_start__ (void);
 #endif
 
 void