Fix erroroneous use of '%zu' in elfcore_grok_win32pstatus
authorJon Turney <jon.turney@dronecode.org.uk>
Fri, 21 Aug 2020 15:30:00 +0000 (16:30 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Mon, 24 Aug 2020 17:04:55 +0000 (18:04 +0100)
commit3cdad0846b5f37898798d4145e5b991900a46ec5
treef12756bd780d29a64c6d682fcdda42c195695dfb
parent918dc783deadc206691dcc20bf8aa6c807c10244
Fix erroroneous use of '%zu' in elfcore_grok_win32pstatus

As reported in [1], _bfd_error_handler() doesn't support '%zu'.

module_name_size is always 32-bits in the data structure we are
extracting it from, so use an unsigned int to store it instead.

[1] https://sourceware.org/pipermail/gdb-patches/2020-August/171391.html

bfd/ChangeLog:

2020-08-21  Jon Turney  <jon.turney@dronecode.org.uk>

* elf.c (elfcore_grok_win32pstatus): Change name_size to unsigned
int. Use '%u' format with  _bfd_error_handler to render it.
bfd/ChangeLog
bfd/elf.c