public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: law@redhat.com
To: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
Cc: binutils@sources.redhat.com
Subject: Re: Special names tha ld needs to recognize for hppa64-hp-hpux11.X
Date: Mon, 11 Feb 2002 13:48:00 -0000	[thread overview]
Message-ID: <2141.1013457460@porcupine.cygnus.com> (raw)
In-Reply-To: Your message of Mon, 11 Feb 2002 12:08:10 EST. <200202111708.g1BH8AIA009479@hiauly1.hia.nrc.ca>

 In message <200202111708.g1BH8AIA009479@hiauly1.hia.nrc.ca>, "John David 
Anglin
" writes:
 > I have a patch that leaves the dynamic-loader defined symbols undefined.
 > Something additional would be needed if we actually generated a static
 > binary and need to provide these symbols.
Right.  This could possibly be an issue for the PA64 Linux folks, but I
don't see it being an issue in HP-UX land.

 > I think so.  The ones that are provided are supposed to be linker defined
 > according to the "PA-64 Runtime Supplement".  The only questionable one
 > is __TLS_SIZE.  The HP compiler provides a default value for it equal to
 > 0xc8 (at least, it does in a trivial program) while the linker script
 > provides a value of 0.  On the other hand, I presume crt0.o initializes
 > tp (cr27).  How does it find the start of .tbss?  From the elf header?
I suspect __TLS_SIZE can probably be derived by the linker from the size of
the various .t* sections.

I haven't really studied the HP thread local storage scheme, but I suspect
it doesn't need to find the start of tbss, only tdata as the TLS sections
should be used just for initializing thread local data.

I would expect cr27 to be initialized by crt0 or the kernel.

 > That's what the HP linker does.  However, I am not sure it hurts to define
 > the dynamic loader symbols in the linker.  It's definitely simpler.
It could hurt if the symbol is defined by a module that is dl_loaded at
runtime.

 > At the moment, a more serious issue is the treatment of LTOFF_* relocations
 > in static programs (see my mail on this yesterday).  We need to fix this
 > before a decision can be made on the synamic loader defined symbols.
I missed that completely (I've been on the road most of the last week).  Can
you resend it to me privately?

jeff

  reply	other threads:[~2002-02-11 19:54 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-22 11:34 John David Anglin
2002-01-22 12:10 ` DJ Delorie
2002-01-22 13:39 ` law
2002-01-22 13:58   ` John David Anglin
2002-02-07 14:10   ` John David Anglin
2002-02-08 17:55     ` amodra
2002-02-08 15:27   ` John David Anglin
2002-02-11  9:27     ` law
2002-02-11 10:07       ` John David Anglin
2002-02-11 13:48         ` law [this message]
2002-02-12 14:53           ` John David Anglin
     [not found] <no.id>
2002-02-09 17:47 ` John David Anglin
2002-02-12 16:14 ` John David Anglin
2002-02-12 17:38   ` law
2002-02-26 15:20     ` John David Anglin
2002-02-26 21:58       ` Alan Modra
2002-02-27  0:32         ` John David Anglin
2002-03-05  9:57       ` law
     [not found] <200202111958.g1BJwRAQ022031@hiauly1.hia.nrc.ca>
2002-02-11 15:35 ` law
2002-02-11 18:40   ` John David Anglin
2002-02-12 11:01     ` law
2002-02-12 11:07       ` John David Anglin
2002-02-12 13:19         ` law
2002-02-12 14:09           ` John David Anglin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2141.1013457460@porcupine.cygnus.com \
    --to=law@redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=dave@hiauly1.hia.nrc.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).