1
- // Define the common source files for all the libc instances
2
- // =========================================================
3
1
package {
4
2
default_applicable_licenses : [" bionic_libc_license" ],
5
3
}
@@ -114,6 +112,26 @@ cc_defaults {
114
112
tidy_disabled_srcs : [" upstream-*/**/*.c" ],
115
113
}
116
114
115
+ // Workaround for b/24465209.
116
+ // We're unlikely to be able to remove this before we just
117
+ // remove ILP32 support completely.
118
+ // Note that we also still have `pack_relocations: false`
119
+ // for both libc and libm, even on LP64.
120
+ // ========================================================
121
+ cc_defaults {
122
+ name : " bug_24465209_workaround" ,
123
+ arch : {
124
+ arm : {
125
+ pack_relocations : false ,
126
+ ldflags : [" -Wl,--hash-style=both" ],
127
+ },
128
+ x86 : {
129
+ pack_relocations : false ,
130
+ ldflags : [" -Wl,--hash-style=both" ],
131
+ }
132
+ },
133
+ }
134
+
117
135
// Defaults for native allocator libs/includes to make it
118
136
// easier to change.
119
137
// ========================================================
@@ -1529,6 +1547,7 @@ cc_defaults {
1529
1547
defaults : [
1530
1548
" libc_defaults" ,
1531
1549
" libc_native_allocator_defaults" ,
1550
+ " bug_24465209_workaround" ,
1532
1551
],
1533
1552
name : " libc_library_defaults" ,
1534
1553
product_variables : {
@@ -1586,10 +1605,7 @@ cc_defaults {
1586
1605
1587
1606
arch : {
1588
1607
arm : {
1589
- // TODO: This is to work around b/24465209. Remove after root cause is fixed.
1590
- pack_relocations : false ,
1591
1608
ldflags : [
1592
- " -Wl,--hash-style=both" ,
1593
1609
// Since we are preserving the debug_frame, do not compress
1594
1610
// in this case to make unwinds as fast as possible.
1595
1611
" -Wl,--compress-debug-sections=none" ,
@@ -1633,10 +1649,6 @@ cc_defaults {
1633
1649
},
1634
1650
},
1635
1651
x86 : {
1636
- // TODO: This is to work around b/24465209. Remove after root cause is fixed.
1637
- pack_relocations : false ,
1638
- ldflags : [" -Wl,--hash-style=both" ],
1639
-
1640
1652
version_script : " :libc.x86.map" ,
1641
1653
no_libcrt : true ,
1642
1654
@@ -1916,7 +1928,10 @@ cc_library_headers {
1916
1928
// ========================================================
1917
1929
1918
1930
cc_library {
1919
- defaults : [" libc_defaults" ],
1931
+ defaults : [
1932
+ " libc_defaults" ,
1933
+ " bug_24465209_workaround" ,
1934
+ ],
1920
1935
include_dirs : [" bionic/libstdc++/include" ],
1921
1936
srcs : [
1922
1937
" bionic/__cxa_guard.cpp" ,
@@ -1941,12 +1956,8 @@ cc_library {
1941
1956
},
1942
1957
},
1943
1958
1944
- //TODO (dimitry): This is to work around b/24465209. Remove after root cause is fixed
1945
1959
arch : {
1946
1960
arm : {
1947
- // TODO: This is to work around b/24465209. Remove after root cause is fixed.
1948
- pack_relocations : false ,
1949
- ldflags : [" -Wl,--hash-style=both" ],
1950
1961
version_script : " :libstdc++.arm.map" ,
1951
1962
},
1952
1963
arm64 : {
@@ -1956,8 +1967,6 @@ cc_library {
1956
1967
version_script : " :libstdc++.riscv64.map" ,
1957
1968
},
1958
1969
x86 : {
1959
- pack_relocations : false ,
1960
- ldflags : [" -Wl,--hash-style=both" ],
1961
1970
version_script : " :libstdc++.x86.map" ,
1962
1971
},
1963
1972
x86_64 : {
0 commit comments