From: Joel Sherrill <joel@OARcorp.com>
To: Ian Lance Taylor <ian@cygnus.com>
Cc: gas2@cygnus.com
Subject: Re: binutils 2.9 powerpc-rtems breakage
Date: Tue, 14 Apr 1998 11:21:00 -0000 [thread overview]
Message-ID: <Pine.BSF.3.96.980414131552.1247O-100000@vespucci.advicom.net> (raw)
In-Reply-To: <199804141742.NAA16146@subrogation.cygnus.com>
On Tue, 14 Apr 1998, Ian Lance Taylor wrote:
> Once you can do that, set a breakpoint on output_file_create in gas,
> and see what format it is passing to bfd_openw, and see why that
> format is not defined by BFD.
Done. Here is the gdb session. It looks like even though I configure
with --enable-targets=all, I am missing elf32-powerpcle support.
(gdb) b output_file_create
Breakpoint 2 at 0x8053483: file ../../src/gas/output-file.c, line 46.
(gdb) run -mlittle
Starting program: /usr1/rtems/work/tools/build-powerpc-tools/gcc/as
-mlittle
During symbol reading...inner block not inside outer block...
block at 0x4000e041 out of order...
Breakpoint 1 at 0x4002a0c6: file ../sysdeps/generic/abort.c, line 134.
During symbol reading...inner block not inside outer block...
inner block not inside outer block...
Breakpoint 2, output_file_create (name=0x8155a45 "a.out")
at ../../src/gas/output-file.c:46
46 if (name[0] == '-' && name[1] == '\0')
(gdb) bt
#0 output_file_create (name=0x8155a45 "a.out")
at ../../src/gas/output-file.c:46
#1 0x804b6ed in main (argc=1, argv=0x81a8818) at ../../src/gas/as.c:752
(gdb) n
50 else if (!(stdoutput = bfd_openw (name, TARGET_FORMAT)))
(gdb) s
bfd_openw (filename=0x8155a45 "a.out", target=0x8156d6c "elf32-powerpcle")
at ../../src/bfd/opncls.c:348
348 bfd_set_error (bfd_error_system_call);
(gdb) n
353 nbfd = _bfd_new_bfd ();
(gdb) n
354 if (nbfd == NULL)
(gdb) n
357 target_vec = bfd_find_target (target, nbfd);
(gdb) n
358 if (target_vec == NULL)
(gdb)
371 objalloc_free ((struct objalloc *) nbfd->memory);
(gdb)
372 free (nbfd);
(gdb)
373 return NULL;
(gdb)
377 }
(gdb) n
output_file_create (name=0x8155a45 "a.out") at
../../src/gas/output-file.c:52
52 as_perror ("FATAL: Can't create %s", name);
(gdb) n
Assembler messages:
FATAL: Can't create a.out: Invalid bfd target
53 exit (EXIT_FAILURE);
(gdb)
--joel
next prev parent reply other threads:[~1998-04-14 11:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199804132223.SAA11602@subrogation.cygnus.com>
1998-04-14 11:21 ` Joel Sherrill
1998-04-14 10:42 ` Ian Lance Taylor
1998-04-14 11:21 ` Joel Sherrill [this message]
1998-04-14 11:21 ` Ian Lance Taylor
1998-04-14 11:58 ` Joel Sherrill
1998-04-14 11:58 ` Ian Lance Taylor
1998-04-14 12:49 ` Joel Sherrill
1998-04-13 14:21 Joel Sherrill
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=Pine.BSF.3.96.980414131552.1247O-100000@vespucci.advicom.net \
--to=joel@oarcorp.com \
--cc=gas2@cygnus.com \
--cc=ian@cygnus.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).