]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add function link_elf_get_gp(), specific to ia64 for now, to get
authormarcel <marcel@FreeBSD.org>
Sun, 21 Apr 2002 21:08:30 +0000 (21:08 +0000)
committermarcel <marcel@FreeBSD.org>
Sun, 21 Apr 2002 21:08:30 +0000 (21:08 +0000)
commit84ecc1bfc1e9c35c1e8d63c892ea7f4fbd01f396
tree745d9e23292cef4ba528d7c410f78377f0a1dde6
parentdc941e21d52b31176fe0eccccebef9f4dec29970
Add function link_elf_get_gp(), specific to ia64 for now, to get
the DT_PLTGOT value. On ia64 this is the value of GP. We need this
to construct function descriptors, but the elf file structure is
not exported to MD code.

Note that the name of the function is based on the meaning that
DT_PLTGOT has on ia64. This may differ on other architectures. As
such, link_elf_get_gp() has a high level of MD to it. Renaming the
function to describe what DT_* value is returned makes it generic,
but also makes the MD code less clear and if we only need this on
ia64, then a general name for a specific function doesn't help.

In short: I don't know what is "right" at this time, so I'll go
with what I have.
sys/kern/link_elf.c
sys/kern/link_elf_obj.c