Logo
Explore Help
Register Sign In
lby/lk
1
0
Fork 0
You've already forked lk
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
master
lk/lib/ubsan/rules.mk

11 lines
165 B
Makefile
Raw Permalink Normal View History

[ubsan] Add UBSAN implementation Add an UBSAN implementation and a new UBSAN switch to the make build. The implementation is taken from Onyx and handles most of the cases that should be needed for a kernel build. Floating point and fancy C++ CFI features are not supported yet. To build with UBSAN, pass UBSAN=1 to make such as: PROJECT=pc-x86-64-test make -jN UBSAN=1
2023-02-18 23:42:53 +00:00
LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
MODULE_SRCS += \
$(LOCAL_DIR)/ubsan.cpp
GLOBAL_COMPILEFLAGS += -fsanitize=undefined
include make/module.mk
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 31ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API