diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-11-24 21:23:08 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-11-24 21:23:08 +0100 |
commit | f9f2b6bb2d685556bc3346ca3f7e55f4c865fc16 (patch) | |
tree | 3ed8ac66323b6985713427d147826c5845212c13 /02_process_init/Makefile | |
parent | f9e7e2003266e70c0d018f5712c431d187159e65 (diff) | |
download | dynld-f9f2b6bb2d685556bc3346ca3f7e55f4c865fc16.tar.gz dynld-f9f2b6bb2d685556bc3346ca3f7e55f4c865fc16.zip |
add process init chapter
Add chapter on process initialization.
Add program to visualize data provided by the Linux Kernel as
specified in the SysV ABI.
Add utils for syscalls and printing + tests.
Diffstat (limited to '02_process_init/Makefile')
-rw-r--r-- | 02_process_init/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/02_process_init/Makefile b/02_process_init/Makefile new file mode 100644 index 0000000..6e1f512 --- /dev/null +++ b/02_process_init/Makefile @@ -0,0 +1,18 @@ +# Copyright (c) 2020 Johannes Stoelp + +show: entry + #gdb -q --batch -ex 'starti' -ex 'x/g $$rsp' -ex 'x/s *(char**)($$rsp+8)' ./$^ + ./entry 1 2 3 4 + +entry: entry.S entry.c + gcc -o $@ \ + -I ../include \ + -Wall -Wextra \ + -static \ + -nostartfiles -nodefaultlibs \ + -g -O0 \ + $^ + + +clean: + rm -f entry |