public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: Ian Lance Taylor <ian@airs.com>,
	ebotcazou@libertysurf.fr, binutils@sources.redhat.com,
	schwab@suse.de
Subject: Re: Problems compiling elfxx-sparc.c
Date: Fri, 22 Apr 2005 09:52:00 -0000	[thread overview]
Message-ID: <4268C90C.4020006@redhat.com> (raw)
In-Reply-To: <20050421114123.7db52903.davem@davemloft.net>

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

Hi David,

> Ok.  So I went through the sparc targets and for each one that includes
> elf32 and no 64-bit targets I added the want64=true thing.

Unfortunately that is not enough.  All "want64=true" does is to add 
"targ64_selvecs" to the list of targets that should be configured.  If 
targ64_selvecs is empty then nothing new happens.

> Nick, does this fix your build? 

No :-(

I needed a patch like the one attached.

Cheers
   Nick


[-- Attachment #2: config.bfd.patch --]
[-- Type: text/plain, Size: 3102 bytes --]

Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.183
diff -c -3 -p -r1.183 config.bfd
*** bfd/config.bfd	23 Mar 2005 15:35:43 -0000	1.183
--- bfd/config.bfd	22 Apr 2005 09:51:32 -0000
*************** case "${targ}" in
*** 1208,1225 ****
--- 1208,1233 ----
      ;;
    sparclite-*-elf* | sparc86x-*-elf*)
      targ_defvec=bfd_elf32_sparc_vec
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc*-*-chorus*)
      targ_defvec=bfd_elf32_sparc_vec
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc-*-linux*aout*)
      targ_defvec=sparclinux_vec
      targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
      targ_underscore=yes
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc-*-linux-*)
      targ_defvec=bfd_elf32_sparc_vec
      targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc-*-lynxos*)
      targ_defvec=sparclynx_coff_vec
*************** case "${targ}" in
*** 1228,1238 ****
--- 1236,1250 ----
    sparc-*-netbsdelf*)
      targ_defvec=bfd_elf32_sparc_vec
      targ_selvecs=sparcnetbsd_vec
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc-*-netbsdaout* | sparc-*-netbsd*)
      targ_defvec=sparcnetbsd_vec
      targ_selvecs=bfd_elf32_sparc_vec
      targ_underscore=yes
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
      targ_defvec=sparcnetbsd_vec
*************** case "${targ}" in
*** 1241,1250 ****
--- 1253,1266 ----
    sparc-*-openbsd*)
      targ_defvec=bfd_elf32_sparc_vec
      targ_selvecs=sparcnetbsd_vec
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
      targ_defvec=bfd_elf32_sparc_vec
      targ_selvecs=sunos_big_vec
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
  #ifdef BFD64
    sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
*************** case "${targ}" in
*** 1254,1263 ****
--- 1270,1283 ----
  #endif
    sparc-*-sysv4*)
      targ_defvec=bfd_elf32_sparc_vec
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc-*-netware*)
      targ_defvec=bfd_elf32_sparc_vec
      targ_selvecs="nlm32_sparc_vec sunos_big_vec"
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
  #ifdef BFD64
    sparc64-*-aout*)
*************** case "${targ}" in
*** 1280,1289 ****
--- 1300,1313 ----
      targ_defvec=sunos_big_vec
      targ_selvecs="bfd_elf32_sparc_vec sparccoff_vec"
      targ_underscore=yes
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc*-*-rtems* | sparc*-*-rtemself*)
      targ_defvec=bfd_elf32_sparc_vec
      targ_selvecs="sunos_big_vec sparccoff_vec"
+     want64=true
+     targ64_selvecs=bfd_elf64_sparc_vec
      ;;
    sparc*-*-* | sparc*-*-rtems*)
      targ_defvec=sunos_big_vec

  reply	other threads:[~2005-04-22  9:52 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20 10:19 Nick Clifton
2005-04-20 13:15 ` Andreas Schwab
2005-04-20 18:26   ` David S. Miller
2005-04-20 18:40   ` David S. Miller
2005-04-20 22:38     ` Andreas Schwab
2005-04-20 23:21       ` David S. Miller
2005-04-21 12:20         ` Andreas Schwab
2005-04-21  3:16     ` Alan Modra
2005-04-21  3:24       ` David S. Miller
2005-04-22  3:19         ` Alan Modra
2005-04-22  3:53           ` David S. Miller
2005-04-21 10:50     ` Nick Clifton
2005-04-21 11:54       ` Eric Botcazou
2005-04-21 13:42         ` Ian Lance Taylor
2005-04-21 18:48           ` David S. Miller
2005-04-22  9:52             ` Nick Clifton [this message]
2005-04-22 10:02               ` Nick Clifton
2005-04-22 13:25               ` Ian Lance Taylor
2005-04-22 19:10                 ` David S. Miller
2005-04-25  9:47                   ` Nick Clifton
2005-04-25 18:32                     ` David S. Miller
2005-04-25 19:10                       ` David S. Miller
2005-04-25 21:54                         ` David S. Miller
2005-04-26  8:45                           ` Nick Clifton

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=4268C90C.4020006@redhat.com \
    --to=nickc@redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=davem@davemloft.net \
    --cc=ebotcazou@libertysurf.fr \
    --cc=ian@airs.com \
    --cc=schwab@suse.de \
    /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).