summaryrefslogtreecommitdiff
path: root/src/lib/asan.c
blob: e4a1012e13215b920c45e0b6882401e1356a47a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stddef.h>

#pragma GCC diagnostic ignored "-Wmissing-prototypes"

#define DEFINE_ASAN_LOAD_STORE(size)                        \
	void __asan_load##size(unsigned long addr)              \
	{}                                                      \
	void __asan_load##size##_noabort(unsigned long addr)    \
	{}                                                      \
	void __asan_store##size(unsigned long addr)             \
	{}                                                      \
	void __asan_store##size##_noabort(unsigned long addr)   \
	{}

DEFINE_ASAN_LOAD_STORE(1);
DEFINE_ASAN_LOAD_STORE(2);
DEFINE_ASAN_LOAD_STORE(4);
DEFINE_ASAN_LOAD_STORE(8);
DEFINE_ASAN_LOAD_STORE(16);

void __asan_loadN(unsigned long addr, size_t size)
{}

void __asan_loadN_noabort(unsigned long addr, size_t size)
{}

void __asan_storeN(unsigned long addr, size_t size)
{}

void __asan_storeN_noabort(unsigned long addr, size_t size)
{}

void __asan_handle_no_return(void)
{}