#!/bin/sh # Test if elfu can inject a x86-64 object file into an x86-64 # executable. Since both are given, we can compare the output to a # reference file. source ./boilerplate.sh elfucli --input reference/putsmain64 \ --reladd reference/puts-alternative64.o \ --output $BUILDDIR/putsmain64-with-puts-alternative64 test_check_retval cmp reference/putsmain64-with-puts-alternative64 \ $BUILDDIR/putsmain64-with-puts-alternative64 test_check_retval