diff options
Diffstat (limited to 'usr/src/uts/Makefile.uts')
-rw-r--r-- | usr/src/uts/Makefile.uts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/src/uts/Makefile.uts b/usr/src/uts/Makefile.uts index 841e84e40a..ff1f86f846 100644 --- a/usr/src/uts/Makefile.uts +++ b/usr/src/uts/Makefile.uts @@ -190,6 +190,15 @@ include $(SRC)/Makefile.smatch SMOFF += sizeof # +# Add specific compiler options that are required based on the +# architecture in question. +# +CFLAGS_uts_i386 += -_gcc7=-mindirect-branch=thunk-extern +CFLAGS_uts_i386 += -_gcc7=-mindirect-branch-register +CFLAGS_uts_i386 += -_gcc8=-mindirect-branch=thunk-extern +CFLAGS_uts_i386 += -_gcc8=-mindirect-branch-register + +# # Ensure that the standard function prologue remains at the very start # of a function, so DTrace fbt will instrument the right place. # |