public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Joel Sherrill <joel@OARcorp.com>
To: gas2@cygnus.com
Subject: source of powerpc-rtems failure
Date: Thu, 16 Apr 1998 10:56:00 -0000	[thread overview]
Message-ID: <Pine.BSF.3.96.980416125137.26940L-100000@vespucci.advicom.net> (raw)

I have narrowed this down about as far as I can without getting some
advice. :) It is a bug in the bfd/configure.in script and easy to
reproduce in binutils 2.9.

Here's how:

mkdir build
../binutils-2.9/bfd/configure --target=powerpc-rtems

Edit the generated Makefile and search for "tdefaults".  It will look like
this:

tdefaults =  -DDEFAULT_VECTOR=bfd_elf32_powerpc_vec
-DSELECT_VECS='&bfd_elf32_powerpc_vec,&rs6000coff_vec,&bfd_elf32_powerpcle_vec,&bfd_powerpcle_pei_vec,&bfd_powerpc_pei_vec,&bfd_powerpcle_pe_vec,&bfd_powerpc_pe_vec,&ppcboot_vec'
-DSELECT_ARCHITECTURES='&bfd_rs6000_arch,&bfd_powerpc_arch'
-DHAVE_bfd_elf32_powerpc_vec -DHAVE_rs6000coff_vec
-DHAVE_bfd_elf32_powerpcle_vec -DHAVE_bfd_powerpcle_pei_vec
-DHAVE_bfd_powerpc_pei_vec -DHAVE_bfd_powerpcle_pe_vec
-DHAVE_bfd_powerpc_pe_vec -DHAVE_ppcboot_vec

Then clean the build directory and try this one:

../binutils-2.9/bfd/configure --target=powerpc-rtems --enable-targets=all

And the definition of tdefaults is changed to:

tdefaults =  -DDEFAULT_VECTOR=bfd_elf32_powerpc_vec

I am going to try to fix this here but thought this might be enough to
trip someone into know what the problem was.

--joel


             reply	other threads:[~1998-04-16 10:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-16 10:56 Joel Sherrill [this message]
1998-04-16 11:46 ` Ian Lance Taylor
1998-04-16 12:23   ` 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.980416125137.26940L-100000@vespucci.advicom.net \
    --to=joel@oarcorp.com \
    --cc=gas2@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).