Link all internal libraries statically into oatdump(d) on host.
Avoid all DSO dependencies except system libs, similar to dex2oat and
hiddenapi binaries, to make it work when added to
art-module-host-exports.
The stripped oatdump binary is 12 MB, oatdumpd is 15 MB.
Test: `m oatdump{,d}` and run them from out/host/linux-x86/bin
Test: readelf -d out/host/linux-x86/bin/oatdump(d)
Check that NEEDED only lists system libraries (libdl, libpthread,
libm, librt, libgcc_s, libc).
Bug: 145934348
Change-Id: Ib20ce3382435b76058b88b9085e3c0831848a489
1 file changed