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
Notes: sideshowbarker 2024-07-17 00:25:35 +09:00
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: