mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-20 23:45:11 -04:00
Revert last change to readelf.
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user