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