aboutsummaryrefslogtreecommitdiff
path: root/bfd/cpu-powerpc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-06-27 11:29:15 +0000
committerAlan Modra <amodra@gmail.com>2002-06-27 11:29:15 +0000
commitfeee612b24c47ca30fa6efc2e31ca28ff0887ce9 (patch)
tree87f700c6c287105064a523f27ce790e51f2e7341 /bfd/cpu-powerpc.c
parent6aa4d13aab46b82a55e4849891f103a1743ba289 (diff)
downloadgdb-feee612b24c47ca30fa6efc2e31ca28ff0887ce9.zip
gdb-feee612b24c47ca30fa6efc2e31ca28ff0887ce9.tar.gz
gdb-feee612b24c47ca30fa6efc2e31ca28ff0887ce9.tar.bz2
* cpu-powerpc.c: Comment on ordering of arch_info.
* elf32-ppc.c (ppc_elf_object_p): New function. (elf_backend_object_p): Define. * elf64-ppc.c (ppc64_elf_object_p): New function. (elf_backend_object_p): Define.
Diffstat (limited to 'bfd/cpu-powerpc.c')
-rw-r--r--bfd/cpu-powerpc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bfd/cpu-powerpc.c b/bfd/cpu-powerpc.c
index d77b426..5523669 100644
--- a/bfd/cpu-powerpc.c
+++ b/bfd/cpu-powerpc.c
@@ -50,7 +50,8 @@ powerpc_compatible (a,b)
const bfd_arch_info_type bfd_powerpc_archs[] =
{
-#if BFD_DEFAULT_TARGET_SIZE == 64 /* default arch must come first. */
+#if BFD_DEFAULT_TARGET_SIZE == 64
+ /* Default arch must come first. */
{
64, /* 64 bits in a word */
64, /* 64 bits in an address */
@@ -65,6 +66,8 @@ const bfd_arch_info_type bfd_powerpc_archs[] =
bfd_default_scan,
&bfd_powerpc_archs[1]
},
+ /* elf32-ppc:ppc_elf_object_p relies on the default 32 bit arch
+ being immediately after the 64 bit default. */
{
32, /* 32 bits in a word */
32, /* 32 bits in an address */
@@ -80,6 +83,7 @@ const bfd_arch_info_type bfd_powerpc_archs[] =
&bfd_powerpc_archs[2],
},
#else
+ /* Default arch must come first. */
{
32, /* 32 bits in a word */
32, /* 32 bits in an address */
@@ -94,6 +98,8 @@ const bfd_arch_info_type bfd_powerpc_archs[] =
bfd_default_scan,
&bfd_powerpc_archs[1],
},
+ /* elf64-ppc:ppc64_elf_object_p relies on the default 64 bit arch
+ being immediately after the 32 bit default. */
{
64, /* 64 bits in a word */
64, /* 64 bits in an address */