[parisc-linux] ELF ABI Documents
Randolph Chung
randolph at tausq.org
Mon Apr 17 21:00:24 MDT 2006
> It's most common in the LSB specs to refer to the ELF psabi document
> where possible. http://refspecs.freestandards.org/elf/elf-pa.pdf seems
> to be a copy of the psabi document, but when checking with some folks,
> it looks like the document isn't a reflection on reality for
> parisc-linux. The question is, should the document be updated to
> reflect reality, should we slowly change to match the document, or
> should I just not refer to the psabi document much when writing the LSB
> document?
First of all, I want to say that such a document would be wonderful to have!
I think the ELF-PA document corresponds mostly with what we do on
parisc-linux. There are some things we don't implement (e.g. I don't
think we have PCREL14WR/PCREL14DR), and we have made some enhancements
in other areas (e.g. TLS relocations). The only thing that I know of
where we don't follow the spec is how we handle SEGREL32 - we don't use
a SEGBASE relocation to set the segment base, but rely on other
information from the ELF headers.
I don't think the ELF spec talks about calling conventions and syscall
conventions though. For that, parisc-linux mostly follows the SOM spec
for calling conventions
(http://ftp.parisc-linux.org/docs/arch/pa-runtime-32-SOM.pdf)
A document about hppa ABI will not be complete without some discussion
about the hppa unwinding mechanism too.
my 2 cents :)
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
More information about the parisc-linux
mailing list