mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-13 07:32:23 -07:00
alias for amd64 machine
This commit is contained in:
+7
-4
@@ -1196,6 +1196,7 @@ read_only struct
|
||||
} g_coff_machine_map[] = {
|
||||
{ str8_lit_comp(""), COFF_MachineType_UNKNOWN },
|
||||
{ str8_lit_comp("X86"), COFF_MachineType_X86 },
|
||||
{ str8_lit_comp("AMD64"), COFF_MachineType_X64 },
|
||||
{ str8_lit_comp("X64"), COFF_MachineType_X64 },
|
||||
{ str8_lit_comp("AM33"), COFF_MachineType_AM33 },
|
||||
{ str8_lit_comp("ARM"), COFF_MachineType_ARM },
|
||||
@@ -1248,10 +1249,12 @@ coff_string_from_comdat_select_type(COFF_ComdatSelectType select)
|
||||
internal String8
|
||||
coff_string_from_machine_type(COFF_MachineType machine)
|
||||
{
|
||||
Assert(machine < ArrayCount(g_coff_machine_map));
|
||||
Assert(machine == g_coff_machine_map[machine].machine);
|
||||
String8 string = g_coff_machine_map[machine].string;
|
||||
return string;
|
||||
for (U64 i = 0; i < ArrayCount(g_coff_machine_map); ++i) {
|
||||
if (g_coff_machine_map[i].machine == machine) {
|
||||
return g_coff_machine_map[i].string;
|
||||
}
|
||||
}
|
||||
return str8_zero();
|
||||
}
|
||||
|
||||
internal String8
|
||||
|
||||
+5
-5
@@ -3617,11 +3617,11 @@ l.count += 1; \
|
||||
// is obj machine compatible?
|
||||
if (obj->machine != COFF_MachineType_UNKNOWN && // obj with unknown machine type is compatible with any other machine type
|
||||
config->machine != obj->machine) {
|
||||
lnk_error(LNK_Error_IncompatibleObj,
|
||||
"conflicting machine types expected %S but got %S in obj %S",
|
||||
coff_string_from_machine_type(config->machine),
|
||||
coff_string_from_machine_type(obj->machine),
|
||||
obj->path);
|
||||
lnk_error_obj(LNK_Error_IncompatibleObj,
|
||||
obj,
|
||||
"conflicting machine types expected %S but got %S",
|
||||
coff_string_from_machine_type(config->machine),
|
||||
coff_string_from_machine_type(obj->machine));
|
||||
}
|
||||
}
|
||||
ProfEnd();
|
||||
|
||||
Reference in New Issue
Block a user