[ Upstream commit 1878787797cbb019eeefe6f905514dcd557302b6 ]
Just memcmp() with ELFMAG - that's the normal way to do it in userland
code, which that thing is. Besides, that has the benefit of actually
building - str_has_prefix() is *NOT* present in <string.h>.
Fixes:
|
||
|---|---|---|
| .. | ||
| tools | ||
| bootloader.lds | ||
| bootp.c | ||
| bootpz.c | ||
| head.S | ||
| main.c | ||
| Makefile | ||
| misc.c | ||
| stdio.c | ||