summaryrefslogtreecommitdiffstats
path: root/create_debug.sh
diff options
context:
space:
mode:
authorRegia König2022-08-31 13:25:47 +0200
committerRegia König2022-08-31 13:25:47 +0200
commit95bef3b956c8cb07582d98d2efcdef8477bcf81a (patch)
treea43c2410b77bd346a2f830759539ad9f3220fd78 /create_debug.sh
parentSetup.S documentation and new command in create_debug.sh (diff)
downloadmemtest86-95bef3b956c8cb07582d98d2efcdef8477bcf81a.tar.gz
memtest86-95bef3b956c8cb07582d98d2efcdef8477bcf81a.tar.xz
memtest86-95bef3b956c8cb07582d98d2efcdef8477bcf81a.zip
Creating gdb script
Diffstat (limited to 'create_debug.sh')
-rwxr-xr-xcreate_debug.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/create_debug.sh b/create_debug.sh
index 45f4c1f..a807d2c 100755
--- a/create_debug.sh
+++ b/create_debug.sh
@@ -8,15 +8,15 @@ BSS_SIZE=$(size -B -d memtest_shared | grep memtest_shared | tr -s ' ' | cut -d'
echo $BSS_SIZE
echo "bss_size: $BSS_SIZE"
-ld --defsym=_bss_size=$(size -B -d memtest_shared | grep memtest_shared | tr -s ' ' | cut -d ' ' -f3) \
- -shared \
- --print-memory-usage \
- --print-output-format \
- -Bsymbolic \
- -M \
- -nostdlib \
- -T linker_modified.lds \
- -o memtest_modified.efi \
- boot/setup.o boot/startup.o boot/efisetup.o app/*.o lib/*.o system/*.o tests/*.o
+#ld --defsym=_bss_size=$(size -B -d memtest_shared | grep memtest_shared | tr -s ' ' | cut -d ' ' -f3) \
+# -shared \
+# --print-memory-usage \
+# --print-output-format \
+# -Bsymbolic \
+# -M \
+# -nostdlib \
+# -T linker_modified.lds \
+# -o memtest_modified.efi \
+# boot/setup.o boot/startup.o boot/efisetup.o app/*.o lib/*.o system/*.o tests/*.o
-# ld -N --defsym=_bss_size=$BSS_SIZE -T linker_modified.lds boot/header.o boot/setup.o -b elf64-x86-64 memtest_shared -o memtest_modified.efi
+ld -N --defsym=_bss_size=$BSS_SIZE -T linker_modified.lds boot/header.o boot/setup.o -b elf64-x86-64 memtest_shared -o memtest_modified.efi