mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-19 19:43:34 -04:00
libelf/
2005-08-12 Roland McGrath <roland@redhat.com> * elf32_offscn.c: Do not match empty sections at OFFSET unless there are no nonempty sections at that offset.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2005-08-12 Roland McGrath <roland@redhat.com>
|
||||
|
||||
* elf32_offscn.c: Do not match empty sections at OFFSET unless
|
||||
there are no nonempty sections at that offset.
|
||||
|
||||
2005-08-07 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* elf.h: Update from glibc.
|
||||
|
||||
@@ -56,7 +56,12 @@ elfw2(LIBELFBITS,offscn) (elf, offset)
|
||||
if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset)
|
||||
{
|
||||
result = &runp->data[i];
|
||||
goto out;
|
||||
|
||||
/* If this section is empty, the following one has the same
|
||||
sh_offset. We presume the caller is looking for a nonempty
|
||||
section, so keep looking if this one is empty. */
|
||||
if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0)
|
||||
goto out;
|
||||
}
|
||||
|
||||
runp = runp->next;
|
||||
|
||||
Reference in New Issue
Block a user