From 680f9d5c14ef8308abaa116cf31979c78e9a563e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 25 Jun 2002 10:05:05 +0000 Subject: [PATCH] Only create a selvecs for aix5coff64_vec if 64-bit bfd support has been enabled. --- bfd/ChangeLog | 9 +++++++++ bfd/config.bfd | 2 ++ bfd/targets.c | 2 ++ 3 files changed, 13 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fe0c3453eb7..a819c81c492 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2002-06-25 Nick Clifton + + * 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 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy. diff --git a/bfd/config.bfd b/bfd/config.bfd index e87508739f6..acd77292dce 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -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 diff --git a/bfd/targets.c b/bfd/targets.c index 49fd7d0cc68..2699c85028d 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -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 */ -- 2.30.2