mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
Kernel: Allow modules to link against anything in kernel.map :^)
We now use the symbols from kernel.map to link modules as they are loaded into the kernel. This is pretty fricken cool!
This commit is contained in:
parent
1f34e16ec6
commit
4ef6be8212
5 changed files with 27 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
tmp=$(mktemp)
|
||||
nm -nC kernel | awk '{ if ($2 != "a") print; }' | uniq > $tmp
|
||||
nm -n kernel | awk '{ if ($2 != "a") print; }' | uniq > $tmp
|
||||
printf "%08x\n" $(wc -l $tmp | cut -f1 -d' ') > kernel.map
|
||||
cat $tmp >> kernel.map
|
||||
rm -f $tmp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue