Writing Shared Libraries, first draft
Alexander Larsson
alexl at redhat.com
Mon Nov 8 09:34:31 EET 2004
On Fri, 2004-11-05 at 20:31 +0000, Mike Hearn wrote:
> On Fri, 05 Nov 2004 15:09:14 -0500, Matthias Clasen wrote:
> > We do this for class structure, since they typically contain function
> > pointers...
>
> Yeah, probably padding with:
>
> unsigned char pad[32];
>
> or something would be more general then. As long as you know exactly how
> much space it'll take up.
No. This is bad. It'll allow less functions to be added on arches with
64bit function pointers than on 32bit, thus making half the allocated
padding space useless.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl at redhat.com alla at lysator.liu.se
He's a benighted amnesiac assassin plagued by the memory of his family's
brutal murder. She's a chain-smoking red-headed socialite married to the Mob.
They fight crime!
More information about the xdg
mailing list