This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11173] markers get a bad address in prelinked libraries
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 15 Jan 2010 16:52:43 -0000
- Subject: [Bug translator/11173] markers get a bad address in prelinked libraries
- References: <20100115015630.11173.jistone@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jistone at redhat dot com 2010-01-15 16:52 -------
(In reply to comment #3)
> Could you also post the "before" one (what do the addresses and bias look like
> in the good case)?
It's all there in the diff, but here's the equivalent part extracted...
> -matched probe_name function__entry probe_type uprobe at 0xd7cc4
> -probe_type == uprobe_type, use statement addr: 0xd7cc4
[...]
> -literal_addr_to_sym_addr 0xd7cc4
> -symbias 0x200000, dwbias 0x200000
> -literal_addr_to_sym_addr ret 0x2d7cc4
> We should be storing the addresses "unbiased" in the .probes section and prelink
> shouldn't relocate them, if we are using literal_addr_to_sym_addr().
> literal_addr_to_sym_addr() treats addresses as if given by the user (so raw for
> ET_EXEC or zero based for ET_DYN).
The "before" case is indeed zero-based, but the "after" case looks raw.
Maybe literal_addr_to_sym_addr can look for DT_GNU_PRELINKED and treat such
addresses as raw too?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11173
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.