From owner-freebsd-hackers Thu Jan 28 19:29:34 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA09312 for freebsd-hackers-outgoing; Thu, 28 Jan 1999 19:29:34 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA09301 for ; Thu, 28 Jan 1999 19:29:30 -0800 (PST) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id UAA23235; Thu, 28 Jan 1999 20:29:24 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp01.primenet.com, id smtpd023148; Thu Jan 28 20:29:22 1999 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id UAA15833; Thu, 28 Jan 1999 20:29:00 -0700 (MST) From: Terry Lambert Message-Id: <199901290329.UAA15833@usr07.primenet.com> Subject: Re: a.out/ELF differences: C++ static constructor ordering To: bgrayson@marvin.ece.utexas.edu (Brian C. Grayson) Date: Fri, 29 Jan 1999 03:28:52 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <19990127170800.A27484@marvin.ece.utexas.edu> from "Brian C. Grayson" at Jan 27, 99 05:08:00 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I just noticed (after two days of gdb and instrumenting the STL > header files -- fun!) that my current problem stems from the fact > that under ELF, static constructors are invoked in a different > order than under a.out. Sounds like you are compiling ACAP. A correct program is not permitted to rely on order of construction of static constructors. Jeremy Allison patched our version of ACAP to ensure program order matched expeced construction order. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message