aboutsummaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
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 8c66905..25f5561 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