#!/bin/sh # 1. Inject a freshly built object file with a 64 KB data section into # a fresh executable. # 2. Check if the new executable is still functional. source ./boilerplate.sh elfucli --input $BUILDDIR/putsmain \ --reladd $BUILDDIR/data64kb.o \ --output $BUILDDIR/putsmain-with-data64kb test_check_retval $BUILDDIR/putsmain-with-data64kb | grep -q "puts() #2 called in main()" test_check_retval