]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
Refine size constraints applied to win32pstatus ELF notes
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 1 Jul 2020 15:18:23 +0000 (16:18 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 12 Aug 2020 14:08:27 +0000 (15:08 +0100)
commit04ec0fa297637e6077cdbb735ce6d3c8fde3c9a5
tree7d5cb0abee09cba76ffc6fca267a742b5f5fe399
parent03c29a6faf7bd25a4ff368530e700f70363fe772
Refine size constraints applied to win32pstatus ELF notes

Don't reject any win32pstatus notes smaller than minimum size for a
NOTE_INFO_THREAD.

This only happens to work because the Cygwin dumper tool currently
writes all these notes as the largest size of the union, (which wastes
lots of space in the core dump).

Instead, apply the appropriate size constraint for each win32pstatus
note type.

bfd/ChangeLog:

2020-07-11  Jon Turney  <jon.turney@dronecode.org.uk>

* elf.c (elfcore_grok_win32pstatus): Don't apply size constraint
for NOTE_INFO_THREAD to all win32pstatus ELF notes, instead apply
appropriate size constraint for each win32pstatus note type.
bfd/ChangeLog
bfd/elf.c