public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
@ 2003-02-04 15:00 Martin Schwidefsky
  2003-02-04 15:02 ` Jakub Jelinek
  2003-02-04 15:19 ` Andreas Schwab
  0 siblings, 2 replies; 11+ messages in thread
From: Martin Schwidefsky @ 2003-02-04 15:00 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: libc-hacker


Hi Andreas,
> The dynmic linker is crashing on me when PI_STATIC_AND_HIDDEN is
> defined, due to early use of the GOT.  I had to remove the definition
> from sysdeps/s390/s390-{32,64}/elf/configure.in to make it work.

I assume that this has been done with the CVS head. What are the
configuration options to get it to fail like that? It certainly works
in my configuration (--with-tls --enable-add-ons=nptl).

blue skies,
   Martin


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
  2003-02-04 15:00 PI_STATIC_AND_HIDDEN does not work on s390[x] Martin Schwidefsky
@ 2003-02-04 15:02 ` Jakub Jelinek
  2003-02-04 15:19 ` Andreas Schwab
  1 sibling, 0 replies; 11+ messages in thread
From: Jakub Jelinek @ 2003-02-04 15:02 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: Andreas Schwab, libc-hacker

On Tue, Feb 04, 2003 at 03:58:57PM +0100, Martin Schwidefsky wrote:
> 
> Hi Andreas,
> > The dynmic linker is crashing on me when PI_STATIC_AND_HIDDEN is
> > defined, due to early use of the GOT.  I had to remove the definition
> > from sysdeps/s390/s390-{32,64}/elf/configure.in to make it work.
> 
> I assume that this has been done with the CVS head. What are the
> configuration options to get it to fail like that? It certainly works
> in my configuration (--with-tls --enable-add-ons=nptl).

It works for me too (--with-tls --without-__thread --enable-add-ons=linuxthreads),
gcc-3_2-rhl8-branch, binutils-2.13.90.0.16 plus s390* TLS patch.

	Jakub

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
  2003-02-04 15:00 PI_STATIC_AND_HIDDEN does not work on s390[x] Martin Schwidefsky
  2003-02-04 15:02 ` Jakub Jelinek
@ 2003-02-04 15:19 ` Andreas Schwab
  2003-02-04 15:22   ` Jakub Jelinek
  1 sibling, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2003-02-04 15:19 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: libc-hacker

"Martin Schwidefsky" <schwidefsky@de.ibm.com> writes:

|> Hi Andreas,
|> > The dynmic linker is crashing on me when PI_STATIC_AND_HIDDEN is
|> > defined, due to early use of the GOT.  I had to remove the definition
|> > from sysdeps/s390/s390-{32,64}/elf/configure.in to make it work.
|> 
|> I assume that this has been done with the CVS head. What are the
|> configuration options to get it to fail like that? It certainly works
|> in my configuration (--with-tls --enable-add-ons=nptl).

Just using the default configuration, no tls.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
  2003-02-04 15:19 ` Andreas Schwab
@ 2003-02-04 15:22   ` Jakub Jelinek
  2003-02-04 15:31     ` Andreas Schwab
  0 siblings, 1 reply; 11+ messages in thread
From: Jakub Jelinek @ 2003-02-04 15:22 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Martin Schwidefsky, libc-hacker

On Tue, Feb 04, 2003 at 04:19:08PM +0100, Andreas Schwab wrote:
> "Martin Schwidefsky" <schwidefsky@de.ibm.com> writes:
> 
> |> Hi Andreas,
> |> > The dynmic linker is crashing on me when PI_STATIC_AND_HIDDEN is
> |> > defined, due to early use of the GOT.  I had to remove the definition
> |> > from sysdeps/s390/s390-{32,64}/elf/configure.in to make it work.
> |> 
> |> I assume that this has been done with the CVS head. What are the
> |> configuration options to get it to fail like that? It certainly works
> |> in my configuration (--with-tls --enable-add-ons=nptl).
> 
> Just using the default configuration, no tls.

I don't think TLS changes anything here. What exact gcc and binutils are
you using is more interesting. Perhaps a configure test could be written
for that.

	Jakub

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
  2003-02-04 15:22   ` Jakub Jelinek
@ 2003-02-04 15:31     ` Andreas Schwab
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Schwab @ 2003-02-04 15:31 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Martin Schwidefsky, libc-hacker

Jakub Jelinek <jakub@redhat.com> writes:

|> I don't think TLS changes anything here. What exact gcc and binutils are
|> you using is more interesting. Perhaps a configure test could be written
|> for that.

I've used gcc 3.3-CVS, binutils 2.13.90.0.18.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
  2003-02-10 12:57 Martin Schwidefsky
@ 2003-02-10 13:19 ` Andreas Schwab
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Schwab @ 2003-02-10 13:19 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: Jakub Jelinek, libc-hacker

"Martin Schwidefsky" <schwidefsky@de.ibm.com> writes:

|> > Do you have a pointer to the patch?  Is this fixed in the 3.3 branch?
|> 
|> Uli says that the binds_local_p fix is part of the TLS patch. Do you
|> need a patch that just fixes the binds_local_p problem or can you live
|> with the TLS patch as it is?

IMHO there should be a configure test and PI_STATIC_AND_HIDDEN only be
enabled when it works.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
@ 2003-02-10 12:57 Martin Schwidefsky
  2003-02-10 13:19 ` Andreas Schwab
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Schwidefsky @ 2003-02-10 12:57 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Jakub Jelinek, libc-hacker


> Do you have a pointer to the patch?  Is this fixed in the 3.3 branch?

Uli says that the binds_local_p fix is part of the TLS patch. Do you
need a patch that just fixes the binds_local_p problem or can you live
with the TLS patch as it is?

blue skies,
   Martin


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
  2003-02-07  9:39 Martin Schwidefsky
@ 2003-02-07 10:12 ` Andreas Schwab
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Schwab @ 2003-02-07 10:12 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: Jakub Jelinek, libc-hacker

"Martin Schwidefsky" <schwidefsky@de.ibm.com> writes:

|> > > I've used gcc 3.3-CVS, binutils 2.13.90.0.18.
|> >
|> > Getting closer. gcc 3.3 accesses _rtld_local via the GOT
|> > although it is declared as hidden.
|> 
|> Asked our compiler-man and Uli said that there has been a problem
|> in gcc 3.3 with local binding of symbols. This was fixed some time
|> ago. An update of gcc should help.

Do you have a pointer to the patch?  Is this fixed in the 3.3 branch?

Thanks, Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
@ 2003-02-07  9:39 Martin Schwidefsky
  2003-02-07 10:12 ` Andreas Schwab
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Schwidefsky @ 2003-02-07  9:39 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Jakub Jelinek, libc-hacker


> > I've used gcc 3.3-CVS, binutils 2.13.90.0.18.
>
> Getting closer. gcc 3.3 accesses _rtld_local via the GOT
> although it is declared as hidden.

Asked our compiler-man and Uli said that there has been a problem
in gcc 3.3 with local binding of symbols. This was fixed some time
ago. An update of gcc should help.

blue skies,
   Martin


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: PI_STATIC_AND_HIDDEN does not work on s390[x]
@ 2003-02-05 18:13 Martin Schwidefsky
  0 siblings, 0 replies; 11+ messages in thread
From: Martin Schwidefsky @ 2003-02-05 18:13 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Jakub Jelinek, libc-hacker


> I've used gcc 3.3-CVS, binutils 2.13.90.0.18.

Getting closer. gcc 3.3 accesses _rtld_local via the GOT
although it is declared as hidden.

blue skies,
   Martin


^ permalink raw reply	[flat|nested] 11+ messages in thread

* PI_STATIC_AND_HIDDEN does not work on s390[x]
@ 2003-02-03 15:25 Andreas Schwab
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Schwab @ 2003-02-03 15:25 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: libc-hacker

The dynmic linker is crashing on me when PI_STATIC_AND_HIDDEN is
defined, due to early use of the GOT.  I had to remove the definition
from sysdeps/s390/s390-{32,64}/elf/configure.in to make it work.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-02-10 13:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-04 15:00 PI_STATIC_AND_HIDDEN does not work on s390[x] Martin Schwidefsky
2003-02-04 15:02 ` Jakub Jelinek
2003-02-04 15:19 ` Andreas Schwab
2003-02-04 15:22   ` Jakub Jelinek
2003-02-04 15:31     ` Andreas Schwab
  -- strict thread matches above, loose matches on Subject: below --
2003-02-10 12:57 Martin Schwidefsky
2003-02-10 13:19 ` Andreas Schwab
2003-02-07  9:39 Martin Schwidefsky
2003-02-07 10:12 ` Andreas Schwab
2003-02-05 18:13 Martin Schwidefsky
2003-02-03 15:25 Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).