Skip to content

Hello World

Latest
Compare
Choose a tag to compare
@viral32111 viral32111 released this 25 Jul 22:23
· 6 commits to main since this release
0.2.0
06373dd

These are the first applications I have made using the GNU-EFI library.

In the previous release, I used the POSIX-UEFI library, but I prefer GNU-EFI as it does not overwrite standard POSIX functions, and seems to expose more of the UEFI specification.

There are two PE executable files:

  • hello-world-with-lib.efi is a simple hello world application using the helper library (source).
  • hello-world-without-lib.efi is a simple hello world application calling system table functions (source).

The helloworld.img files is a bootable GPT disk image with an EFI system partition formatted as FAT32 containing both of the aforementioned executable files. I tested this in QEMU using the OVMF EFI shell.
Shell

Details and SHA-256 checksums for the attached files:

hello-world-with-lib.efi:    PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
hello-world-without-lib.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
helloworld.img: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 78124 sectors, extended partition table (last)

17dc7b6328d3eb608dd806dfc5e9859ac08bb4b495d5d643febb7a807655d384  hello-world-with-lib.efi
b70fb658baa905477791ce846d54bd2ee472aa487e2ba222dbc2c19a5b87a199  hello-world-without-lib.efi
00df334ca0b883a4ea50c1c107452bb26b7a970814ba403c3283a75fd2420566  helloworld.img