65cdd580c7
Copied from http://go/dart-reviews/421761 with the essential fix to make it work. 1) Add the env to select the right readelf. 2) Remove the removal of arch/, it's referred by meta.json. Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-x64-try,vm-fuchsia-release-arm64-try Bug: b/407890258, b/338009514 Change-Id: Ib7ae646e57082d310d3d76ca16834faefb888201 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/421881 Auto-Submit: Zijie He <zijiehe@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>