From: Cary Coutant <cary@cup.hp.com>
To: "David Huggins-Daines" <dhd@linuxcare.com>
Cc: <parisc-linux@thepuffingroup.com>
Subject: Re: [parisc-linux] PIC code generation in gcc/binutils
Date: Tue, 25 Jul 2000 10:20:38 -0700 [thread overview]
Message-ID: <200007251722.KAA02283@adlmail.cup.hp.com> (raw)
>I can see some advantages in this even with a non-segmented runtime
>architecture - theoretically, having the GP be managed by the caller
>rather than the callee should make intramodule calls in
>position-independent code more efficient. (I think so at least)
Yes, it does have that advantage, and we take advantage of it when we can
determine at compile time that the callee is in the same load module.
>One thing I have not figured out is how the GP is "bootstrapped" in
>the startup code for the dynamic linker itself - how does ELF64 on
>HP/UX deal with this problem?
The kernel loader passes a "load info" record to the dynamic loader as
the fourth parameter (after argc, argv, and envp). This record contains,
among other things, the load addresses of the dynamic loader's text and
data segments. The dynamic loader's startup code materializes its own gp
based on the base address of its data segment.
-cary
next reply other threads:[~2000-07-25 17:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-25 17:20 Cary Coutant [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-07-25 17:21 [parisc-linux] PIC code generation in gcc/binutils Cary Coutant
2000-07-24 23:58 Cary Coutant
2000-07-25 0:05 ` Ulrich Drepper
2000-07-25 0:23 ` David Huggins-Daines
2000-07-25 1:12 ` Alan Modra
2000-07-25 14:36 ` Matthew Wilcox
2000-07-25 15:16 ` Matthew Wilcox
2000-07-18 17:58 David Huggins-Daines
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=200007251722.KAA02283@adlmail.cup.hp.com \
--to=cary@cup.hp.com \
--cc=dhd@linuxcare.com \
--cc=parisc-linux@thepuffingroup.com \
/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