#!/bin/sh
# DF-1947 build: userspace harness that replicates amdgpu_ucode_init_single_fw
# MEC1/MEC2 underflow + memcpy path, with a guard-page-protected destination
# to prove the OOB write.
set -e
cd "$(dirname "$0")"
cc -O2 -Wall -Wextra -o oob_write oob_write.c
echo "BUILD_OK"
ls -l oob_write
