cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

checkundef.sh (204B)


      1#!/bin/sh
      2# SPDX-License-Identifier: GPL-2.0
      3nm="$1"
      4file="$2"
      5$nm "$file" | grep '^ *U' > /dev/null 2>&1
      6if [ $? -eq 1 ]; then
      7    exit 0
      8else
      9    echo "$file: undefined symbols found" >&2
     10    exit 1
     11fi