aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-11-21 13:18:07 +0000
committerAlan Modra <amodra@gmail.com>2011-11-21 13:18:07 +0000
commit7b8e7dad7131b75d8e0e4f0560002006b91e8ff3 (patch)
treeb1fbd27eaa69acc8f8dab48194a658b367bde61c /bfd/elf64-ppc.c
parentfbdd3712c9896a56c4ec074d69dff4f4307da207 (diff)
downloadgdb-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/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 351ebc1..6f0e83e 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -13899,3 +13899,22 @@ ppc64_elf_finish_dynamic_sections (bfd *output_bfd,
}
#include "elf64-target.h"
+
+/* FreeBSD support */
+
+#undef TARGET_LITTLE_SYM
+#undef TARGET_LITTLE_NAME
+
+#undef TARGET_BIG_SYM
+#define TARGET_BIG_SYM bfd_elf64_powerpc_freebsd_vec
+#undef TARGET_BIG_NAME
+#define TARGET_BIG_NAME "elf64-powerpc-freebsd"
+
+#undef ELF_OSABI
+#define ELF_OSABI ELFOSABI_FREEBSD
+
+#undef elf64_bed
+#define elf64_bed elf64_powerpc_fbsd_bed
+
+#include "elf64-target.h"
+