Skip to content

Commit e17c78d

Browse files
committed
Revert "Remove strip.keep_symbols from libart defaults"
This reverts commit c7f5eb7.
1 parent 98d2186 commit e17c78d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

runtime/Android.bp

+31
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,37 @@ cc_defaults {
4343
"-Wno-unused-command-line-argument",
4444
],
4545
},
46+
android_arm: {
47+
// Arm 32 bit does not produce complete exidx unwind information
48+
// so keep the .debug_frame which is relatively small and does
49+
// include needed unwind information.
50+
// See b/132992102 and b/145790995 for details.
51+
strip: {
52+
keep_symbols_and_debug_frame: true,
53+
},
54+
},
55+
// For all other architectures, leave the symbols in the shared library
56+
// so that stack unwinders can produce meaningful name resolution.
57+
android_arm64: {
58+
strip: {
59+
keep_symbols: true,
60+
},
61+
},
62+
android_riscv64: {
63+
strip: {
64+
keep_symbols: true,
65+
},
66+
},
67+
android_x86: {
68+
strip: {
69+
keep_symbols: true,
70+
},
71+
},
72+
android_x86_64: {
73+
strip: {
74+
keep_symbols: true,
75+
},
76+
},
4677
},
4778
}
4879

0 commit comments

Comments
 (0)