This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] S/390: Fix Elf note swap s390_gs_bc vs. s390_gs_cb
- From: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- To: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>, binutils at sourceware dot org
- Date: Thu, 21 Sep 2017 17:33:23 +0200
- Subject: Re: [PATCH] S/390: Fix Elf note swap s390_gs_bc vs. s390_gs_cb
- Authentication-results: sourceware.org; auth=none
- References: <m3vakcytjz.fsf@oc1027705133.ibm.com>
On 09/21/2017 05:12 PM, Andreas Arnez wrote:
> 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/elf.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/bfd/elf.c b/bfd/elf.c
> index 2aa2337..9b61f06 100644
> --- 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;
>
Ok. Thanks!
-Andreas-