map.xml contains a checksum for all Elf files.
gprofng-archive archives a file only with the same checksum.
In gprofng-display-text no additional check is required.
gprofng/ChangeLog
2025-01-15 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* src/parse.cc: Don't check Elf when file is in archive.
LoadObject *lo = loadObjMap->get (nm);
if (lo == NULL)
{
- if (chk == 0)
- {
- char *archName = checkFileInArchive (nm, false);
- if (archName)
- {
- Elf *elf = new Elf (archName);
- if (elf->status == Elf::ELF_ERR_NONE)
- {
- chk = elf->elf_checksum ();
- }
- free (archName);
- delete elf;
- }
- }
lo = dbeSession->find_lobj_by_name (nm, chk);
if (lo == NULL)
{