summaryrefslogtreecommitdiff
path: root/tests/04-injection64.test
blob: 145e817a20b3e90eacf8993e9f830583362e8d77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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