From: "H. J. Lu" <hjl@lucon.org>
To: James E Wilson <wilson@specifixinc.com>
Cc: binutils@sources.redhat.com
Subject: Re: PATCH: objdump: Skip linker created section
Date: Tue, 19 Apr 2005 19:17:00 -0000 [thread overview]
Message-ID: <20050419191740.GA19412@lucon.org> (raw)
In-Reply-To: <1113934528.18901.3.camel@aretha.corp.specifixinc.com>
On Tue, Apr 19, 2005 at 11:15:29AM -0700, James E Wilson wrote:
> On Sun, 2005-04-17 at 07:37, H. J. Lu wrote:
> > Should objdump skip
> > linker created section? Readelf doesn't display it.
>
> readelf does not display the section because it doesn't exist in the
> object file. Objdump displays the section because we create it always
> when bfd initializes, even if not linking. readelf is correct here.
> Objdump shouldn't be claiming the section exists.
>
> Perhaps there is a linker hook we can use instead of the elf_object_p
> hook? That would fix objdump.
>
> Alternatively, if it is always the case that a section with
> SEC_LINKER_CREATED is not in the object file, then your objdump.c patch
> looks OK to me. This does appear to be the case, as there is no section
> header flag for SEC_LINKER_CREATED, so I think this can only happen for
> your fake section group.
I believe that a SEC_LINKER_CREATED section never exists in the input
file. Otherwise, it is a bug.
H.J.
next prev parent reply other threads:[~2005-04-19 19:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-17 14:37 H. J. Lu
2005-04-19 18:15 ` James E Wilson
2005-04-19 19:17 ` H. J. Lu [this message]
2005-04-20 9:26 ` Nick Clifton
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=20050419191740.GA19412@lucon.org \
--to=hjl@lucon.org \
--cc=binutils@sources.redhat.com \
--cc=wilson@specifixinc.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).