bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/26246] invalid access in bfd/elf32-xtensa.c


From: amodra at gmail dot com
Subject: [Bug binutils/26246] invalid access in bfd/elf32-xtensa.c
Date: Thu, 16 Jul 2020 00:07:37 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26246

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |xtensa-*-*

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
I suppose this would also work..

static int
removed_literal_compare (const void *a, const void *b)
{
  const bfd_vma *key = a;
  const removed_literal_map_entry *memb = b;

  if (*key == memb->addr)
    return 0;
  else
    return *key < memb->addr ? -1 : 1;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]