fuchsia: make sure mxio is always DT_NEEDED

Without this, --as-needed will drop mxio, which means stdio doesn't get
initialized, which means printfs disappear into void.

Before:
sgraham@river:/work/cr/src$ readelf -d out/fuch/d8
Dynamic section at offset 0xe0d2a8 contains 20 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libc.so]
 0x000000000000001e (FLAGS)              BIND_NOW
 0x000000006ffffffb (FLAGS_1)            Flags: NOW
 0x0000000000000015 (DEBUG)              0x0
...

After:
Dynamic section at offset 0xe0d2a8 contains 21 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libc.so]
 0x0000000000000001 (NEEDED)             Shared library: [libmxio.so]
 0x000000000000001e (FLAGS)              BIND_NOW
 0x000000006ffffffb (FLAGS_1)            Flags: NOW
 0x0000000000000015 (DEBUG)              0x0
...


and printf in main() of d8.cc shows up in the output.

Bug: 731217
Change-Id: I66df1a91eb3fa2757c0a05ede37da113ccb80bdb
Reviewed-on: https://chromium-review.googlesource.com/616160
Commit-Queue: Scott Graham <scottmg@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#494585}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c1ad674f71fdbf8616053868b7a02b4de9c9b05
1 file changed