@@ -60,7 +60,10 @@ cc_library {
60
60
native_bridge_supported : true ,
61
61
static_ndk_lib : true ,
62
62
63
- defaults : [" linux_bionic_supported" ],
63
+ defaults : [
64
+ " linux_bionic_supported" ,
65
+ " bug_24465209_workaround" ,
66
+ ],
64
67
65
68
// NOTE: --exclude-libs=libgcc.a makes sure that any symbols libdl.so pulls from
66
69
// libgcc.a are made static to libdl.so. This in turn ensures that libraries that
@@ -70,7 +73,6 @@ cc_library {
70
73
// libgcc.a it uses.
71
74
//
72
75
// DO NOT REMOVE --exclude-libs!
73
-
74
76
ldflags : [
75
77
" -Wl,--exclude-libs=libgcc.a" ,
76
78
" -Wl,--exclude-libs=libgcc_stripped.a" ,
@@ -81,12 +83,9 @@ cc_library {
81
83
" -Wl,--exclude-libs=libclang_rt.builtins-x86_64-android.a" ,
82
84
],
83
85
84
- // for x86, exclude libgcc_eh.a for the same reasons as above
85
86
arch : {
86
87
arm : {
87
88
version_script : " :libdl.arm.map" ,
88
- pack_relocations : false ,
89
- ldflags : [" -Wl,--hash-style=both" ],
90
89
},
91
90
arm64 : {
92
91
version_script : " :libdl.arm64.map" ,
@@ -95,14 +94,12 @@ cc_library {
95
94
version_script : " :libdl.riscv64.map" ,
96
95
},
97
96
x86 : {
98
- pack_relocations : false ,
99
- ldflags : [
100
- " -Wl,--exclude-libs=libgcc_eh.a" ,
101
- " -Wl,--hash-style=both" ,
102
- ],
97
+ // Exclude libgcc_eh.a for the same reasons as above
98
+ ldflags : [" -Wl,--exclude-libs=libgcc_eh.a" ],
103
99
version_script : " :libdl.x86.map" ,
104
100
},
105
101
x86_64 : {
102
+ // Exclude libgcc_eh.a for the same reasons as above
106
103
ldflags : [" -Wl,--exclude-libs=libgcc_eh.a" ],
107
104
version_script : " :libdl.x86_64.map" ,
108
105
},
0 commit comments