1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:04:57 +00:00

AK+readelf: Issue error when using ARCH(arch) with nonexistent arch

This disallows erroneous `#if ARCH(x86_64)` (note lowercase x).
This commit is contained in:
Dan Klishch 2023-03-02 14:47:03 +03:00 committed by Andreas Kling
parent 11b40dbcf5
commit 4536b80a62
3 changed files with 14 additions and 5 deletions

View file

@ -186,7 +186,7 @@ static char const* object_symbol_binding_to_string(ElfW(Word) type)
static char const* object_relocation_type_to_string(ElfW(Word) type)
{
switch (type) {
#if ARCH(x86_64)
#if ARCH(X86_64)
case R_X86_64_NONE:
return "R_X86_64_NONE";
case R_X86_64_64: