Only create a selvecs for aix5coff64_vec if 64-bit bfd support has been enabled.
authorNick Clifton <nickc@redhat.com>
Tue, 25 Jun 2002 10:05:05 +0000 (10:05 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 25 Jun 2002 10:05:05 +0000 (10:05 +0000)
bfd/ChangeLog
bfd/config.bfd
bfd/targets.c

index fe0c3453eb77c1b365be581f077eb5e4623f19f4..a819c81c49267b44ba522063c10e8c8f2e2aa393 100644 (file)
@@ -1,3 +1,12 @@
+2002-06-25  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config.bfd (powerpc-*-aix5*): Only create a selvecs for
+       aix5coff64_vec if 64-bit bfd support has been enabled.
+        (powerpc64-*-aix5*): Only define if 64-bit bfd support has
+       been enabled.
+       * targets.c (_bfd_target_vector[]): Only include
+       aix5coff64_vec if 64-bit bfd support has been enabled.
+
 2002-06-25  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
index e87508739f61ae9a4531f14f70651f728b12612a..acd77292dce0eda83d3640ae281cd29db5bc2efc 100644 (file)
@@ -809,6 +809,7 @@ case "${targ}" in
 
   powerpc-*-aix5*)
     targ_defvec=rs6000coff_vec
+#ifdef BFD64
     targ_selvecs="aix5coff64_vec"
     want64=true
     ;;
@@ -817,6 +818,7 @@ case "${targ}" in
     targ_selvecs="rs6000coff_vec"
     want64=true
     ;;
+#endif
 
   powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
     targ_defvec=rs6000coff_vec
index 49fd7d0cc68e9c4eb4ab0c38e964a89e389670cb..2699c85028d9dcec09408da60bc7cd770efb211f 100644 (file)
@@ -727,7 +727,9 @@ static const bfd_target * const _bfd_target_vector[] = {
           it wasn't omitted by mistake.  */
        &a29kcoff_big_vec,
        &a_out_adobe_vec,
+#ifdef BFD64
        &aix5coff64_vec,
+#endif
        &aout0_big_vec,
 #if 0
        /* We have no way of distinguishing these from other a.out variants */