Skip to content

Commit

Permalink
Add Arm64 support to COFF symbol export feature
Browse files Browse the repository at this point in the history
  • Loading branch information
4creators committed Dec 17, 2017
1 parent d4fb313 commit 8950183
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/bindexplib.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,9 @@ bool DumpFile(const char* filename, std::set<std::string>& symbols,
/* Does it look like a COFF OBJ file??? */
else if (((dosHeader->e_magic == IMAGE_FILE_MACHINE_I386) ||
(dosHeader->e_magic == IMAGE_FILE_MACHINE_AMD64) ||
(dosHeader->e_magic == IMAGE_FILE_MACHINE_ARMNT)) &&
(dosHeader->e_sp == 0)) {
(dosHeader->e_magic == IMAGE_FILE_MACHINE_ARMNT)) ||
(dosHeader->e_magic == IMAGE_FILE_MACHINE_ARM64) &&
(dosHeader->e_sp == 0)) {
/*
* The two tests above aren't what they look like. They're
* really checking for IMAGE_FILE_HEADER.Machine == i386 (0x14C)
Expand Down

0 comments on commit 8950183

Please sign in to comment.