From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27983 invoked by alias); 14 May 2007 20:28:58 -0000 Received: (qmail 27970 invoked by uid 22791); 14 May 2007 20:28:57 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate8.de.ibm.com (HELO mtagate8.de.ibm.com) (195.212.29.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 May 2007 20:28:53 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate8.de.ibm.com (8.13.8/8.13.8) with ESMTP id l4EKSo9T065446 for ; Mon, 14 May 2007 20:28:50 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l4EKSoUH3825898 for ; Mon, 14 May 2007 22:28:50 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l4EKSnxL008392 for ; Mon, 14 May 2007 22:28:50 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l4EKSnKW008389; Mon, 14 May 2007 22:28:49 +0200 Message-Id: <200705142028.l4EKSnKW008389@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 14 May 2007 22:28:49 +0200 Subject: Re: [rfc] Eliminate write_register from solib-sunos.c To: drow@false.org (Daniel Jacobowitz) Date: Mon, 14 May 2007 20:28:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <20070514152149.GA15148@caradoc.them.org> from "Daniel Jacobowitz" at May 14, 2007 11:21:49 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00255.txt.bz2 Daniel Jacobowitz wrote: > On Mon, May 14, 2007 at 05:00:12PM +0200, Ulrich Weigand wrote: > > Interestingly enough, it would appear that none of the Solaris targets > > are actually using solib-sunos.o. The only references I can find are > > in various bsd *native* target's .mh files. > > > > In fact, this is very weird as those same bsd targets have solib-svr4.o > > in their .mt files. Which one is getting used in that case? I'll try > > to find out what's going on here ... > > Don't confuse SunOS and Solaris :-) I believe that solib-sunos.c is > for a.out shared libraries. However I don't know which one ends up > used... maybe they're getting lucky with link order? That's it: the TDEP files come *before* NAT files in link order, thus the _initialize_svr4_solib function is called before _initialize_sunos_solib in init.c, and as both set the current_target_so_ops variable, the second call wins. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com