diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | NEWS.md | 5 | ||||
-rw-r--r-- | fail.c | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 48113a5..8c97b96 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ ALL=fail -CFLAGS=-g -O1 -Wall -Wno-switch -Wextra -Wwrite-strings -fPIE +NOWARN=-Wno-switch -Wno-infinite-recursion -Wno-array-bounds -Wno-stringop-overflow +CFLAGS=-g -O1 -Wall -Wextra -Wwrite-strings $(NOWARN) -fPIE LDFLAGS=-pie DESTDIR= diff --git a/NEWS.md b/NEWS.md index 660423b..317044c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +## 0.4 (2020-01-01) + +- add `-S` to trigger stack smashing +- support for illegal instructions on PPC + ## 0.3 (2019-02-08) - add `-R` to trigger an infinite recursion that uses alloca(3) heavily diff --git a/fail.c b/fail.c index a054e6e..b1d3191 100644 --- a/fail.c +++ b/fail.c @@ -127,6 +127,8 @@ void illegalins() __asm__ __volatile__ (".word 0x00800011" : : : "memory"); #elif defined(__powerpc__) __asm__ __volatile__ (".long 0" : : : "memory"); +#elif defined(__riscv) + __asm__ __volatile__ ("unimp" : : : "memory"); #else #error implement illegalins for this architecture #endif |