upstream.coff-amd64.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. Subject: Recognize ia64 and amd64 COFF files
  2. Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
  3. Date: 2017-10-06
  4. Bug-Debian: https://bugs.debian.org/697846
  5. Forwarded: no, how?
  6. --- a/magic/Magdir/coff
  7. +++ b/magic/Magdir/coff
  8. @@ -26,6 +26,10 @@
  9. >>0 uleshort 0x0550 Hitachi SH little-endian
  10. # executable (RISC System/6000 V3.1) or obj module (./ibm6000)
  11. #>>0 uleshort 0x01DF
  12. +# MS Windows COFF Intel Itanium, AMD64
  13. +# https://msdn.microsoft.com/en-us/library/windows/desktop/ms680313(v=vs.85).aspx
  14. +>>0 uleshort 0x0200 Intel ia64
  15. +>>0 uleshort 0x8664 Intel amd64
  16. # TODO for other COFFs
  17. #>>0 uleshort 0xABCD COFF_TEMPLATE
  18. >>0 default x
  19. --- a/magic/Magdir/intel
  20. +++ b/magic/Magdir/intel
  21. @@ -42,6 +42,10 @@
  22. #>12 lelong >0 not stripped
  23. # no hint found, that at offset 22 is version
  24. #>22 leshort >0 - version %d
  25. +0 leshort 0x0200
  26. +>0 use display-coff
  27. +0 leshort 0x8664
  28. +>0 use display-coff
  29. # rom: file(1) magic for BIOS ROM Extensions found in intel machines
  30. # mapped into memory between 0xC0000 and 0xFFFFF