diff options
| -rw-r--r-- | Rules.mak | 7 | ||||
| -rw-r--r-- | libc/stdlib/abort.c | 2 | 
2 files changed, 9 insertions, 0 deletions
| @@ -47,6 +47,9 @@ MALLOC = malloc  # lfs.  This surrently does nothing...  DOLFS = false +# Enable stuff that is broken (to fix it of course....) +DO_FIXME_STUFF = true +  # Disable this if your CPU has a memory management unit (MMU)  HAS_MMU = true @@ -92,6 +95,10 @@ ifneq ($(HAS_FLOATS),true)      CFLAGS += -D__HAS_NO_FLOATS__  endif +ifneq ($(DO_FIXME_STUFF),true) +    CFLAGS += -DFIXME +endif +  # Use '-ffunction-sections -fdata-sections' and '--gc-sections' if they work diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c index 11448bfb9..5fb8be599 100644 --- a/libc/stdlib/abort.c +++ b/libc/stdlib/abort.c @@ -32,11 +32,13 @@ extern void _exit __P((int __status)) __attribute__ ((__noreturn__));  /* Cause an abnormal program termination with core-dump.  */  void abort(void)  { +#if FIXME  	sigset_t sigset;  	if (sigemptyset(&sigset) == 0 && sigaddset(&sigset, SIGABRT) == 0) {  		sigprocmask(SIG_UNBLOCK, &sigset, (sigset_t *) NULL);  	} +#endif  	if (__cleanup)  		__cleanup(); | 
