mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +00:00
Make ZipOS and Qemu work better
This change improves the dirstream library in a lot of respects, especially for /zip/... files. Also turn off MAP_STACK on Aarch64 because Qemu seems to implement it differently than Linux and it's probably responsible for a lot of mysterious crashes.
This commit is contained in:
parent
4658ae539f
commit
110559ce6a
48 changed files with 748 additions and 500 deletions
|
@ -742,14 +742,6 @@ void abort(void) wontreturn;
|
|||
#pragma GCC diagnostic error "-Wtrampolines"
|
||||
#if __GNUC__ >= 6
|
||||
#pragma GCC diagnostic error "-Wnonnull-compare"
|
||||
#if defined(_COSMO_SOURCE) && !defined(MODE_DBG) && \
|
||||
!defined(STACK_FRAME_UNLIMITED)
|
||||
#pragma GCC diagnostic error "-Wframe-larger-than=131072"
|
||||
#if __GNUC__ >= 9
|
||||
// #pragma GCC diagnostic error "-Walloca-larger-than=1024"
|
||||
// #pragma GCC diagnostic error "-Wvla-larger-than=1024"
|
||||
#endif /* GCC 9+ */
|
||||
#endif /* STACK_FRAME_UNLIMITED */
|
||||
#elif __GNUC__ >= 9
|
||||
#pragma GCC diagnostic error /* e.g. fabs not abs */ "-Wabsolute-value"
|
||||
#endif /* GCC 6+ */
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
#define __BIGGEST_ALIGNMENT__ 16
|
||||
#endif
|
||||
|
||||
#define APE_STACKSIZE 4194304 /* default 4mb stack */
|
||||
#define APE_STACKSIZE 8388608 /* default 8mb stack */
|
||||
#define APE_PAGESIZE 0x10000 /* i386+ */
|
||||
#ifdef _COSMO_SOURCE
|
||||
#define FRAMESIZE 0x10000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue