summaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2011-11-21 13:18:06 +0000
committerAlan Modra <amodra@bigpond.net.au>2011-11-21 13:18:06 +0000
commite5a1fc1aa374c0acb51cb429db6f2229ea724a60 (patch)
tree7e310e5311f5162764bf348d70f6731e19ebeea6 /bfd/elf32-ppc.c
parent0f65dd691094ce1abd8b8cc509d148fe67f22fea (diff)
downloadbinutils-redhat-e5a1fc1aa374c0acb51cb429db6f2229ea724a60.tar.gz
* 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.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 4458f946e8..5263ae5511 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)