File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
compiler-rt/lib/sanitizer_common/symbolizer/scripts Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -191,8 +191,10 @@ $OPT -passes=internalize -internalize-public-api-list=${SYMBOLIZER_API_LIST} all
191
191
$CC $FLAGS -fno-lto -c opt.bc -o symbolizer.o
192
192
193
193
echo " Checking undefined symbols..."
194
- nm -f posix -g symbolizer.o | cut -f 1,2 -d \ | LC_COLLATE=C sort -u > undefined.new
195
- (diff -u $SCRIPT_DIR /global_symbols.txt undefined.new | grep -E " ^\+[^+]" ) && \
194
+ export LC_ALL=C
195
+ nm -f posix -g symbolizer.o | cut -f 1,2 -d \ | sort -u > undefined.new
196
+ grep -Ev " ^#|^$" $SCRIPT_DIR /global_symbols.txt | sort -u > expected.new
197
+ (diff -u expected.new undefined.new | grep -E " ^\+[^+]" ) && \
196
198
(echo " Failed: unexpected symbols" ; exit 1)
197
199
198
200
cp -f symbolizer.o $OUTPUT
Original file line number Diff line number Diff line change
1
+ # This file is used to control symbols used by internal symbolizer. We want to
2
+ # avoid unexpected dependency on function intercepted by sanitizers.
3
+
1
4
_GLOBAL_OFFSET_TABLE_ U
2
5
_ZN11__sanitizer13internal_mmapEPvjiiiy U
3
6
_ZN11__sanitizer13internal_mmapEPvmiiiy U
@@ -62,6 +65,8 @@ __sanitizer_symbolize_flush T
62
65
__sanitizer_symbolize_frame T
63
66
__sanitizer_symbolize_set_demangle T
64
67
__sanitizer_symbolize_set_inline_frames T
68
+ __start___lcxx_override U
69
+ __stop___lcxx_override U
65
70
__strdup U
66
71
__udivdi3 U
67
72
__umoddi3 U
You can’t perform that action at this time.
0 commit comments