Skip to content

Commit 8950183

Browse files
committed
Add Arm64 support to COFF symbol export feature
1 parent d4fb313 commit 8950183

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source/bindexplib.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ bool DumpFile(const char* filename, std::set<std::string>& symbols,
328328
/* Does it look like a COFF OBJ file??? */
329329
else if (((dosHeader->e_magic == IMAGE_FILE_MACHINE_I386) ||
330330
(dosHeader->e_magic == IMAGE_FILE_MACHINE_AMD64) ||
331-
(dosHeader->e_magic == IMAGE_FILE_MACHINE_ARMNT)) &&
332-
(dosHeader->e_sp == 0)) {
331+
(dosHeader->e_magic == IMAGE_FILE_MACHINE_ARMNT)) ||
332+
(dosHeader->e_magic == IMAGE_FILE_MACHINE_ARM64) &&
333+
(dosHeader->e_sp == 0)) {
333334
/*
334335
* The two tests above aren't what they look like. They're
335336
* really checking for IMAGE_FILE_HEADER.Machine == i386 (0x14C)

0 commit comments

Comments
 (0)