projects/aports·blob master · refs

16 lines · 697 B

1fortify-headers adds a UD2 instruction because the compiler cannot
2determine the size of "spjump_start" that is used with memmove
3in the remap_spjump() function of pmcl-kernel.c. Disabling this
4allows CCL to run without encountering an "Illegal instruction".
5
6--- a/lisp-kernel/linuxx8664/Makefile
7+++ b/lisp-kernel/linuxx8664/Makefile
8@@ -23,7 +23,7 @@
9 M4FLAGS = -DLINUX -DX86 -DX8664 -DHAVE_TLS
10 CDEFINES = -DLINUX -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE -DHAVE_TLS -DVC_REVISION=$(VC_REVISION) #-DDISABLE_EGC -DUSE_FUTEX
11 CDEBUG = -g
12-COPT = -O2
13+COPT = -O2 -U_FORTIFY_SOURCE
14 # Once in a while, -Wformat says something useful. The odds are against that,
15 # however.
16 WFORMAT = -Wno-format