Add a tool to auto-generate a symbol map, borrowed from SerenityOS :)
This commit is contained in:
parent
d8bfb76eef
commit
d79596f21b
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,4 +3,5 @@ toolchain/
|
||||
.vscode/
|
||||
**/*.o
|
||||
initrd/boot/moon.elf
|
||||
kernel/bin/moon.elf
|
||||
kernel/bin/moon.elf
|
||||
initrd/sys/moon.sym
|
@ -74,4 +74,5 @@ moon-clean:
|
||||
|
||||
$(LUNA_ROOT)/initrd/boot/moon.elf: $(MOON_BIN)/moon.elf
|
||||
@mkdir -p $(@D)
|
||||
cp $^ $@
|
||||
cp $^ $@
|
||||
tools/generate-symbols.sh
|
9
tools/generate-symbols.sh
Executable file
9
tools/generate-symbols.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
source $(dirname $0)/env.sh
|
||||
|
||||
cd $LUNA_ROOT
|
||||
|
||||
nm -C -n initrd/boot/moon.elf | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > initrd/sys/moon.sym
|
Loading…
Reference in New Issue
Block a user