From: Daniel Jacobowitz <drow@false.org>
To: Roland Puntaier <Roland.Puntaier@br-automation.com>
Cc: gdb@sources.redhat.com
Subject: Re: relocations when doing file command at gdb prompt
Date: Thu, 08 Mar 2007 15:22:00 -0000 [thread overview]
Message-ID: <20070308152210.GA4971@caradoc.them.org> (raw)
In-Reply-To: <OFBFDF245F.7A7D00B6-ONC1257297.0059124B-C1257297.00595BFC@br-automation.com>
On Wed, Mar 07, 2007 at 05:16:02PM +0100, Roland Puntaier wrote:
> (gdb) file -readnow YYY
> dbxread.c:
> process_one_symbol(){...
> function_start_offset = ANOFFSET (section_offsets,
> SECT_OFF_TEXT (objfile));
> ...
> case N_SLINE:...
> valu += function_start_offset;
> ...
> record_line(,,valu);
> buildsym.c:
> record_line(,,pc){...e->pc = ADDR_BITS_REMOVE(pc);
> function_start_offset had twice the value it should have when
> compared to objdump output.
So, are you loading an object file or a linked program? Does it have
relocations included? It sounds sort of like this is a linked program
with --emit-relocs; I believe someone else reported a similar problem
earlier this year.
A test case is always very helpful.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-03-08 15:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 16:16 Roland Puntaier
2007-03-08 15:22 ` Daniel Jacobowitz [this message]
2007-03-08 15:49 ` Roland Puntaier
2007-03-08 16:05 ` Daniel Jacobowitz
2007-03-08 17:54 ` Antwort: " Roland Puntaier
2007-03-08 18:26 ` Daniel Jacobowitz
2007-03-08 22:24 ` Daniel Jacobowitz
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=20070308152210.GA4971@caradoc.them.org \
--to=drow@false.org \
--cc=Roland.Puntaier@br-automation.com \
--cc=gdb@sources.redhat.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