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:
Roland McGrath
2005-08-13 03:37:49 +00:00
parent f8873cb863
commit e9c4e8ec6f
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -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.
+6 -1
View File
@@ -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;