Proposed elf header changes which affect PPC and ARM
John Birrell
jb at what-creek.com
Wed Oct 4 14:27:28 PDT 2006
On Wed, Oct 04, 2006 at 08:20:04PM +0000, John Birrell wrote:
> On Wed, Oct 04, 2006 at 09:14:26PM +0530, Joseph Koshy wrote:
> > >The patch: <http://people.freebsd.org/~jb/elf.patch> moves
> > >all the relocation definitions for each arch from the machine/elf.h
> > >header to sys/elf_common.h.
> >
> > What's the semantic difference between an 'Lword' and an 'Xword'?
> >
> > + typedef uint64_t Elf32_Lword;
> >
> > and...
> >
> > typedef int32_t Elf64_Sword;
> > typedef int64_t Elf64_Sxword;
> > typedef uint32_t Elf64_Word;
> > + typedef uint64_t Elf64_Lword;
> > typedef uint64_t Elf64_Xword;
>
> I'm not sure there is any. It's just something that OpenSolaris code
> expects.
I looked a bit further at this and I think that Lword probably changes
it's size on OpenSolaris to be 32 bits if the code is being compiled in
32 bit mode whereas Xword is always 64 bits.
--
John Birrell
More information about the freebsd-ppc
mailing list