1#!/bin/bash 2 3# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6 7# Abort on error. 8set -e 9 10# Load common constants and variables. 11. "$(dirname "$0")/common.sh" 12 13usage() { 14 echo "Usage $PROG image" 15} 16 17main() { 18 if [ $# -ne 1 ]; then 19 usage 20 exit 1 21 fi 22 23 local image="$1" 24 25 local rootfs=$(make_temp_dir) 26 mount_image_partition_ro "$image" 3 "$rootfs" 27 28 # This mirrors the check performed in the platform_ToolchainOptions 29 # autotest. 30 if readelf -s "$rootfs/opt/google/chrome/chrome" | \ 31 grep -q __asan_init; then 32 exit 1 33 fi 34} 35main "$@" 36