Package: mingw-w64-tools
Version: 7.0.0-2

genpeimg claims to work on "files..." but ignores all but the last file
listed.  here's a demonstration of this with -x:

```
0 dkg@alice:~$ genpeimg -h 2>&1 | head -n1
genpeimg [options] files...
0 dkg@alice:~$ ls -l xx/foo.dll xx/bar.exe
-rwxr-xr-x 1 dkg dkg 28160 Mar  5 17:57 xx/bar.exe
-rwxr-xr-x 1 dkg dkg 35328 Mar  5 17:57 xx/foo.dll
0 dkg@alice:~$ genpeimg -x xx/foo.dll xx/bar.exe
PE image "xx/bar.exe"
  found at position 0x80 in file-image
  Image has size of 0x6d80 byte(s)
  Image machine kind is: 0x14c (32-bit)
  Image contains 7 section(s)
  Optional header-size is 224
  Characterstics: relocs-stripped executable line-numbers-stripped 
local-syms-stripped 32-bit-machine debug-stripped
PE+ optional header information
  Linker version 2.34, Code size: 0x3c00, Initialized Data size: 0x6a00
  Uninitialized Data size: 0x400, Entry-point 0x14a0
  Bases: Code=0x1000 Data=0x5000 ImageBase=0x400000
  Alignments: Section: 0x1000 File:0x200
  Versions: OS:4.0 Image:1.0 SubSystem:4.0, win32:0x0
  Size of:  Image:0xc000 Headers:0x400
  Checksum: 0xfc1d
  SubSystem: Windows CUI (3)
Sizes Stack: Reserved:0x200000 Commit:0x1000
Sizes Heap: Reserved:0x100000 Commit:0x1000
LoaderFlags: 0, # of rva&sizes: 16
0 dkg@alice:~$ genpeimg -x xx/bar.exe xx/foo.dll
PE image "xx/foo.dll"
  found at position 0x80 in file-image
  Image has size of 0x8980 byte(s)
  Image machine kind is: 0x8664 (64-bit)
  Image contains 11 section(s)
  Optional header-size is 240
  Characterstics: executable line-numbers-stripped local-syms-stripped 
large-address-aware debug-stripped DLL
PE+ optional header information
  Linker version 2.34, Code size: 0x3c00, Initialized Data size: 0x8600
  Uninitialized Data size: 0xa00, Entry-point 0x1330
  Bases: Code=0x1000 ImageBase=0x63940000
  Alignments: Section: 0x1000 File:0x200
  Versions: OS:4.0 Image:0.0 SubSystem:5.2, win32:0x0
  Size of:  Image:0x11000 Headers:0x400
  Checksum: 0x1785e
  SubSystem: Windows CUI (3)
Sizes Stack: Reserved:0x200000 Commit:0x1000
Sizes Heap: Reserved:0x100000 Commit:0x1000
LoaderFlags: 0x0, # of rva&sizes: 16
0 dkg@alice:~$
```

But the same problem happens when trying to modify files with -d as
well.

(it would be nice if there was also a manpage for genpeimg)

        --dkg

Attachment: signature.asc
Description: PGP signature

Reply via email to