4 ms·
If you compile the Linux kernel you will have in the build directory the actual .so file(s) which are ultimately embedded in the kernel. They don't ever get ins
by mrspuratic 2y ago
If you compile the Linux kernel you will have in the build directory the actual .so file(s) which are ultimately embedded in the kernel. They don't ever get installed as conventional libraries (since they are not), but they are otherwise real shared dynamic ELF binaries.
If you're curious you can make a copy:
1. grab the vdso offset XX in memory of, for example, the running shell
gawk -n -vFS=- '/\[vdso\]/{printf("%i",("0x"$1)/4096)}' /proc/$$/maps
2. extract that page
dd if=/proc/$$/mem of=linux-vdso.so bs=4096 count=1 skip=XX
where XX is the offset from step 1
3. check with
nm -D linux-vdso.so
objdump -ad -j .text linux-vdso.so