[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185163: marked as done (__gmon_start__ causes problems for versioned symbols on hppa)



Your message dated Sun, 02 May 2004 11:30:36 +0900
with message-id <81d65na7cj.wl@omega.webmasters.gr.jp>
and subject line Bug#185163: __gmon_start__ causes problems for versioned symbols on hppa
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Mar 2003 15:46:57 +0000
>From aps100@doc.ic.ac.uk Mon Mar 17 09:46:56 2003
Return-path: <aps100@doc.ic.ac.uk>
Received: from public1-sout4-4-cust172.sout.broadband.ntl.com (cyclone) [80.4.241.172] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18uwpE-0002rQ-00; Mon, 17 Mar 2003 09:46:56 -0600
Received: from aps100 by cyclone with local (Exim 3.36 #1 (Debian))
	id 18uwpD-0001bj-00
	for <submit@bugs.debian.org>; Mon, 17 Mar 2003 15:46:55 +0000
Date: Mon, 17 Mar 2003 15:46:55 +0000
From: Andrew Suffield <asuffield@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: __gmon_start__ causes problems for versioned symbols on hppa
Message-ID: <20030317154655.GA6168@doc.ic.ac.uk>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp"
Content-Disposition: inline
X-Reportbug-Version: 2.10
X-Monty-Python: No-one expects the Spanish Inquisition!
User-Agent: Mutt/1.5.3i
Sender: Andrew Suffield <aps100@doc.ic.ac.uk>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-2.6 required=4.0
	tests=HAS_PACKAGE,PGP_SIGNATURE_2,SPAM_PHRASE_00_01,USER_AGENT,
	      USER_AGENT_MUTT
	version=2.44
X-Spam-Level: 


--LQksG6bCIzRHxTLp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: libc6
Version: 2.3.1-14
Severity: normal

In sysdeps/hppa/elf/initfini.c we have this:
/* If we use the standard C version, the linkage table pointer won't
   be properly preserved due to the splitting up of function prologues
   and epilogues.  Therefore we write these in assembly to make sure
   they do the right thing.

   Note that we cannot have a weak undefined __gmon_start__, because
   that would require this to be PIC, and the linker is currently not
   able to generate a proper procedure descriptor for _init.  Sad but
   true.  Anyway, HPPA is one of those horrible architectures where
   making the comparison and indirect call is quite expensive (see the
   comment in sysdeps/generic/initfini.c). */
=2E..
        .text\n\
        .align 4\n\
        .weak   __gmon_start__\n\
        .type    __gmon_start__,@function\n\
__gmon_start__:\n\
	.proc\n\
	.callinfo\n\
	.entry\n\
        bv,n %r0(%r2)\n\
	.exit\n\
	.procend\n\

In order to work around this bug, a dummy, weak symbol __gmon_start__
has been introduced, which I can only presume would be overridden by
the real one when necessary. Unfortunately this means that all DSOs
will contain a weak definition of __gmon_start__. If we then have a
linker script that assigns a symbol version to all symbols, then this
symbol gets a version node attached to it - and everything breaks
horribly:

/usr/bin/ld: libbaz.so.1: undefined versioned symbol name __gmon_start__@@B=
AR2
(paer, 2003/03/17)

Something needs to happen to prevent this. The most obvious approach
is to prevent the symbol from appearing externally at all - is it
still necessary? Failing that, the linker needs to know that it should
hide this symbol and/or not version it.

[This makes it unnecessarily difficult to use versioned symbols (in
combination with a similar gcc bug on powerpc).]

--=20
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ | Dept. of Computing,
 `. `'                          | Imperial College,
   `-             -><-          | London, UK

--LQksG6bCIzRHxTLp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+de3vlpK98RSteX8RAn/3AJ9ccDPQvHktChm2ZGHZ156WAbYr3QCeIroT
ucs5MkmjWa9XGGW+5LtceFM=
=HrBM
-----END PGP SIGNATURE-----

--LQksG6bCIzRHxTLp--

---------------------------------------
Received: (at 185163-done) by bugs.debian.org; 2 May 2004 02:30:37 +0000
>From gotom@debian.or.jp Sat May 01 19:30:37 2004
Return-path: <gotom@debian.or.jp>
Received: from omega.webmasters.gr.jp (webmasters.gr.jp) [218.44.239.78] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BK6kX-0000fB-00; Sat, 01 May 2004 19:30:37 -0700
Received: from omega.webmasters.gr.jp (localhost [127.0.0.1])
	by webmasters.gr.jp (Postfix) with ESMTP
	id 74CF7DEDF5; Sun,  2 May 2004 11:30:36 +0900 (JST)
Date: Sun, 02 May 2004 11:30:36 +0900
Message-ID: <81d65na7cj.wl@omega.webmasters.gr.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: Daniel Jacobowitz <dan@debian.org>, 185163-done@bugs.debian.org
Cc: Andrew Suffield <asuffield@debian.org>, 185166@bugs.debian.org
Subject: Re: Bug#185163: __gmon_start__ causes problems for versioned symbols on hppa
In-Reply-To: <20030317173034.GA23773@nevyn.them.org>
References: <20030317154655.GA6168@doc.ic.ac.uk>
	<20030317173034.GA23773@nevyn.them.org>
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: 185163-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 2

At Mon, 17 Mar 2003 12:30:34 -0500,
Daniel Jacobowitz wrote:
> Actually, both this and your other bug are really linker bugs, I
> believe.  See the binutils archive for last month, this thread:
>   89    F 02/17 To binutils@sou (0.8K) Versioned symbol linking bug
>   90    C 02/17 Elias Athanasop (0.9K) |->
>   91  r + 02/23 Elias Athanasop (1.4K) | `->
>   92  N   02/25 Alan Modra      (3.7K) `->                                                              
> 
> The patch in Alan's message needs to be tested.  It was originally
> found on PPC building wxWindows.

James wrote in #185166:

> AFAICS from these threads this should now be fixed; please reopen if
> it's not.

According to the post of Daniel and James, this bugs should be fixed.
I close this bug.  Andrew, if you still find the problem, please
reopen it.

Regards,
-- gotom



Reply to: