]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: add load config size workaround for i386 XP and earlier
authorJeremy Drake <sourceware-bugzilla@jdrake.com>
Mon, 7 Apr 2025 11:19:28 +0000 (13:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Apr 2025 11:19:28 +0000 (13:19 +0200)
commitfcdce142519644cdc359b3a7bc6eca6985e44c88
treef294063294362209a091d34555d1f73b8fb2520d
parent236214b1981b952d212e8bfd7b811210653771ae
bfd: add load config size workaround for i386 XP and earlier

Per the Microsoft PE documentation, XP and earlier on i686 require the
Size field to be 64, rather than the actual size as required on other
architectures.  I have confirmed Windows 11 accepts either 64 or the
actual size for i386 images, but only the actual size for x86_64 images.

Signed-off-by: Jeremy Drake <sourceware-bugzilla@jdrake.com>
bfd/peXXigen.c