blob: dbb2c171184cd4f9d54c29457717e9bdf101f3a0 (
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 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
|