Kernel Development Learning Pipeline
Home
Courses
Articles
Slides
FAQ
L4 - 1 February 2023
Lecture Recording
Class Notes:
Reminder to do proper code review
Explaining A3
Explaining executables ~00:18:00
Reference to LSB in
file
command:
https://unix.stackexchange.com/questions/393384/what-does-lsb-mean-when-referring-to-executable-files-in-the-output-of-bin-fi
Showing
xxd
and
objdump
~00:23:00
Showing assembly of executable
Showing
ldd
~00:25:00
Showing how to write assembly of a simple C program ~00:29:00
Exit syscall ~00:40:00
Syscall table:
https://marcin.juszkiewicz.com.pl/download/tables/syscalls.html
Adding functionality to assembly program ~00:51:00
Due date for A3 will be moved to a later date
Adding write syscall to assembly ~01:04:00
Linux syscall calling conventions:
https://refspecs.linuxbase.org/elf/x86_64-SysV-psABI.pdf
Reference to kernel code:
https://elixir.bootlin.com/linux/latest/source
Descriptions of syscall instruction:
https://www.felixcloutier.com/x86/syscall
Syscall table in the x86_64 kernel:
https://elixir.bootlin.com/linux/latest/source/arch/x86/entry/syscalls/syscall_64.tbl