about summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
Diffstat (limited to 'csu')
-rw-r--r--csu/initfini.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/csu/initfini.c b/csu/initfini.c
index 8fe2368e36..28e822b38c 100644
--- a/csu/initfini.c
+++ b/csu/initfini.c
@@ -70,8 +70,7 @@ _init (void)
      gcrt1.o to reference a symbol which would be defined by some library
      module which has a constructor; but then user code's constructors
      would come first, and not be profiled.  */
-  extern void __gmon_start__ (void) __attribute__ ((weak));
-  weak_symbol (__gmon_start__)
+  extern void __gmon_start__ (void); weak_extern (__gmon_start__)
   if (__gmon_start__)
     __gmon_start__ ();