Bug 26667 - Add powerpc64le-*-freebsd* support (elf64-powerpcle-freebsd)
Summary: Add powerpc64le-*-freebsd* support (elf64-powerpcle-freebsd)
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.36
: P2 normal
Target Milestone: 2.36
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-26 21:34 UTC by Brandon Bergren
Modified: 2020-10-06 07:18 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
basic target support (1.71 KB, patch)
2020-09-26 21:34 UTC, Brandon Bergren
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Bergren 2020-09-26 21:34:04 UTC
Created attachment 12865 [details]
basic target support

powerpc64le-unknown-freebsd13.0 is a brand new target for FreeBSD.

Add support for targeting it with binutils.

(Note: I don't have the maintainer mode autotools installed, I patched Makefile.am by hand. Would appreciate if someone reran automake to double check my work.)

I verified basic operation of ld by using it as an external linker from clang.
Comment 1 Sourceware Commits 2020-10-06 06:40:14 UTC
The master branch has been updated by Alan Modra <amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6afcdeb3581e99e2d4ce06d0034c7c47292aeec1

commit 6afcdeb3581e99e2d4ce06d0034c7c47292aeec1
Author: Brandon Bergren <bdragon@FreeBSD.org>
Date:   Tue Oct 6 09:19:23 2020 +1030

    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.
Comment 2 Alan Modra 2020-10-06 07:18:42 UTC
Patch applied.