This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First, a minimal stdint.h | |
typedef __UINT32_TYPE__ uint32_t; | |
typedef __UINT64_TYPE__ uint64_t; | |
// NOTE: as kernel, we dont have any stdlib, so if you want to use one, implement one your self, and link it static! | |
// the multiboot info structure ( all we get by the multiboot bootloader ) | |
struct multiboot_info { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
gcc -o StackOverflow overflow.c -fno-stack-protector | |
exec: all | |
./StackOverflow | |
clean: | |
rm StackOverflow | |
.PHONY: all |