This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11724] ld.so - Initialization and Termination Functions incorrectly ordered
- From: "werkt0 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Jun 2010 20:16:43 -0000
- Subject: [Bug libc/11724] ld.so - Initialization and Termination Functions incorrectly ordered
- References: <20100618183323.11724.werkt0@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From werkt0 at gmail dot com 2010-06-18 20:16 -------
Created an attachment (id=4852)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4852&action=view)
topological sort implementation for dependency resolution
I've used the implementation of tsort from coreutils here almost verbatim. One
point of contention might be the (long) cast for comparison in dl-tsort.c - if
there's a better portable pointer equiv integer type that will give a negative
value for subtraction (since pointers won't), that will be fine. Obviously
this introduces some recursion into ld.so, and I saw in a comment that that is
not desirable. This implementation works to provide correct init and fini
ordering for everything I've thrown at it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11724
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.