From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Question about .opd section
Date: Mon, 03 Feb 2003 19:19:29 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590709805799@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590709805798@msgid-missing>
>>>>> On Mon, 3 Feb 2003 08:37:48 -0800, "Wichmann, Mats D" <mats.d.wichmann@intel.com> said:
Mats> The gnu toolchain (well, binutils) emits a .opd section
Mats> for architectures which use function descriptors -
Mats> it's not unique to Itanium.
As far as I know, this is an HPism (originally coming from HP-UX
PA-RISC). "opd" stands for "official procedure descriptor". the
"official" is in the sense that the address of each descriptor serves
as the canonical "address" of the function it's describing; i.e., this
is what makes function-pointer comparisons work.
Mats> But I can't find much information about it. Google has been
Mats> unhelpful (to me, anyway) on this one. It's described as
Mats> holding function descriptors, but I'm not clear who uses this
Mats> information - is this used at runtime?
Nothing at run-time directly references the .opd section, but of
course whenever you call a function through a pointer, you'll end up
loading the function's global-pointer and it's entry point from a
descriptor. The main program's descriptor are stored in .opd (for
shared objects, the function descriptors are created at runtime, by
the runtime loader).
Mats> Is this section considered normal/required for
Mats> Linux/ia64? I'm asking because it wasn't in the
Mats> Itanium psABI, and thus didn't make it into the
Mats> current version of the Itanium LSB spec; our
Mats> application checker tool is flagging this as an
Mats> unknown section.
It might be good to document it in the LSB. There might be tools out
there that assume that .opd contains nothing but function descriptors,
so if someone put something else in there, things might go wrong badly
(which reeminds me: the ptrace-support in libunwind accesses .opd as a
fallback-mechanism to determine the global-pointer of the main
program; so there is at least one library out there that would break
if .opd contained other stuff).
--david
next prev parent reply other threads:[~2003-02-03 19:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-03 16:37 [Linux-ia64] Question about .opd section Wichmann, Mats D
2003-02-03 19:19 ` David Mosberger [this message]
2003-02-03 20:55 ` Jim Wilson
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=marc-linux-ia64-105590709805799@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@vger.kernel.org \
/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