This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Make obstack 64bit - to handle >2GB objects


Hi,

attaching proposed API change (UNTESTED).  The new interface should be
compatible in general with AFAIK only one little exception in the case of:
	printf ("%d", obstack_memory_used (&obstack));
->
	printf ("%zu", obstack_memory_used (&obstack));

The new 2.6 ABI would accept SIZE_T/PTR_INT_TYPE arguments while the legacy 2.5
ABI would be still backward compatible providing INTs for existing binaries.
The INT compatibility ABI would be a SIZE_T/PTR_INT_TYPE ABI wrapper only.

I would code the complete patch if this API/ABI change gets approved.


GDB currently fails on handling >2GB DWARF sections as it depends on glibc
obstack being currently limited to INT sized allocated objects.

While I have working GDB patch to upgrade its GDB static obstack to 64 bits
I believe the system glibc obstack should be updated anyway for other apps.
Also GDB would not have to start using its own incompatible static obstack.



Regards,
Jan

Attachment: glibc-obstack-2g.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]