summaryrefslogtreecommitdiffstats
path: root/GNU_efi_HelloWorld
diff options
context:
space:
mode:
Diffstat (limited to 'GNU_efi_HelloWorld')
-rwxr-xr-xGNU_efi_HelloWorld/analyse_hello.sh8
-rw-r--r--GNU_efi_HelloWorld/hello.c3
-rwxr-xr-xGNU_efi_HelloWorld/peinfobin0 -> 27600 bytes
3 files changed, 11 insertions, 0 deletions
diff --git a/GNU_efi_HelloWorld/analyse_hello.sh b/GNU_efi_HelloWorld/analyse_hello.sh
new file mode 100755
index 0000000..cfaad73
--- /dev/null
+++ b/GNU_efi_HelloWorld/analyse_hello.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+echo "objdump -h hello.efi"
+objdump -h hello.efi
+
+echo "########################################################################"
+echo "peinfo hello.efi | grep text -A 5"
+peinfo hello.efi | grep text -A 5
diff --git a/GNU_efi_HelloWorld/hello.c b/GNU_efi_HelloWorld/hello.c
index 52c05b3..817c135 100644
--- a/GNU_efi_HelloWorld/hello.c
+++ b/GNU_efi_HelloWorld/hello.c
@@ -8,5 +8,8 @@ efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) {
InitializeLib(ImageHandle, SystemTable);
Print(L"Hello, world!\n");
+ // TODO: get SystemTable-> ... -> ImageBase
+ // Print ImageBase
+
return EFI_SUCCESS;
}
diff --git a/GNU_efi_HelloWorld/peinfo b/GNU_efi_HelloWorld/peinfo
new file mode 100755
index 0000000..4645ea4
--- /dev/null
+++ b/GNU_efi_HelloWorld/peinfo
Binary files differ