public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Arnaud Lacombe <lacombar@gmail.com>
To: binutils@sourceware.org
Subject: Using binutils with all target enabled
Date: Wed, 01 Dec 2010 19:27:00 -0000	[thread overview]
Message-ID: <AANLkTikoyzR7HATzj2eu79e3Jpq_vQWTLUE953JXsWj7@mail.gmail.com> (raw)

Hi,

I'm playing with binutils trunk and it would seems that many tools are
not usable when built with --enable-targets=all.

nm fails with:

all-targets-nm: /linux-2.6/lib/atomic64.o: File format is ambiguous
all-targets-nm: Matching formats: elf32-littlemips
elf32-littlemips-vxworks elf32-tradlittlemips

ar is unable to generate archive index when asked to (tracked down to
an expected failure bfd_check_format_matches() after having read its
associated comment), which leads to ld being unable to use the
archives. ranlib does not work either. I did not get along the other
tool, but I'd expect similar failure.

I'd have hoped that specifying the the format explicits would have
been possible, but very few program seems to support such options.
Actually, only objdump (maybe others) accepts a '-b' flags.

Is this a known limitation of binutils built with --enable-targets=all
? If so, what can be done to fix this ? I'm particularly thinking of a
standard, binutils-wide, flag to pass the expected format.

Thanks in advance,
 - Arnaud

             reply	other threads:[~2010-12-01 19:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01 19:27 Arnaud Lacombe [this message]
2010-12-01 20:56 ` Andreas Schwab
2010-12-01 22:06 ` Mike Frysinger
2010-12-01 23:16   ` Arnaud Lacombe
2010-12-04  3:37     ` [PATCH 2/3] binutils/ar: use getopt_long() for options parsing Arnaud Lacombe
2010-12-04  3:37     ` [PATCH 1/3] binutils/ar: split ar/ranlib path Arnaud Lacombe
2010-12-04 10:45       ` Mike Frysinger
2010-12-04  3:38     ` [PATCH 3/3] binutils/ar: learn --target Arnaud Lacombe
2010-12-08  5:08       ` Alan Modra
2010-12-15 19:58       ` H.J. Lu
2010-12-15 20:09         ` Arnaud Lacombe
2010-12-16  1:23           ` H.J. Lu
2010-12-04  3:47     ` Using binutils with all target enabled Arnaud Lacombe
2010-12-02  0:10   ` Joseph S. Myers
2010-12-02  0:17     ` Arnaud Lacombe

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=AANLkTikoyzR7HATzj2eu79e3Jpq_vQWTLUE953JXsWj7@mail.gmail.com \
    --to=lacombar@gmail.com \
    --cc=binutils@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).