diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-27 11:29:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-27 11:29:15 +0000 |
commit | feee612b24c47ca30fa6efc2e31ca28ff0887ce9 (patch) | |
tree | 87f700c6c287105064a523f27ce790e51f2e7341 /bfd/cpu-powerpc.c | |
parent | Zap remainder of gdb.threads-hp directory. (diff) | |
download | binutils-gdb-feee612b24c47ca30fa6efc2e31ca28ff0887ce9.tar.gz binutils-gdb-feee612b24c47ca30fa6efc2e31ca28ff0887ce9.tar.bz2 binutils-gdb-feee612b24c47ca30fa6efc2e31ca28ff0887ce9.zip |
* 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.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bfd/cpu-powerpc.c b/bfd/cpu-powerpc.c index d77b4260c1d..55236697d71 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 */ |