pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/cross/riscv64-none-elf-binutils



Module Name:    pkgsrc
Committed By:   skrll
Date:           Tue May 21 07:08:03 UTC 2024

Modified Files:
        pkgsrc/cross/riscv64-none-elf-binutils: Makefile PLIST distinfo
Added Files:
        pkgsrc/cross/riscv64-none-elf-binutils/patches:
            patch-ld_emulparams_elf32lriscv-defs.sh

Log Message:
riscv64-non-elf-binutils: Enable shared library support for the embedded elf target.

All other embedded elf targets have shared library support and it works.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/cross/riscv64-none-elf-binutils/Makefile \
    pkgsrc/cross/riscv64-none-elf-binutils/PLIST \
    pkgsrc/cross/riscv64-none-elf-binutils/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/cross/riscv64-none-elf-binutils/patches/patch-ld_emulparams_elf32lriscv-defs.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/cross/riscv64-none-elf-binutils/Makefile
diff -u pkgsrc/cross/riscv64-none-elf-binutils/Makefile:1.1 pkgsrc/cross/riscv64-none-elf-binutils/Makefile:1.2
--- pkgsrc/cross/riscv64-none-elf-binutils/Makefile:1.1 Mon Mar 18 17:39:34 2024
+++ pkgsrc/cross/riscv64-none-elf-binutils/Makefile     Tue May 21 07:08:03 2024
@@ -1,14 +1,15 @@
-# $NetBSD: Makefile,v 1.1 2024/03/18 17:39:34 dogcow Exp $
+# $NetBSD: Makefile,v 1.2 2024/05/21 07:08:03 skrll Exp $
 
 DISTNAME=      binutils-2.42
 PKGNAME=       cross-riscv64-none-elf-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    cross
 MASTER_SITES=  ${MASTER_SITE_GNU:=binutils/}
 EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    port-riscv%NetBSD.org@localhost
 HOMEPAGE=      # empty
-COMMENT=       Cross binutils for bare metal 64-bit ELF
+COMMENT=       Cross binutils for bare metal RISC-V 64-bit ELF
 LICENSE=       gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
 
 USE_LANGUAGES+=                c99 c++
Index: pkgsrc/cross/riscv64-none-elf-binutils/PLIST
diff -u pkgsrc/cross/riscv64-none-elf-binutils/PLIST:1.1 pkgsrc/cross/riscv64-none-elf-binutils/PLIST:1.2
--- pkgsrc/cross/riscv64-none-elf-binutils/PLIST:1.1    Mon Mar 18 17:39:34 2024
+++ pkgsrc/cross/riscv64-none-elf-binutils/PLIST        Tue May 21 07:08:03 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2024/03/18 17:39:34 dogcow Exp $
+@comment $NetBSD: PLIST,v 1.2 2024/05/21 07:08:03 skrll Exp $
 cross-riscv64-none-elf/bin/riscv64-none-elf-addr2line
 cross-riscv64-none-elf/bin/riscv64-none-elf-ar
 cross-riscv64-none-elf/bin/riscv64-none-elf-as
@@ -56,9 +56,21 @@ cross-riscv64-none-elf/riscv64-none-elf/
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xbn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xc
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xd
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xdc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xdce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xde
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xdw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xdwe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xr
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xs
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xsc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xsce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xse
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xsw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xswe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xu
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xw
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32briscv.xwe
@@ -66,9 +78,21 @@ cross-riscv64-none-elf/riscv64-none-elf/
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xbn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xc
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xd
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xdc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xdce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xde
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xdw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xdwe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xr
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xs
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xsc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xsce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xse
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xsw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xswe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xu
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xw
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf32lriscv.xwe
@@ -76,9 +100,21 @@ cross-riscv64-none-elf/riscv64-none-elf/
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xbn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xc
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xd
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xdc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xdce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xde
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xdw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xdwe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xr
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xs
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xsc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xsce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xse
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xsw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xswe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xu
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xw
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64briscv.xwe
@@ -86,9 +122,21 @@ cross-riscv64-none-elf/riscv64-none-elf/
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xbn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xc
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xd
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xdc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xdce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xde
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xdw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xdwe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xn
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xr
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xs
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xsc
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xsce
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xse
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xsw
+cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xswe
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xu
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xw
 cross-riscv64-none-elf/riscv64-none-elf/lib/ldscripts/elf64lriscv.xwe
Index: pkgsrc/cross/riscv64-none-elf-binutils/distinfo
diff -u pkgsrc/cross/riscv64-none-elf-binutils/distinfo:1.1 pkgsrc/cross/riscv64-none-elf-binutils/distinfo:1.2
--- pkgsrc/cross/riscv64-none-elf-binutils/distinfo:1.1 Mon Mar 18 17:39:34 2024
+++ pkgsrc/cross/riscv64-none-elf-binutils/distinfo     Tue May 21 07:08:03 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2024/03/18 17:39:34 dogcow Exp $
+$NetBSD: distinfo,v 1.2 2024/05/21 07:08:03 skrll Exp $
 
 BLAKE2s (binutils-2.42.tar.bz2) = 0fa658692a24ec12a2769f4c4423d88e4b4a25a84a6dbf2fd5edb7147db4cec2
 SHA512 (binutils-2.42.tar.bz2) = d2c6d264bbeaaaf2aad1fa3fc417c1841a5dd4a299fa47c47d15adb821c22dae733e58f19ebcfea3b0c5890ba56e4a5f92ab55128a572d585bcd5172b63f456c
 Size (binutils-2.42.tar.bz2) = 38254526 bytes
+SHA1 (patch-ld_emulparams_elf32lriscv-defs.sh) = 90510e37518d4944c8fc50c458342eaf086f0323

Added files:

Index: pkgsrc/cross/riscv64-none-elf-binutils/patches/patch-ld_emulparams_elf32lriscv-defs.sh
diff -u /dev/null pkgsrc/cross/riscv64-none-elf-binutils/patches/patch-ld_emulparams_elf32lriscv-defs.sh:1.1
--- /dev/null   Tue May 21 07:08:03 2024
+++ pkgsrc/cross/riscv64-none-elf-binutils/patches/patch-ld_emulparams_elf32lriscv-defs.sh      Tue May 21 07:08:03 2024
@@ -0,0 +1,22 @@
+$NetBSD: patch-ld_emulparams_elf32lriscv-defs.sh,v 1.1 2024/05/21 07:08:03 skrll Exp $
+
+--- ld/emulparams/elf32lriscv-defs.sh.orig     2024-05-19 11:23:29.496953993 +0000
++++ ld/emulparams/elf32lriscv-defs.sh
+@@ -16,15 +16,8 @@ if test `echo "$host" | sed -e s/64//` =
+   esac
+ fi
+ 
+-# Enable shared library support for everything except an embedded elf target.
+-case "$target" in
+-  riscv*-elf)
+-    ;;
+-  *)
+-    GENERATE_SHLIB_SCRIPT=yes
+-    GENERATE_PIE_SCRIPT=yes
+-    ;;
+-esac
++GENERATE_SHLIB_SCRIPT=yes
++GENERATE_PIE_SCRIPT=yes
+ 
+ IREL_IN_PLT=
+ TEXT_START_ADDR=0x10000



Home | Main Index | Thread Index | Old Index