]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
S/390: Fix Elf note swap s390_gs_bc vs. s390_gs_cb
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 21 Sep 2017 15:45:18 +0000 (17:45 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 21 Sep 2017 15:45:18 +0000 (17:45 +0200)
Fix two typos that resulted in swapping the BFD names for the core note
register sections NT_S390_GS_CB and NT_S390_GS_BC.

bfd/ChangeLog:

* elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and
NT_S390_GS_BC, correct the previously swapped invocations of
elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb.

bfd/ChangeLog
bfd/elf.c

index 4c8c12cd460b7671156a82008e58b48528a04732..ebefab38f5dca3b82fb8a5ccf27cfcca1471e879 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and
+       NT_S390_GS_BC, correct the previously swapped invocations of
+       elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb.
+
 2017-09-19  Alan Modra  <amodra@gmail.com>
 
        PR 21441
index 2aa2337724bf5bf4554400b4d3e472f1f219a514..9b61f06a84c9b5c5783bab86b64bd289b8f86496 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -9698,14 +9698,14 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
     case NT_S390_GS_CB:
       if (note->namesz == 6
          && strcmp (note->namedata, "LINUX") == 0)
-       return elfcore_grok_s390_gs_bc (abfd, note);
+       return elfcore_grok_s390_gs_cb (abfd, note);
       else
        return TRUE;
 
     case NT_S390_GS_BC:
       if (note->namesz == 6
          && strcmp (note->namedata, "LINUX") == 0)
-       return elfcore_grok_s390_gs_cb (abfd, note);
+       return elfcore_grok_s390_gs_bc (abfd, note);
       else
        return TRUE;