[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen-unstable: fix stubdom newlib SIZE_MAX definition in stdint.h



Hello,

While working on adding bzip2/lzma decompression support into stubdom/pvgrub
I noticed a problem in newlib 1.16.0 (current version in xen-unstable)
libc/include/stdint.h.

It defines SIZE_MAX like this:

#define SIZE_MAX __STDINT_EXP(LONG_MAX)

Which is an incorrect signed value. This problem is fixed in upstream 
newlib 1.17.0. The correct definition is this:

#ifdef __SIZE_MAX__
#define SIZE_MAX __SIZE_MAX__
#else
#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1)
#endif

The attached patches fix this problem. These are needed for being able to
build lzma (xz) libs for stubdom/pvgrub.

-- Pasi

Attachment: stubdom-Makefile-add-newlib-size_max-patch.patch
Description: Text Data

Attachment: newlib-stdint-size_max-fix-from-1.17.0.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.