* [Bug default/25566] New: [dwz] Take reference size into account in heuristics
@ 2020-01-01 0:00 vries at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: vries at gcc dot gnu.org @ 2020-01-01 0:00 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=25566
Bug ID: 25566
Summary: [dwz] Take reference size into account in heuristics
Product: dwz
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: default
Assignee: nobody at sourceware dot org
Reporter: vries at gcc dot gnu.org
CC: dwz at sourceware dot org
Target Milestone: ---
When looking at executables produced by a lazy DWARF producer, we find that all
the intra-CU references are done using DW_FORM_ref4:
...
$ readelf -wa cc1 \
| grep DW_FORM_ref \
| egrep -v "DW_FORM_ref4|DW_FORM_ref_addr" \
| wc -l
0
...
In such a case, if we move a DIE out of a CU into a PU, we replace a
DW_FORM_ref4 (size 4 bytes) with a DW_FORM_ref_addr (size 4 bytes in 32-bit
DWARF), so, it's size neutral.
However, if we handle an executable containing minimal intra-CU references, the
substitution is no longer size-neutral. We should take that into account in the
heuristics.
In order to do that, we should track for lower top-level DIEs the number of
intra-cu references, and their combined size.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-17 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01 0:00 [Bug default/25566] New: [dwz] Take reference size into account in heuristics vries at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).