diff options
author | bapt <bapt@FreeBSD.org> | 2014-10-10 06:24:09 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-10-10 06:24:09 +0000 |
commit | c4ad6de85563108a0d0c3c40bdabdc276acef508 (patch) | |
tree | 8a4ddae4a0aaf962ffd82d7fb419973645abab04 /contrib/binutils | |
parent | 82f995d6f356b994e66f41e2426e3e609e6a58cc (diff) | |
download | FreeBSD-src-c4ad6de85563108a0d0c3c40bdabdc276acef508.zip FreeBSD-src-c4ad6de85563108a0d0c3c40bdabdc276acef508.tar.gz |
Rename elf*-powerpc into elf*-powerpc-freebsd in binutils
The powerpc support was the only supported architecture not prepending the elf format name
with "-freebsd" in base this change makes it consistent with other architectures.
On newer version of binutils the powerpc format is also prepended with "-freebsd".
Also modify the kernel ldscripts in that regards.
As a result it is now possible cross build the kernel on powerpc using newer binutils
Differential Revision: https://reviews.freebsd.org/D926
Differential Revision: https://reviews.freebsd.org/D928
Diffstat (limited to 'contrib/binutils')
-rw-r--r-- | contrib/binutils/bfd/elf32-ppc.c | 2 | ||||
-rw-r--r-- | contrib/binutils/bfd/elf64-ppc.c | 2 | ||||
-rw-r--r-- | contrib/binutils/gas/config/tc-ppc.c | 2 | ||||
-rw-r--r-- | contrib/binutils/ld/emulparams/elf32ppc_fbsd.sh | 2 | ||||
-rw-r--r-- | contrib/binutils/ld/emulparams/elf64ppc_fbsd.sh | 1 |
5 files changed, 6 insertions, 3 deletions
diff --git a/contrib/binutils/bfd/elf32-ppc.c b/contrib/binutils/bfd/elf32-ppc.c index d67ad86..d770014 100644 --- a/contrib/binutils/bfd/elf32-ppc.c +++ b/contrib/binutils/bfd/elf32-ppc.c @@ -7572,7 +7572,7 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd, #define TARGET_LITTLE_SYM bfd_elf32_powerpcle_vec #define TARGET_LITTLE_NAME "elf32-powerpcle" #define TARGET_BIG_SYM bfd_elf32_powerpc_vec -#define TARGET_BIG_NAME "elf32-powerpc" +#define TARGET_BIG_NAME "elf32-powerpc-freebsd" #define ELF_ARCH bfd_arch_powerpc #define ELF_MACHINE_CODE EM_PPC #ifdef __QNXTARGET__ diff --git a/contrib/binutils/bfd/elf64-ppc.c b/contrib/binutils/bfd/elf64-ppc.c index c292d1e..717452d 100644 --- a/contrib/binutils/bfd/elf64-ppc.c +++ b/contrib/binutils/bfd/elf64-ppc.c @@ -58,7 +58,7 @@ static bfd_vma opd_entry_value #define TARGET_LITTLE_SYM bfd_elf64_powerpcle_vec #define TARGET_LITTLE_NAME "elf64-powerpcle" #define TARGET_BIG_SYM bfd_elf64_powerpc_vec -#define TARGET_BIG_NAME "elf64-powerpc" +#define TARGET_BIG_NAME "elf64-powerpc-freebsd" #define ELF_ARCH bfd_arch_powerpc #define ELF_MACHINE_CODE EM_PPC64 #define ELF_MAXPAGESIZE 0x10000 diff --git a/contrib/binutils/gas/config/tc-ppc.c b/contrib/binutils/gas/config/tc-ppc.c index a0e116d..1ecd99f 100644 --- a/contrib/binutils/gas/config/tc-ppc.c +++ b/contrib/binutils/gas/config/tc-ppc.c @@ -1210,7 +1210,7 @@ ppc_target_format (void) return "elf32-powerpc-vxworks"; # else return (target_big_endian - ? (ppc_obj64 ? "elf64-powerpc" : "elf32-powerpc") + ? (ppc_obj64 ? "elf64-powerpc-freebsd" : "elf32-powerpc-freebsd") : (ppc_obj64 ? "elf64-powerpcle" : "elf32-powerpcle")); # endif #endif diff --git a/contrib/binutils/ld/emulparams/elf32ppc_fbsd.sh b/contrib/binutils/ld/emulparams/elf32ppc_fbsd.sh index 2bac85c..2f8b72e 100644 --- a/contrib/binutils/ld/emulparams/elf32ppc_fbsd.sh +++ b/contrib/binutils/ld/emulparams/elf32ppc_fbsd.sh @@ -1,2 +1,4 @@ . ${srcdir}/emulparams/elf32ppc.sh . ${srcdir}/emulparams/elf_fbsd.sh + +OUTPUT_FORMAT="elf32-powerpc-freebsd" diff --git a/contrib/binutils/ld/emulparams/elf64ppc_fbsd.sh b/contrib/binutils/ld/emulparams/elf64ppc_fbsd.sh index ec2374f..3f73ed9 100644 --- a/contrib/binutils/ld/emulparams/elf64ppc_fbsd.sh +++ b/contrib/binutils/ld/emulparams/elf64ppc_fbsd.sh @@ -1,3 +1,4 @@ . ${srcdir}/emulparams/elf64ppc.sh . ${srcdir}/emulparams/elf_fbsd.sh +OUTPUT_FORMAT="elf64-powerpc-freebsd" |