From owner-freebsd-current Wed Mar 20 9:11:27 2002 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id BC81537B404 for ; Wed, 20 Mar 2002 09:11:20 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g2KHBIu13890; Wed, 20 Mar 2002 09:11:18 -0800 (PST) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id g2KHBFx04348; Wed, 20 Mar 2002 09:11:15 -0800 (PST) (envelope-from jdp) Date: Wed, 20 Mar 2002 09:11:15 -0800 (PST) Message-Id: <200203201711.g2KHBFx04348@vashon.polstra.com> To: current@freebsd.org From: John Polstra Cc: tlambert2@mindspring.com Subject: Re: rtld messing up? In-Reply-To: <3C967B2D.9C0403FD@mindspring.com> References: <200203112131.g2BLVtDN043534@grimreaper.grondar.org> <200203181926.g2IJQxW01655@vashon.polstra.com> <3C967B2D.9C0403FD@mindspring.com> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <3C967B2D.9C0403FD@mindspring.com>, Terry Lambert wrote: > John Polstra wrote: > > All I know is this: The dynamic linker was working just fine for > > years. Then we got a new version of binutils, and lots of problems > > started happening. The dynamic linker wasn't changed -- binutils > > was. I have no idea what got broken, but I kind of doubt that the > > bug is in the dynamic linker. > > The new binutils screws over some basic long-standing assumptions > about field ordering and associativity in the object files, which > are no longer maintained (for whatever reason) in the new version > of the tools. > > Some of them have been identified and repaired (e.g. the Alpha > code changes for the section/segment order assumption), but it > is going to probably be a long battle. > > Technically, the ELF spec permits the ordering, so the assumptions > are really "broken", even though they code for what's really a > defacto-standard of many years, now. 8-(. Can you be more specific? To the best of my knowledge, I made no assumptions beyond what the spec promised. The only exception is that the dynamic linker relies on the program header being in the first page of the file, an assumption shared by the kernel as well. I don't think that assumption is wrong, or nothing would run at all. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message