|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] xen-unstable: fix stubdom newlib SIZE_MAX definition
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
stubdom-Makefile-add-newlib-size_max-patch.patch
Description: Text Data
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] xen-unstable: fix stubdom newlib SIZE_MAX definition in stdint.h,
Pasi Kärkkäinen <=
|
|
|
|
|