diff --git a/lib/x86_64-linux-gnu/libc.so.6 b/lib/x86_64-linux-gnu/libc.so.6 new file mode 100644 index 00000000..db27b090 Binary files /dev/null and b/lib/x86_64-linux-gnu/libc.so.6 differ diff --git a/lib64/ld-linux-x86-64.so.2 b/lib64/ld-linux-x86-64.so.2 new file mode 100755 index 00000000..3f3b4e0d Binary files /dev/null and b/lib64/ld-linux-x86-64.so.2 differ diff --git a/tail/README.md b/tail/README.md new file mode 100644 index 00000000..82de0a03 --- /dev/null +++ b/tail/README.md @@ -0,0 +1,75 @@ +# Python Interpreter + +This is the Python interpreter, as an ELF file pulled out from a standard Linux filesystem (Ubuntu 22.04). +It's meant to be used with the binary-compatibility mode of Unikraft. + +The contents are: + +* `tail`: the binary file +* `test.txt`: a txt file that can be used to test +* `lib/`, `lib64/`: pre-extracted dynamic libraries required to run the server +* `README.md`: this file + +## (Re)Extract Dynamic Libraries + +You can (re)extract the dynamic libraries required to run the server by using: + +```console +../../extract.sh /usr/bin/tail +``` + +The command output signals the copying of the required dynamic libraries: + +```text +Copying /lib/x86_64-linux-gnu/libc.so.6 ... +Copying /lib64/ld-linux-x86-64.so.2 ... +``` + + +## Run tail on Linux + + +``` +tail text.txt +``` + + +You'll get the reply: + +```text +a +b +c +d +e +f +g +h +i +j + +``` + +## Run HTTP Server with Unikraft + +Make sure you are in the /run-app-elfloader/ directory + +```console +./run.sh -d -r ../dynamic-apps/tail/ tail test.txt +``` + +You'll get the reply: + +```text +a +b +c +d +e +f +g +h +i +j +``` +Can try with any file \ No newline at end of file diff --git a/tail/lib/x86_64-linux-gnu/libc.so.6 b/tail/lib/x86_64-linux-gnu/libc.so.6 new file mode 100644 index 00000000..db27b090 Binary files /dev/null and b/tail/lib/x86_64-linux-gnu/libc.so.6 differ diff --git a/tail/lib64/ld-linux-x86-64.so.2 b/tail/lib64/ld-linux-x86-64.so.2 new file mode 100755 index 00000000..3f3b4e0d Binary files /dev/null and b/tail/lib64/ld-linux-x86-64.so.2 differ diff --git a/tail/tail b/tail/tail new file mode 100755 index 00000000..ef7b2480 Binary files /dev/null and b/tail/tail differ diff --git a/tail/test.txt b/tail/test.txt new file mode 100644 index 00000000..92dfa216 --- /dev/null +++ b/tail/test.txt @@ -0,0 +1,10 @@ +a +b +c +d +e +f +g +h +i +j