Don't pack relocations in libc.so

Ic9125cc1bc4c9ba9eb20d030de72e3ce1fb86fa6 disabled relocation packing
in libc.so, but the flag was dropped when we switched to Android.bp
in Ib0ba2d28bff88483b505426ba61606da314e03ab.

Bug: 20645321
Bug: 20655855
Bug: 32750616
Test: builds
Test: inspect out/build-aosp_angler.ninja
Test: run app that crashes with packed libc.so
Change-Id: Ib0630f2e342afa543bb88303fec8f9695ac583e9
This commit is contained in:
Colin Cross 2016-11-15 13:15:43 -08:00
parent cd9ce19e9c
commit 4ce94d297e
1 changed files with 3 additions and 0 deletions

View File

@ -1649,6 +1649,9 @@ cc_library {
keep_symbols: true,
},
// Do not pack libc.so relocations; see http://b/20645321 for details.
pack_relocations: false,
// WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries,
// make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This
// ensures that symbols that are pulled into those new libraries from libgcc.a are not declared