aboutsummaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-21 03:38:54 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-21 03:38:54 +0000
commitdfcaa6429a6cecc15ed49b5a92474c1f54f693c4 (patch)
tree7423b1090f120dc1ee64548a76ed1f02e0f5127d /csu
parent8b07d6a860a8bbaa8e191dcb93fe822c75be9ed9 (diff)
downloadglibc-dfcaa6429a6cecc15ed49b5a92474c1f54f693c4.tar
glibc-dfcaa6429a6cecc15ed49b5a92474c1f54f693c4.tar.gz
glibc-dfcaa6429a6cecc15ed49b5a92474c1f54f693c4.tar.bz2
glibc-dfcaa6429a6cecc15ed49b5a92474c1f54f693c4.zip
(_start): Declared as "extern void". (etext): Likewise.
Diffstat (limited to 'csu')
-rw-r--r--csu/gmon-start.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/csu/gmon-start.c b/csu/gmon-start.c
index 8c66905a3b..25f5561128 100644
--- a/csu/gmon-start.c
+++ b/csu/gmon-start.c
@@ -22,8 +22,11 @@
#include <stdlib.h>
#include <unistd.h>
-/* Beginning and end of our code segment. */
-extern void _start (void), etext (void);
+/* Beginning and end of our code segment. We cannot declare them
+ as the external functions since we want the addresses of those
+ labels. Taking the address of a function may have different
+ meanings on different platforms. */
+extern void _start, etext;
#ifndef HAVE_INITFINI
/* This function gets called at startup by the normal constructor