aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorBrandon Bergren <bdragon@FreeBSD.org>2020-10-06 09:19:23 +1030
committerAlan Modra <amodra@gmail.com>2020-10-06 17:09:27 +1030
commit6afcdeb3581e99e2d4ce06d0034c7c47292aeec1 (patch)
tree742611b296f94d1680d5d4b06e0872bad3935afd /bfd/elf64-ppc.c
parent0897537869c1b81955140ae4bd693e504ac05016 (diff)
downloadgdb-6afcdeb3581e99e2d4ce06d0034c7c47292aeec1.zip
gdb-6afcdeb3581e99e2d4ce06d0034c7c47292aeec1.tar.gz
gdb-6afcdeb3581e99e2d4ce06d0034c7c47292aeec1.tar.bz2
PR26667, Add powerpc64le-*-freebsd* support
PR 26667 bfd/ * config.bfd: Add powerpc64le-*-freebsd*. * configure.ac: Add powerpc_elf64_fbsd_le_vec. * elf64-ppc.c (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define for freebsd. * targets.c (powerpc_elf64_fbsd_le_vec): Declare. (_bfd_target_vector): Add it. * configure: Regenerate. ld/ * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64lppc_fbsd.c. Include $(DEPDIR)/eelf64lppc_fbsd.Pc. * configure.tgt: Add powerpc64le-*-freebsd*. * emulparams/elf64lppc_fbsd.sh: New file. * Makefile.in: Regenerate. * po/BLD-POTFILES.in: Regenerate.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 35f3cbe..fa0c7f9 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -17717,7 +17717,9 @@ ppc64_elf_finish_dynamic_sections (bfd *output_bfd,
/* FreeBSD support */
#undef TARGET_LITTLE_SYM
+#define TARGET_LITTLE_SYM powerpc_elf64_fbsd_le_vec
#undef TARGET_LITTLE_NAME
+#define TARGET_LITTLE_NAME "elf64-powerpcle-freebsd"
#undef TARGET_BIG_SYM
#define TARGET_BIG_SYM powerpc_elf64_fbsd_vec