public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Bridge Wu" <mingqiao.wu@gmail.com>
To: "Nick Clifton" <nickc@redhat.com>,
	"Bridge Wu" <mingqiao.wu@gmail.com>,
	 	binutils@sourceware.org
Subject: Re: why gcc/objdump not recognize binary object file format
Date: Wed, 07 Jun 2006 14:34:00 -0000	[thread overview]
Message-ID: <246188420606070727n2cbfa8cap31014b7b437d6774@mail.gmail.com> (raw)
In-Reply-To: <20060607125629.GA30148@nevyn.them.org>

The toolchain-4.1.0 consists of GCC-4.1.0, GLIBC-2.4 and
BINUTILS-2.16.92. The toolchain-3.4.4 should be similar with
CodeSourcery toolchain, I'm not sure. Thanks your hints.

On 6/7/06, Daniel Jacobowitz <drow@false.org> wrote:
> On Wed, Jun 07, 2006 at 10:59:30AM +0100, Nick Clifton wrote:
> > Hi Bridge,
> >
> > >I got two ARM EABI toolchain and want to test their compatibility. One
> > >is 3.4.4 (GCC version), the other is 4.1.0. The result is 4.1.0 can
> > >link the binary code built by 3.4.4, but on the contrary, 3.4.4 cannot
> > >recognize binary file format built by 4.1.0.
> >
> > This does not actually tell us which version of the binutils is being
> > used.  3.4.4 is a GCC version number, not a binutils version number.
>
> Given the version numbers, I'm going to take a wild guess that these
> are CodeSourcery toolchains.  If that's true, they were both 2.16.91
> snapshots, from different dates.
>
> > For most ELF targets you will probably end up in
> > bfd/elfcode.h:elf_object_p().  I suspect that you will find that the
> > checks of the machine code values are the problem.  Otherwise look at
> > the function bfd/elf32-arm.c:elf32_arm_object_p() and see if that is
> > unable to recognise the 4.1.0 generated files.
>
> I'd guess this is caused by the new section types used by the ARM
> tools, e.g. .ARM.attribute.  Binutils gives a somewhat unhelpful error
> message for unsupported section types (although I vaguely remember HJ
> improving this recently).
>
> --
> Daniel Jacobowitz
> CodeSourcery
>


-- 
best regards,
-Bridge

  reply	other threads:[~2006-06-07 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-07  9:59 Bridge Wu
2006-06-07 11:29 ` Nick Clifton
2006-06-07 14:07   ` Daniel Jacobowitz
2006-06-07 14:34     ` Bridge Wu [this message]
2006-06-07 14:27   ` Bridge Wu

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=246188420606070727n2cbfa8cap31014b7b437d6774@mail.gmail.com \
    --to=mingqiao.wu@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=nickc@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).