From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Rouslan Korneychuk <rouslank@msn.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: A little help with JIT support
Date: Wed, 01 May 2013 14:34:00 -0000 [thread overview]
Message-ID: <20130501143426.GA7081@host2.jankratochvil.net> (raw)
In-Reply-To: <BAY171-W10A17ECD8345F36595337FD6B30@phx.gbl>
On Wed, 01 May 2013 01:05:01 +0200, Rouslan Korneychuk wrote:
> Are the addresses in an in-memory object file supposed to be absolute addresses?
According to GDB's jit.c jit_bfd_try_read_symtab yes:
/* Read the section address information out of the symbol file. Since the
file is generated by the JIT at runtime, it should all of the absolute
addresses that we care about. */
+
/* We assume that these virtual addresses are absolute, and do not
treat them as offsets. */
sai->other[i].addr = bfd_get_section_vma (nbfd, sec);
When you generate it at runtime it should not matter much IMO, instead of
relocating it in GDB you can already relocate it yourself while generating the
symbol file at runtime.
Jan
next prev parent reply other threads:[~2013-05-01 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 23:05 Rouslan Korneychuk
2013-05-01 14:34 ` Jan Kratochvil [this message]
2013-05-01 22:52 ` Rouslan Korneychuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130501143426.GA7081@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=rouslank@msn.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox