From: Roland McGrath <roland@redhat.com>
To: Randolph Chung <randolph@tausq.org>
Cc: gdb@sources.redhat.com
Subject: Re: add-symbol-file-from-memory patch breaks non-elf targets?
Date: Wed, 21 Apr 2004 10:37:00 -0000 [thread overview]
Message-ID: <200404210709.i3L795Cx002971@magilla.sf.frob.com> (raw)
In-Reply-To: Randolph Chung's message of Tuesday, 20 April 2004 21:58:17 -0700 <20040421045817.GE17842@tausq.org>
When this was all discussed originally (deciding the bfd interface), people
didn't seem concerned about non-ELF targets and seemed to prefer avoiding a
adding a bfd target function rather than just an ELF-specific interface.
Unless bfd maintainers change their minds, that's what we have for the bfd
interface--so callers of it are inherently ELF-specific.
In gdb, I could not find, and still cannot find, a reasonable way to
conditionalize something at compile time on "will there be ELF". Hence the
runtime check for bfd_target_elf_flavour, and the unconditional link-time
reference to bfd_elf_bfd_from_remote_memory. AFAICT, elfread.c is always
built into gdb even for non-ELF targets, as a further example telling me
there really is no good way to conditionalize this correctly. It happens
not to use any bfd_elf_* interfaces and so links ok and is just dead code
in ELFless configurations.
I am open to suggestions.
Thanks,
Roland
next prev parent reply other threads:[~2004-04-21 7:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-21 7:09 Randolph Chung
2004-04-21 10:37 ` Roland McGrath [this message]
2004-04-21 16:06 ` Randolph Chung
2004-04-21 18:42 ` Roland McGrath
2004-04-22 1:09 ` Andrew Cagney
2004-04-22 7:33 ` Joel Brobecker
2004-04-22 13:30 ` Jim Blandy
2004-04-22 14:57 ` Andrew Cagney
2004-04-23 4:19 ` Jim Blandy
2004-04-23 4:35 ` Roland McGrath
2004-04-23 10:05 ` Jim Blandy
2004-05-07 20:38 ` Andrew Cagney
2004-04-23 22:15 ` Joel Brobecker
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=200404210709.i3L795Cx002971@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=randolph@tausq.org \
/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