diff options
author | Alan Modra <amodra@gmail.com> | 2011-11-21 13:18:07 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-11-21 13:18:07 +0000 |
commit | 7b8e7dad7131b75d8e0e4f0560002006b91e8ff3 (patch) | |
tree | b1fbd27eaa69acc8f8dab48194a658b367bde61c /bfd/elf32-ppc.c | |
parent | fbdd3712c9896a56c4ec074d69dff4f4307da207 (diff) | |
download | gdb-7b8e7dad7131b75d8e0e4f0560002006b91e8ff3.zip gdb-7b8e7dad7131b75d8e0e4f0560002006b91e8ff3.tar.gz gdb-7b8e7dad7131b75d8e0e4f0560002006b91e8ff3.tar.bz2 |
* config.bfd: Add vectors for powerpc and powerpc64-freebsd.
* configure.in (TDEFINES): Add rules for powerpc*-freebsd.
* configure: Regenerate.
* elf32-ppc.c: Add powerpc-freebsd definitions.
* elf64-ppc.c: Add powerpc64-freebsd definitions.
* targets.c: Add bits for powerpc and powerpc64-freebsd.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 4458f94..5263ae5 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -9129,6 +9129,24 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd, #include "elf32-target.h" +/* FreeBSD Target */ + +#undef TARGET_LITTLE_SYM +#undef TARGET_LITTLE_NAME + +#undef TARGET_BIG_SYM +#define TARGET_BIG_SYM bfd_elf32_powerpc_freebsd_vec +#undef TARGET_BIG_NAME +#define TARGET_BIG_NAME "elf32-powerpc-freebsd" + +#undef ELF_OSABI +#define ELF_OSABI ELFOSABI_FREEBSD + +#undef elf32_bed +#define elf32_bed elf32_powerpc_fbsd_bed + +#include "elf32-target.h" + /* VxWorks Target */ #undef TARGET_LITTLE_SYM @@ -9139,6 +9157,8 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd, #undef TARGET_BIG_NAME #define TARGET_BIG_NAME "elf32-powerpc-vxworks" +#undef ELF_OSABI + /* VxWorks uses the elf default section flags for .plt. */ static const struct bfd_elf_special_section * ppc_elf_vxworks_get_sec_type_attr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec) |