# 使用 Homebrew, MacPorts 安装 m68k-elf-binutils

查看 m68k-elf-binutils 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:m68k-elf-binutils
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install m68k-elf-binutils
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install m68k-elf-binutils
```

  证据: MacPorts ports tree: cross/m68k-elf-binutils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:m68k-elf-binutils
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/m68k-elf-binutils>
- **版本:** 2.47
- **来源摘要:** GNU Binutils for m68k-elf cross development
- **主页:** <https://www.gnu.org/software/binutils/>
- **上游文档:** <https://www.gnu.org/software/binutils/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://ftpmirror.gnu.org/gnu/binutils/binutils-2.47.tar.bz2>
- **最后更新:** 2026-07-29T14:10:12Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- m68k-elf-addr2line (cli)
- m68k-elf-ar (cli)
- m68k-elf-as (cli)
- m68k-elf-c++filt (cli)
- m68k-elf-elfedit (cli)
- m68k-elf-gprof (cli)
- m68k-elf-ld (cli)
- m68k-elf-ld.bfd (cli)
- m68k-elf-nm (cli)
- m68k-elf-objcopy (cli)
- m68k-elf-objdump (cli)
- m68k-elf-ranlib (cli)
- m68k-elf-readelf (cli)
- m68k-elf-size (cli)
- m68k-elf-strings (cli)
- m68k-elf-strip (cli)
- m68k-elf-addr2line (别名)
- m68k-elf-ar (别名)
- m68k-elf-as (别名)
- m68k-elf-c++filt (别名)
- m68k-elf-elfedit (别名)
- m68k-elf-gprof (别名)
- m68k-elf-ld (别名)
- m68k-elf-ld.bfd (别名)
- m68k-elf-nm (别名)
- m68k-elf-objcopy (别名)
- m68k-elf-objdump (别名)
- m68k-elf-ranlib (别名)
- m68k-elf-readelf (别名)
- m68k-elf-size (别名)
- m68k-elf-strings (别名)
- m68k-elf-strip (别名)

## 依赖

- zstd

## 构建依赖

- pkgconf
- texinfo

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.47
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://www.gnu.org/software/binutils/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

m68k-elf-binutils is a target-prefixed Homebrew build of GNU Binutils for bare-metal Motorola 68000-family ELF development.

### 项目历史

GNU Binutils is the GNU project's collection of binary tools. Its central programs are the GNU linker `ld`, the GNU assembler `as`, and the ELF-only `gold` linker, with supporting tools such as `ar`, `nm`, `objcopy`, `objdump`, `readelf`, `size`, `strings`, and `strip`.

The m68k-elf package is not a separate upstream project; it is a cross-toolchain packaging of the same GNU Binutils source for the `m68k-elf` target triplet. The target prefix keeps its assembler, linker, and object tools separate from host-native tools.

GNU Binutils uses the BFD library for low-level binary-file manipulation and the opcodes library for assembly and disassembly. The upstream assembler documentation includes M680x0-dependent features, options, syntax, directives, and opcodes.

### 采用历史

Binutils is foundational infrastructure for GNU and GNU/Linux systems because it provides the assembler and linker needed to compile and link programs. Cross builds extend that same infrastructure to embedded, hobbyist, retrocomputing, and operating-system-development targets.

The supplied package facts list Homebrew and MacPorts packaging for `m68k-elf-binutils`, reflecting its niche use by developers building 68k ELF firmware, kernels, and bare-metal experiments on macOS.

### 使用方式

Users typically pair `m68k-elf-binutils` with `m68k-elf-gcc`. The package installs prefixed tools such as `m68k-elf-as`, `m68k-elf-ld`, `m68k-elf-objcopy`, `m68k-elf-objdump`, and `m68k-elf-readelf` so build systems can target m68k ELF without colliding with host tools.

Common workflows include assembling startup files, linking linker-script-controlled firmware images, inspecting ELF sections and symbols, converting ELF output to raw binaries, and diagnosing relocation or ABI issues.

### 为什么软件包爱好者会关心

Cross-binutils packages are the first layer of a bare-metal toolchain: without the target assembler, linker, and object utilities, the compiler driver cannot produce useful firmware or kernel images.

For package maintainers, the `m68k-elf-` prefix is the whole trick: it allows multiple target toolchains to coexist while preserving conventional GNU tool names under a target triplet.

### 时间线

- 1990s: GNU Binutils became a core GNU toolchain component for assembling, linking, and inspecting binaries
- 2026: GNU Binutils 2.46 documentation published
- 2026: GNU Binutils 2.46.1 listed as the latest release on the official project page
- 2026: Homebrew package facts list target-prefixed m68k-elf executables

### Related projects

- m68k-elf-gcc is the matching target-prefixed compiler package.
- GDB shares the upstream binutils-gdb source repository, though this Homebrew package installs the Binutils tools rather than GDB.
- The GNU assembler documentation has M680x0-specific sections for the architecture family targeted by this package.

### 来源

- <https://sourceware.org/binutils/docs/>
- <https://sourceware.org/binutils/docs/as/index.html>
- <https://sourceware.org/binutils/docs/binutils/index.html>
- <https://www.gnu.org/software/binutils/>
- source_facts.executables
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** m68k-elf-binutils
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- MacPorts - m68k-elf-binutils: normalized package name match | MacPorts ports tree: cross/m68k-elf-binutils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [texinfo](https://pkg.so/zh-hans/brew/texinfo/) - Build dependency declared by Homebrew.
- [m68k-elf-gcc](https://pkg.so/zh-hans/brew/m68k-elf-gcc/) - Popular package that depends on this formula.
- [arm-none-eabi-binutils](https://pkg.so/zh-hans/brew/arm-none-eabi-binutils/) - Shares the same upstream homepage.
- [aarch64-elf-binutils](https://pkg.so/zh-hans/brew/aarch64-elf-binutils/) - Shares the same upstream homepage.
- [x86_64-elf-binutils](https://pkg.so/zh-hans/brew/x86-64-elf-binutils/) - Shares the same upstream homepage.
- [riscv64-elf-binutils](https://pkg.so/zh-hans/brew/riscv64-elf-binutils/) - Shares the same upstream homepage.
- [i686-elf-binutils](https://pkg.so/zh-hans/brew/i686-elf-binutils/) - Shares the same upstream homepage.
- [arm-linux-gnueabihf-binutils](https://pkg.so/zh-hans/brew/arm-linux-gnueabihf-binutils/) - Shares pkgdb curated category or tags: assembler, binutils, cli, cross-compilation, developer-tools.
- [mipsel-linux-gnu-binutils](https://pkg.so/zh-hans/brew/mipsel-linux-gnu-binutils/) - Shares pkgdb curated category or tags: assembler, binutils, cli, cross-compilation, developer-tools.
- [mips-linux-gnu-binutils](https://pkg.so/zh-hans/brew/mips-linux-gnu-binutils/) - Shares pkgdb curated category or tags: assembler, binutils, cli, cross-compilation, developer-tools.
- [elfutils](https://pkg.so/zh-hans/brew/elfutils/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, elf.
- [dwarfutils](https://pkg.so/zh-hans/brew/dwarfutils/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, elf.

## Combined YAML source

View the package source record on GitHub. [combined/m68k-elf-binutils.yml](https://github.com/mxcl/pkgdb/blob/main/combined/m68k-elf-binutils.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
