Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Gary Benson <gbenson@redhat.com>
To: Ashutosh <ashutoshpal2006@gmail.com>
Cc: Paul_Koning@dell.com, gdb@sourceware.org
Subject: Re: endianness handling inside gdb
Date: Fri, 23 Oct 2015 11:56:00 -0000	[thread overview]
Message-ID: <20151023115555.GA1584@blade.nx> (raw)
In-Reply-To: <CADHm+zu_1JnfrLWyXxAPeZh4APDtC6buRbBVMnLG==mtVK3VSw@mail.gmail.com>

Ashutosh wrote:
> Actually, the ELF that I am dealing with, organizes the data in the
> following way:
> - all values inside non-allocatable/non-loadable sections like the
> dwarf sections are encoded as per the endianness of the ELF
> - all the processor-specific (i.e. all loadable) values are encoded
> as per the endianness of the target processor
...
> Thinking again about this now, the scenario that I mention looks
> somewhat uncommon (and may be digressing a bit from the ELF
> standard)

It probably is a violation of the standard.  Page 1-6 says that
e_ident[EI_DATA] specifies the data encoding of the processor-
specific data in the object file.  In the file you describe this
is not the case.

Is there some special reason why this ELF file is like this?
What generated the file?

Thanks,
Gary

-- 
http://gbenson.net/


      reply	other threads:[~2015-10-23 11:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22 19:01 Ashutosh
2015-10-22 19:23 ` Paul_Koning
2015-10-23  7:22   ` Ashutosh
2015-10-23 11:56     ` Gary Benson [this message]

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=20151023115555.GA1584@blade.nx \
    --to=gbenson@redhat.com \
    --cc=Paul_Koning@dell.com \
    --cc=ashutoshpal2006@gmail.com \
    --cc=gdb@sourceware.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