mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +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:
parent
11b40dbcf5
commit
4536b80a62
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/DanShaders
Commit: 4536b80a62
Pull-request: https://github.com/SerenityOS/serenity/pull/17692
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/nico ✅
Reviewed-by: https://github.com/trflynn89
3 changed files with 14 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue