#!/bin/sh set -e source $(dirname $0)/env.sh cd $LUNA_ROOT nm -C -n initrd/boot/moon.elf | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > initrd/sys/moon.sym