aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2025-01-15 19:42:43 -0800
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2025-01-16 20:03:41 -0800
commitef0802cd1f9bab26b45c370da65c5b4bd6bf580d (patch)
tree483c0cb08784634ef9e0110ad4618c11883d4d3e
parent8bd9df098fe6c697a29f679613e95afb9c90e013 (diff)
downloadbinutils-ef0802cd1f9bab26b45c370da65c5b4bd6bf580d.zip
binutils-ef0802cd1f9bab26b45c370da65c5b4bd6bf580d.tar.gz
binutils-ef0802cd1f9bab26b45c370da65c5b4bd6bf580d.tar.bz2
gprofng: don't check Elf when file is in archive
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.
-rw-r--r--gprofng/src/parse.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/gprofng/src/parse.cc b/gprofng/src/parse.cc
index 953baf1..dfc7f62 100644
--- a/gprofng/src/parse.cc
+++ b/gprofng/src/parse.cc
@@ -695,20 +695,6 @@ Experiment::process_seg_map_cmd (char */*cmd*/, hrtime_t ts, Vaddr vaddr,
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)
{