This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: locexpr vs. loclist 1 entry
- From: Roland McGrath <roland at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 25 Sep 2009 11:51:30 -0700
- Subject: Re: locexpr vs. loclist 1 entry
> $ src/dwarfcmp ./a.out ./a.out.out
> 3d vs 57: data_member_location={locexpr} vs
> data_member_location={loclist 1 entries}
>
> It's certainly not optimal to store it this way, but aren't these two
> cases actually equal? (Um, assuming there's no other difference, like
> the bytecode being actually different, which I didn't check.)
Technically it's not even possible to have a location list in
DW_AT_data_member_location, unless you're using the new DW_FORM_sec_offset.
(Any data* form there is not a loclistptr, but a constant.)
I think in the current code a plain location expr should be treated the
same as a location list with a single range from 0 to ~0. It might not
be smart about ~0 in 32-bit address-size though, that wouldn't surprise me.
What's the actual dump of these two objects?
Thanks,
Roland