PE objdump -x
authorAlan Modra <amodra@gmail.com>
Tue, 2 Aug 2022 07:23:54 +0000 (16:53 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 2 Aug 2022 07:31:56 +0000 (17:01 +0930)
commit217cbb0055391809d6dfb56cec053fdd3cf08b75
tree2b6d348d7757ff4b568fe77da084af9e8017e5dc
parentd2dcf3908f2b1da5bc84eaef61d7b758d07009a6
PE objdump -x

objdump -x on PE executables produces lots of "xdata section corrupt"
and "corrupt unwind data" warnings, and refuses to dump that info.  It
turns out that the sanity checks were bad, not the data.  Fix them.

* pei-x86_64.c (pex64_get_unwind_info): Correct buffer overrun
sanity checks.
(pex64_xdata_print_uwd_codes): Similarly.
bfd/pei-x86_64.c