• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/include/libunwind_i.h b/include/libunwind_i.h
2index 1dbcb6a8..eaee5dec 100644
3--- a/include/libunwind_i.h
4+++ b/include/libunwind_i.h
5@@ -175,6 +175,7 @@ target_is_big_endian(void)
6 #define UNWI_ARCH_OBJ(fn) UNW_PASTE(UNW_PASTE(UNW_PASTE(_UI,UNW_TARGET),_), fn)
7
8 #define unwi_full_mask    UNWI_ARCH_OBJ(full_mask)
9+#define NO_SANITIZE __attribute__((no_sanitize("address"), no_sanitize("hwaddress")))
10
11 /* Type of a mask that can be used to inhibit preemption.  At the
12    userlevel, preemption is caused by signals and hence sigset_t is
13diff --git a/src/aarch64/Ginit.c b/src/aarch64/Ginit.c
14index 6986dbb6..10bec543 100644
15--- a/src/aarch64/Ginit.c
16+++ b/src/aarch64/Ginit.c
17@@ -125,7 +125,7 @@ get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dyn_info_list_addr,
18 }
19
20
21-static int
22+NO_SANITIZE static int
23 access_mem (unw_addr_space_t as, unw_word_t addr, unw_word_t *val, int write,
24             void *arg)
25 {
26diff --git a/src/arm/Ginit.c b/src/arm/Ginit.c
27index 20071fd0..91676e76 100644
28--- a/src/arm/Ginit.c
29+++ b/src/arm/Ginit.c
30@@ -74,7 +74,7 @@ get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dyn_info_list_addr,
31 }
32
33
34-static int
35+NO_SANITIZE static int
36 access_mem (unw_addr_space_t as, unw_word_t addr, unw_word_t *val, int write,
37             void *arg)
38 {
39diff --git a/src/mi/Gaddress_validator.c b/src/mi/Gaddress_validator.c
40index a81a0835..85bc4878 100644
41--- a/src/mi/Gaddress_validator.c
42+++ b/src/mi/Gaddress_validator.c
43@@ -98,7 +98,7 @@ _open_pipe (void)
44  * process's address space and marked as readable. The read will force the page
45  * to be swapped in if it's not already there.
46  */
47-static bool
48+NO_SANITIZE static bool
49 _write_validate (unw_word_t addr)
50 {
51   int ret = -1;
52diff --git a/src/x86/Ginit.c b/src/x86/Ginit.c
53index 956d8088..f576db8f 100644
54--- a/src/x86/Ginit.c
55+++ b/src/x86/Ginit.c
56@@ -75,7 +75,7 @@ get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dyn_info_list_addr,
57 }
58
59
60-static int
61+NO_SANITIZE static int
62 access_mem (unw_addr_space_t as, unw_word_t addr, unw_word_t *val, int write,
63             void *arg)
64 {
65diff --git a/src/x86_64/Ginit.c b/src/x86_64/Ginit.c
66index ca3c0228..ed4ddd78 100644
67--- a/src/x86_64/Ginit.c
68+++ b/src/x86_64/Ginit.c
69@@ -74,7 +74,7 @@ get_dyn_info_list_addr (unw_addr_space_t as UNUSED, unw_word_t *dyn_info_list_ad
70 }
71
72
73-static int
74+NO_SANITIZE static int
75 access_mem (unw_addr_space_t as UNUSED, unw_word_t addr, unw_word_t *val, int write,
76             void *arg)
77 {
78