build_image: Remove unused developer only glibc files.

This patch filters out some libc unused parts from the base image:

 * usr/bin/{getent,ldd}: Not used at runtime.
 * lib*/lib{memusage,pcprofile,SegFault}.so
 * usr/lib*/audit/*
 * lib*/libnss_*.so except for files and dns, which are the only ones
   specified by etc/nsswitch.conf.
 * lib*/libBrokenLocale*.so*: Not loaded by any package.

Parts of this patch were landed and reverted earlier on
  https://chromium-review.googlesource.com/37378
due to the dependency on gconv files from the flashplayer, which is
tracked on issue 206111. This patch doesn't include the removal of
usr/*/gconv files.

BUG=chromium:381886
TEST=./build_image --board=link works.
TEST=cbuildbot on gizmo-release and {x86,amd64,arm}-generic-full works
TEST=Booted image on link.

Change-Id: Ia18712dc21256df70c9dd3f41a05424d896d989a
Reviewed-on: https://chromium-review.googlesource.com/204270
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
2 files changed