File tree Expand file tree Collapse file tree 6 files changed +17
-12
lines changed
compiler-rt/lib/scudo/standalone
llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone Expand file tree Collapse file tree 6 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ if (COMPILER_RT_HAS_GWP_ASAN)
3
3
add_dependencies (scudo_standalone gwp_asan )
4
4
endif ()
5
5
6
- include_directories (../.. )
6
+ include_directories (../.. include )
7
7
8
8
set (SCUDO_CFLAGS )
9
9
@@ -56,7 +56,6 @@ set(SCUDO_HEADERS
56
56
flags .h
57
57
flags_parser.h
58
58
fuchsia.h
59
- interface .h
60
59
internal_defs.h
61
60
linux.h
62
61
list .h
@@ -78,6 +77,8 @@ set(SCUDO_HEADERS
78
77
vector.h
79
78
wrappers_c_checks.h
80
79
wrappers_c.h
80
+
81
+ include /scudo/interface.h
81
82
)
82
83
83
84
set (SCUDO_SOURCES
Original file line number Diff line number Diff line change 13
13
#include " common.h"
14
14
#include " flags.h"
15
15
#include " flags_parser.h"
16
- #include " interface.h"
17
16
#include " local_cache.h"
18
17
#include " memtag.h"
19
18
#include " quarantine.h"
22
21
#include " string_utils.h"
23
22
#include " tsd.h"
24
23
24
+ #include " scudo/interface.h"
25
+
25
26
#ifdef GWP_ASAN_HOOKS
26
27
#include " gwp_asan/guarded_pool_allocator.h"
27
28
#include " gwp_asan/optional/backtrace.h"
Original file line number Diff line number Diff line change 9
9
#include " flags.h"
10
10
#include " common.h"
11
11
#include " flags_parser.h"
12
- #include " interface.h"
12
+
13
+ #include " scudo/interface.h"
13
14
14
15
namespace scudo {
15
16
Original file line number Diff line number Diff line change 1
- // ===-- interface.h ------ ---------------------------------------*- C++ -*-===//
1
+ // ===-- scudo/ interface.h ---------------------------------------*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
9
9
#ifndef SCUDO_INTERFACE_H_
10
10
#define SCUDO_INTERFACE_H_
11
11
12
- #include " internal_defs.h"
13
-
14
12
extern " C" {
15
13
16
- WEAK INTERFACE const char *__scudo_default_options ();
14
+ __attribute__ ((weak)) const char *__scudo_default_options();
17
15
18
16
// Post-allocation & pre-deallocation hooks.
19
17
// They must be thread-safe and not use heap related functions.
20
- WEAK INTERFACE void __scudo_allocate_hook (void *ptr, size_t size);
21
- WEAK INTERFACE void __scudo_deallocate_hook (void *ptr);
18
+ __attribute__ ((weak)) void __scudo_allocate_hook(void *ptr, size_t size);
19
+ __attribute__ ((weak)) void __scudo_deallocate_hook(void *ptr);
22
20
23
- WEAK INTERFACE void __scudo_print_stats (void );
21
+ void __scudo_print_stats (void );
24
22
25
23
typedef void (*iterate_callback)(uintptr_t base, size_t size, void *arg);
26
24
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ set(SCUDO_UNITTEST_CFLAGS
10
10
-I${COMPILER_RT_SOURCE_DIR}/include
11
11
-I${COMPILER_RT_SOURCE_DIR}/lib
12
12
-I${COMPILER_RT_SOURCE_DIR}/lib/scudo/standalone
13
+ -I${COMPILER_RT_SOURCE_DIR}/lib/scudo/standalone/include
13
14
-DGTEST_HAS_RTTI=0
14
15
-DSCUDO_DEBUG=1
15
16
# Extra flags for the C++ tests
Original file line number Diff line number Diff line change @@ -88,7 +88,10 @@ source_set("cxx_wrapper_sources") {
88
88
}
89
89
90
90
config (" scudo_config" ) {
91
- include_dirs = [ " //compiler-rt/lib/scudo/standalone" ]
91
+ include_dirs = [
92
+ " //compiler-rt/lib/scudo/standalone" ,
93
+ " //compiler-rt/lib/scudo/standalone/include" ,
94
+ ]
92
95
if (current_os == " android" ) {
93
96
cflags = [ " -fno-emulated-tls" ]
94
97
}
You can’t perform that action at this time.
0 commit comments