[zxcrypt] statically link most dependencies
This change: * splits //zircon/system/ulib/zxcrypt into two libraries, so that the FDIO dependencies don't leak into the driver, and vice versa * reduces the set of dependencies of the driver to those actually required * cuts out some transitive dependencies on libraries that are not used at all by dependencies of zxcrypt Tests: added some assert_no_deps in the build, and checked the dependencies of the new artifact: (15:24:39) zarvox@zarvox-linux ~/fuchsia/out $ readelf -d ./default.zircon/user-x64-gcc.shlib/obj/system/dev/block/zxcrypt/zxcrypt.so | grep Shared 0x0000000000000001 (NEEDED) Shared library: [libzircon.so] 0x0000000000000001 (NEEDED) Shared library: [libdriver.so] 0x0000000000000001 (NEEDED) Shared library: [libc.so] DNO-492 #comment zxcrypt.so links most things statically Change-Id: Ic7d179ae77af6e1efbaa10624ecadcd8b27134f9
Showing
- zircon/system/core/devmgr/fshost/BUILD.gn 1 addition, 1 deletionzircon/system/core/devmgr/fshost/BUILD.gn
- zircon/system/dev/block/zxcrypt/BUILD.gn 19 additions, 2 deletionszircon/system/dev/block/zxcrypt/BUILD.gn
- zircon/system/ulib/BUILD.gn 2 additions, 1 deletionzircon/system/ulib/BUILD.gn
- zircon/system/ulib/crypto/BUILD.gn 0 additions, 1 deletionzircon/system/ulib/crypto/BUILD.gn
- zircon/system/ulib/paver/BUILD.gn 1 addition, 1 deletionzircon/system/ulib/paver/BUILD.gn
- zircon/system/ulib/pretty/BUILD.gn 1 addition, 5 deletionszircon/system/ulib/pretty/BUILD.gn
- zircon/system/ulib/unittest/BUILD.gn 1 addition, 0 deletionszircon/system/ulib/unittest/BUILD.gn
- zircon/system/ulib/zxcrypt/BUILD.gn 36 additions, 8 deletionszircon/system/ulib/zxcrypt/BUILD.gn
- zircon/system/utest/zxcrypt/BUILD.gn 1 addition, 1 deletionzircon/system/utest/zxcrypt/BUILD.gn
- zircon/third_party/ulib/uboringssl/BUILD.gn 0 additions, 1 deletionzircon/third_party/ulib/uboringssl/BUILD.gn
Loading
Please register or sign in to comment