Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

161.12. binutils-riscv64-unknown-elf-2.47

The assembler, linker and object tools for riscv64-unknown-elf

2.47-1 · GPL-3.0-or-later · 2.1 SBU · 38.7 MiB, 98 files · 41_system, 470 of 1047 · ports/core/embedded/binutils-riscv64-unknown-elf

Homepage: https://www.gnu.org/software/binutils/

Why it is in KDOS. The comment above the 4 ports from binutils-riscv64-unknown-elf to libstdcxx-riscv64-unknown-elf in script/phases/41_system/packages.d/embedded.txt:

RV32 and RV64 — the MCUs and the soft cores the FPGA flow (yosys, nextpnr) synthesises.

Depends on: zlib, zstd, xxhash, pkgconf, texinfo, bison, flex.

Required by (3): gcc-riscv64-unknown-elf, libstdcxx-riscv64-unknown-elf, picolibc-riscv64-unknown-elf.

Sources: binutils-riscv64-unknown-elf-2.47.tar.xz (27.7 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install binutils-riscv64-unknown-elf'

build.sh:

mkdir -p build && cd build
../configure \
	--target=riscv64-unknown-elf \
	--prefix=/usr \
	--with-sysroot=/usr/riscv64-unknown-elf \
	--disable-nls \
	--disable-werror \
	--disable-gdb \
	--disable-sim \
	--enable-multilib \
	--with-system-zlib \
	--with-zstd \
	--with-xxhash \
	--without-debuginfod \
	--without-msgpack \
	--with-pkgversion="KDOS"
make
make DESTDIR=$PKG install
rm -rf "$PKG/usr/share/info" "$PKG/usr/lib/bfd-plugins"
rm -f "$PKG"/usr/share/man/man1/riscv64-unknown-elf-{dlltool,windmc,windres}.1

Programs: riscv64-unknown-elf-addr2line, riscv64-unknown-elf-ar, riscv64-unknown-elf-as, riscv64-unknown-elf-c++filt, riscv64-unknown-elf-elfedit, riscv64-unknown-elf-gprof, riscv64-unknown-elf-ld, riscv64-unknown-elf-ld.bfd, riscv64-unknown-elf-nm, riscv64-unknown-elf-objcopy, riscv64-unknown-elf-objdump, riscv64-unknown-elf-ranlib, riscv64-unknown-elf-readelf, riscv64-unknown-elf-size, riscv64-unknown-elf-strings, riscv64-unknown-elf-strip.

Directories: /usr/riscv64-unknown-elf/bin, /usr/riscv64-unknown-elf/lib/ldscripts, /usr/share/licenses/binutils-riscv64-unknown-elf.