diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-04-24 04:40:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-04-24 04:40:38 +0000 |
commit | 7e9463020bc7ef69f66eb4bb27c1a1e065cdc90c (patch) | |
tree | 77c79091d1a1b27f9e59687c6a734e0da0b001ff /linuxthreads/sysdeps/pthread/pt-initfini.c | |
parent | b5edfe6131a117b91ee5c104e475d5fd49285156 (diff) | |
download | glibc-7e9463020bc7ef69f66eb4bb27c1a1e065cdc90c.tar.gz glibc-7e9463020bc7ef69f66eb4bb27c1a1e065cdc90c.tar.xz glibc-7e9463020bc7ef69f66eb4bb27c1a1e065cdc90c.zip |
Update.
* sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init): We don't have to call __gmon_start__ in the libpthread DSO. * sysdeps/pthread/pt-initfini.c (_init): Likewise.
Diffstat (limited to 'linuxthreads/sysdeps/pthread/pt-initfini.c')
-rw-r--r-- | linuxthreads/sysdeps/pthread/pt-initfini.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/linuxthreads/sysdeps/pthread/pt-initfini.c b/linuxthreads/sysdeps/pthread/pt-initfini.c index 8694f7ba64..55d9f31562 100644 --- a/linuxthreads/sysdeps/pthread/pt-initfini.c +++ b/linuxthreads/sysdeps/pthread/pt-initfini.c @@ -70,16 +70,6 @@ call_initialize_minimal (void) __pthread_initialize_minimal (); } -static void -call_gmon_start(void) -{ - extern void __gmon_start__ (void) __attribute__ ((weak)); /*weak_extern (__gmon_start__);*/ - void (*gmon_start) (void) = __gmon_start__; - - if (gmon_start) - gmon_start (); -} - SECTION (".init"); extern void _init (void); void @@ -88,14 +78,6 @@ _init (void) /* The very first thing we must do is to set up the registers. */ call_initialize_minimal (); - /* We cannot use the normal constructor mechanism in gcrt1.o because it - appears before crtbegin.o in the link, so the header elt of .ctors - would come after the elt for __gmon_start__. One approach is for - 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. */ - call_gmon_start (); - asm ("ALIGN"); asm("END_INIT"); /* Now the epilog. */ |