Revert last change to readelf.

This commit is contained in:
Ulrich Drepper
2008-01-21 18:44:55 +00:00
parent 51b3032ea9
commit fbc708da81
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -19,9 +19,6 @@
*nextp. Fix wrong logic in recognizing first iteration of group
loop. When clearing flags, also clear ld_state.group_start_archive.
* src/readelf.c (process_elf_file): When re-reading pure file,
don't first open the file and then map from the mapped archive.
2008-01-11 Ulrich Drepper <drepper@redhat.com>
* objdump.c (show_disasm): Adjust disassembler format string for
+1 -2
View File
@@ -602,6 +602,7 @@ process_elf_file (Dwfl_Module *dwflmod, int fd)
{
/* Read the file afresh. */
off64_t aroff = elf_getaroff (elf);
pure_elf = elf_begin (fd, ELF_C_READ_MMAP, NULL);
if (aroff > 0)
{
/* Archive member. */
@@ -610,8 +611,6 @@ process_elf_file (Dwfl_Module *dwflmod, int fd)
elf_end (pure_elf);
pure_elf = armem;
}
else
pure_elf = elf_begin (fd, ELF_C_READ_MMAP, NULL);
if (pure_elf == NULL)
goto elf_error;
pure_ebl = ebl_openbackend (pure_elf);