pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/binutils binutils: import NetBSD/aarch64 support...
details: https://anonhg.NetBSD.org/pkgsrc/rev/128796f6d5cd
branches: trunk
changeset: 372417:128796f6d5cd
user: fcambus <fcambus%pkgsrc.org@localhost>
date: Mon Jan 24 15:10:46 2022 +0000
description:
binutils: import NetBSD/aarch64 support patches for ld from src.
This fixes the build on NetBSD/aarch64.
diffstat:
devel/binutils/Makefile | 4 +-
devel/binutils/distinfo | 11 ++-
devel/binutils/patches/patch-ld_Makefile.am | 33 +++++++
devel/binutils/patches/patch-ld_Makefile.in | 33 +++++++
devel/binutils/patches/patch-ld_configure.tgt | 19 ++++
devel/binutils/patches/patch-ld_emulparams_aarch64nbsd.sh | 44 ++++++++++
devel/binutils/patches/patch-ld_emulparams_aarch64nbsdb.sh | 9 ++
devel/binutils/patches/patch-ld_emulparams_armelf__nbsd__eabi.sh | 34 +++++++
devel/binutils/patches/patch-ld_emulparams_armelf__nbsd__eabihf.sh | 27 ++++++
devel/binutils/patches/patch-ld_emulparams_armelfb__nbsd__eabi.sh | 9 ++
devel/binutils/patches/patch-ld_emulparams_armelfb__nbsd__eabihf.sh | 9 ++
11 files changed, 229 insertions(+), 3 deletions(-)
diffs (288 lines):
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/Makefile
--- a/devel/binutils/Makefile Mon Jan 24 14:34:05 2022 +0000
+++ b/devel/binutils/Makefile Mon Jan 24 15:10:46 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.101 2022/01/14 08:35:59 fcambus Exp $
+# $NetBSD: Makefile,v 1.102 2022/01/24 15:10:46 fcambus Exp $
DISTNAME= binutils-2.37
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX= .tar.bz2
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/distinfo
--- a/devel/binutils/distinfo Mon Jan 24 14:34:05 2022 +0000
+++ b/devel/binutils/distinfo Mon Jan 24 15:10:46 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.45 2022/01/14 08:35:59 fcambus Exp $
+$NetBSD: distinfo,v 1.46 2022/01/24 15:10:46 fcambus Exp $
BLAKE2s (binutils-2.37.tar.bz2) = cbcd25c08c84f0fca9c77936991cef9b3a2c6f8350ecb98a7877fc0107f34db9
SHA512 (binutils-2.37.tar.bz2) = b3f5184697f77e94c95d48f6879de214eb5e17aa6ef8e96f65530d157e515b1ae2f290e98453e4ff126462520fa0f63852b6e1c8fbb397ed2e41984336bc78c6
@@ -10,3 +10,12 @@
SHA1 (patch-gold_system.h) = 9b4130b5315763daa66e0a91a8be6d1df0d10344
SHA1 (patch-gold_testsuite_Makefile.in) = 24ede750675829281436d728d77073638f58d6b9
SHA1 (patch-include_safe-ctype.h) = 66e636f8200ff5e9b4bfa0a5aee13cd072a23887
+SHA1 (patch-ld_Makefile.am) = 2e0a3e6ffde0816a33630e506ef2a997a7946630
+SHA1 (patch-ld_Makefile.in) = 4c33becb63eb0953b15fc043f803ad01a9661cb9
+SHA1 (patch-ld_configure.tgt) = b3f9d3d57c320a88f611eff159dd5a38d75325ba
+SHA1 (patch-ld_emulparams_aarch64nbsd.sh) = 6489e5996eefdb8ba66c73d7425443109d47e6a9
+SHA1 (patch-ld_emulparams_aarch64nbsdb.sh) = 9980f3ca8cb7cac1b56c71c482b691fa2f7659a1
+SHA1 (patch-ld_emulparams_armelf__nbsd__eabi.sh) = 464b0957f95a1a8ba6a92ee0091b929d9c980470
+SHA1 (patch-ld_emulparams_armelf__nbsd__eabihf.sh) = 972678f6bab6e910fe7ac29c6c06f1a438d308a0
+SHA1 (patch-ld_emulparams_armelfb__nbsd__eabi.sh) = 67a519cac8986ab2520861bbd1100782295637d2
+SHA1 (patch-ld_emulparams_armelfb__nbsd__eabihf.sh) = 6f58d6aa6d601544d9ad00a9ac4fdc704390a42c
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_Makefile.am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_Makefile.am Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ld_Makefile.am,v 1.3 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/Makefile.am.orig 2022-01-24 11:00:34.214241856 +0000
++++ ld/Makefile.am
+@@ -172,6 +172,8 @@ ALL_EMULATION_SOURCES = \
+ earmelf_linux_fdpiceabi.c \
+ earmelf_nacl.c \
+ earmelf_nbsd.c \
++ earmelf_nbsd_eabi.c \
++ earmelf_nbsd_eabihf.c \
+ earmelf_phoenix.c \
+ earmelf_vxworks.c \
+ earmelfb.c \
+@@ -182,6 +184,8 @@ ALL_EMULATION_SOURCES = \
+ earmelfb_linux_fdpiceabi.c \
+ earmelfb_nacl.c \
+ earmelfb_nbsd.c \
++ earmelfb_nbsd_eabi.c \
++ earmelfb_nbsd_eabihf.c \
+ earmnto.c \
+ earmpe.c \
+ eavr1.c \
+@@ -385,6 +389,8 @@ ALL_64_EMULATION_SOURCES = \
+ eaarch64fbsdb.c \
+ eaarch64linux.c \
+ eaarch64linuxb.c \
++ eaarch64nbsd.c \
++ eaarch64nbsdb.c \
+ eaarch64linux32.c \
+ eaarch64linux32b.c \
+ eelf32_x86_64.c \
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_Makefile.in Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ld_Makefile.in,v 1.3 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/Makefile.in.orig 2022-01-24 11:11:50.321756134 +0000
++++ ld/Makefile.in
+@@ -662,6 +662,8 @@ ALL_EMULATION_SOURCES = \
+ earmelf_linux_fdpiceabi.c \
+ earmelf_nacl.c \
+ earmelf_nbsd.c \
++ earmelf_nbsd_eabi.c \
++ earmelf_nbsd_eabihf.c \
+ earmelf_phoenix.c \
+ earmelf_vxworks.c \
+ earmelfb.c \
+@@ -672,6 +674,8 @@ ALL_EMULATION_SOURCES = \
+ earmelfb_linux_fdpiceabi.c \
+ earmelfb_nacl.c \
+ earmelfb_nbsd.c \
++ earmelfb_nbsd_eabi.c \
++ earmelfb_nbsd_eabihf.c \
+ earmnto.c \
+ earmpe.c \
+ eavr1.c \
+@@ -874,6 +878,8 @@ ALL_64_EMULATION_SOURCES = \
+ eaarch64fbsdb.c \
+ eaarch64linux.c \
+ eaarch64linuxb.c \
++ eaarch64nbsd.c \
++ eaarch64nbsdb.c \
+ eaarch64linux32.c \
+ eaarch64linux32b.c \
+ eelf32_x86_64.c \
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_configure.tgt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_configure.tgt Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-ld_configure.tgt,v 1.7 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/configure.tgt.orig 2022-01-24 10:16:24.837151195 +0000
++++ ld/configure.tgt
+@@ -77,6 +77,12 @@ aarch64-*-linux*) targ_emul=aarch64linux
+ targ_extra_libpath="aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
+ targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath"
+ ;;
++aarch64_be-*-netbsd*) targ_emul=aarch64nbsdb
++ targ_extra_emuls="aarch64nbsd aarch64elfb aarch64elf armelfb_nbsd_eabihf armelf_nbsd_eabihf armelfb_nbsd_eabi armelf_nbsd_eabi armelfb_nbsd armelf_nbsd armelf armelfb"
++ ;;
++aarch64-*-netbsd*) targ_emul=aarch64nbsd
++ targ_extra_emuls="aarch64nbsdb aarch64elf aarch64elfb armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf armelfb"
++ ;;
+ alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
+ targ_emul=elf64alpha_fbsd
+ targ_extra_emuls="elf64alpha alpha"
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_emulparams_aarch64nbsd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_emulparams_aarch64nbsd.sh Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-ld_emulparams_aarch64nbsd.sh,v 1.1 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/emulparams/aarch64nbsd.sh.orig 2022-01-24 10:48:11.335578875 +0000
++++ ld/emulparams/aarch64nbsd.sh
+@@ -0,0 +1,37 @@
++ARCH=aarch64
++MACHINE=
++NOP=0
++
++SCRIPT_NAME=elf
++ELFSIZE=64
++OUTPUT_FORMAT="elf64-littleaarch64"
++BIG_OUTPUT_FORMAT="elf64-bigaarch64"
++LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
++NO_REL_RELOCS=yes
++
++TEMPLATE_NAME=elf
++EXTRA_EM_FILE=aarch64elf
++
++GENERATE_SHLIB_SCRIPT=yes
++GENERATE_PIE_SCRIPT=yes
++
++MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
++COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
++SEPARATE_GOTPLT=24
++IREL_IN_PLT=
++
++TEXT_START_ADDR=0x200100000
++
++DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
++
++# AArch64 does not support .s* sections.
++NO_SMALL_DATA=yes
++
++OTHER_BSS_SYMBOLS='__bss_start__ = .;'
++OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
++OTHER_END_SYMBOLS='__end__ = . ;'
++
++OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
++ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'
++# Ensure each PLT entry is aligned to a cache line.
++PLT=".plt ${RELOCATING-0} : ALIGN(16) { *(.plt)${IREL_IN_PLT+ *(.iplt)} }"
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_emulparams_aarch64nbsdb.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_emulparams_aarch64nbsdb.sh Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,9 @@
+$NetBSD: patch-ld_emulparams_aarch64nbsdb.sh,v 1.1 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/emulparams/aarch64nbsdb.sh.orig 2022-01-24 10:48:14.877303134 +0000
++++ ld/emulparams/aarch64nbsdb.sh
+@@ -0,0 +1,2 @@
++. ${srcdir}/emulparams/aarch64nbsd.sh
++OUTPUT_FORMAT="elf64-bigaarch64"
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_emulparams_armelf__nbsd__eabi.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_emulparams_armelf__nbsd__eabi.sh Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ld_emulparams_armelf__nbsd__eabi.sh,v 1.1 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/emulparams/armelf_nbsd_eabi.sh.orig 2022-01-24 10:52:48.194751022 +0000
++++ ld/emulparams/armelf_nbsd_eabi.sh
+@@ -0,0 +1,27 @@
++. ${srcdir}/emulparams/armelf_nbsd.sh
++
++# Use the ARM ABI-compliant exception-handling sections.
++OTHER_READONLY_SECTIONS="
++ .ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
++ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_start = .); }
++ .ARM.exidx ${RELOCATING-0} : { *(.ARM.exidx${RELOCATING+* .gnu.linkonce.armexidx.*}) }
++ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_end = .); }"
++
++case "$target" in
++ arm*-*-netbsdelf*-*eabihf*)
++ case "$EMULATION_NAME" in
++ *armelf*eabi)
++ LIB_PATH='=/usr/lib/eabi'
++ ;;
++ esac
++ ;;
++ arm*-*-netbsdelf*-*eabi*)
++ ;;
++ aarch64*-*-netbsd* | arm*-*-netbsdelf*)
++ case "$EMULATION_NAME" in
++ *armelf*eabi)
++ LIB_PATH='=/usr/lib/eabi'
++ ;;
++ esac
++ ;;
++esac
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_emulparams_armelf__nbsd__eabihf.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_emulparams_armelf__nbsd__eabihf.sh Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-ld_emulparams_armelf__nbsd__eabihf.sh,v 1.1 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/emulparams/armelf_nbsd_eabihf.sh.orig 2022-01-24 10:52:51.236067688 +0000
++++ ld/emulparams/armelf_nbsd_eabihf.sh
+@@ -0,0 +1,20 @@
++. ${srcdir}/emulparams/armelf_nbsd.sh
++
++# Use the ARM ABI-compliant exception-handling sections.
++OTHER_READONLY_SECTIONS="
++ .ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
++ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_start = .); }
++ .ARM.exidx ${RELOCATING-0} : { *(.ARM.exidx${RELOCATING+* .gnu.linkonce.armexidx.*}) }
++ ${RELOCATING+ PROVIDE_HIDDEN (__exidx_end = .); }"
++
++case "$target" in
++ arm*-*-netbsdelf*-*eabihf*)
++ ;;
++ aarch64*-*-netbsd* | arm*-*-netbsdelf*)
++ case "$EMULATION_NAME" in
++ *armelf*eabihf)
++ LIB_PATH='=/usr/lib/eabihf'
++ ;;
++ esac
++ ;;
++esac
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_emulparams_armelfb__nbsd__eabi.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_emulparams_armelfb__nbsd__eabi.sh Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,9 @@
+$NetBSD: patch-ld_emulparams_armelfb__nbsd__eabi.sh,v 1.1 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/emulparams/armelfb_nbsd_eabi.sh.orig 2022-01-24 10:55:29.085452037 +0000
++++ ld/emulparams/armelfb_nbsd_eabi.sh
+@@ -0,0 +1,2 @@
++. ${srcdir}/emulparams/armelf_nbsd_eabi.sh
++OUTPUT_FORMAT="elf32-bigarm"
diff -r a7cebbd9fb40 -r 128796f6d5cd devel/binutils/patches/patch-ld_emulparams_armelfb__nbsd__eabihf.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/binutils/patches/patch-ld_emulparams_armelfb__nbsd__eabihf.sh Mon Jan 24 15:10:46 2022 +0000
@@ -0,0 +1,9 @@
+$NetBSD: patch-ld_emulparams_armelfb__nbsd__eabihf.sh,v 1.1 2022/01/24 15:10:46 fcambus Exp $
+
+NetBSD/aarch64 support patches for ld from src.
+
+--- ld/emulparams/armelfb_nbsd_eabihf.sh.orig 2022-01-24 10:55:35.489852209 +0000
++++ ld/emulparams/armelfb_nbsd_eabihf.sh
+@@ -0,0 +1,2 @@
++. ${srcdir}/emulparams/armelf_nbsd_eabihf.sh
++OUTPUT_FORMAT="elf32-bigarm"
Home |
Main Index |
Thread Index |
Old Index