Mercurial > dropbear
comparison configure.ac @ 1505:55120acb9994
Add Spectre v2 mitigations for GCC (#54)
author | Loganaden Velvindron <logan@hackers.mu> |
---|---|
date | Fri, 16 Feb 2018 19:35:32 +0400 |
parents | 9b87cbe931e3 |
children | 5916af64acd4 93a3726a36d6 |
comparison
equal
deleted
inserted
replaced
1504:bd0bc6b5a87c | 1505:55120acb9994 |
---|---|
108 ) | 108 ) |
109 ] | 109 ] |
110 ) | 110 ) |
111 # FORTIFY_SOURCE | 111 # FORTIFY_SOURCE |
112 DB_TRYADDCFLAGS([-D_FORTIFY_SOURCE=2]) | 112 DB_TRYADDCFLAGS([-D_FORTIFY_SOURCE=2]) |
113 | |
114 # Spectre v2 mitigations | |
115 DB_TRYADDCFLAGS([-mfunction-return=thunk]) | |
116 DB_TRYADDCFLAGS([-mindirect-branch=thunk]) | |
117 | |
113 fi | 118 fi |
114 | 119 |
115 # large file support is useful for scp | 120 # large file support is useful for scp |
116 AC_SYS_LARGEFILE | 121 AC_SYS_LARGEFILE |
117 | 122 |