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