]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf.c
Don't hardcode CONTEXT size for a NOTE_INFO_THREAD win32pstatus note
[thirdparty/binutils-gdb.git] / bfd / elf.c
index 26a4d32d1856bfea23aa9a87123d8b26532bfc79..43a6cba89dacfa617950feb527a6819f80d4c0f0 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -10178,7 +10178,7 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note)
        return FALSE;
 
       /* sizeof (thread_info.thread_context) */
-      sect->size = 716;
+      sect->size = note->descsz - 12;
       /* offsetof (thread_info.thread_context) */
       sect->filepos = note->descpos + 12;
       sect->alignment_power = 2;