From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Sherrill To: Ian Lance Taylor Cc: gas2@cygnus.com Subject: Re: binutils 2.9 powerpc-rtems breakage Date: Tue, 14 Apr 1998 11:21:00 -0000 Message-id: References: <199804141742.NAA16146@subrogation.cygnus.com> X-SW-Source: 1998/msg00115.html 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