Re: [Mingw-w64-public] [PATCH 2/2] genpeimg: add support for ARMNT and ARM64 images.

2021-08-04 Thread Martin Storsjö

On Wed, 4 Aug 2021, Biswapriyo Nath wrote:


Wondering if Windows names can be used e.g. IMAGE_FILE_MACHINE_AMD64 (0x8664)


These are standalone tools, that can be built for any OS and thus don't 
include windows headers - so they can't use defines from such headers. If 
they want to, they could of course include separate named defines of their 
own, instead of just using numeric values.


// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 2/2] genpeimg: add support for ARMNT and ARM64 images.

2021-08-04 Thread Biswapriyo Nath
Wondering if Windows names can be used e.g. IMAGE_FILE_MACHINE_AMD64 (0x8664)


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 2/2] genpeimg: add support for ARMNT and ARM64 images.

2021-08-03 Thread Jeremy Drake via Mingw-w64-public
Signed-off-by: Jeremy Drake 
---
 mingw-w64-tools/genpeimg/src/img_pe.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-tools/genpeimg/src/img_pe.c 
b/mingw-w64-tools/genpeimg/src/img_pe.c
index e7ecbcd5b..345fc4e44 100644
--- a/mingw-w64-tools/genpeimg/src/img_pe.c
+++ b/mingw-w64-tools/genpeimg/src/img_pe.c
@@ -101,10 +101,12 @@ fill_pe_info (pe_image *pe)
   switch (pe->pe_filehdr.machine)
 {
 case 0x14c: /* i386 */
+case 0x1c4: /* ARMNT */
   pe->is_64bit = 0;
   pe->is_bigendian = 0;
   break;
-case 0x8664:
+case 0x8664: /* x64 */
+case 0xaa64: /* ARM64 */
   pe->is_64bit = 1;
   pe->is_bigendian = 0;
   break;
-- 
2.32.0.windows.2



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public