Subject: lib/37454: __libc_init is not called for static binaries
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 11/30/2007 11:15:01
>Number:         37454
>Category:       lib
>Synopsis:       __libc_init is not called for static binaries
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 30 11:15:01 +0000 2007
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 4.99.38
>Organization:
	
>Environment:
	
	
System: NetBSD 4.99.38
Architecture: i386
Machine: i386
>Description:
	static link doesn't pull initfini.o and its .ctors section.
>How-To-Repeat:
	statically link an application which uses pthread.
>Fix:
	move libc constructors to their own modules (ssp, thread-stub) ?

>Unformatted: