public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Using binutils with all target enabled
@ 2010-12-01 19:27 Arnaud Lacombe
  2010-12-01 20:56 ` Andreas Schwab
  2010-12-01 22:06 ` Mike Frysinger
  0 siblings, 2 replies; 15+ messages in thread
From: Arnaud Lacombe @ 2010-12-01 19:27 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-12-15 20:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01 19:27 Using binutils with all target enabled Arnaud Lacombe
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

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).