Page MenuHomeFreeBSD

Replace GNU assembler with llvm-as(1)
ClosedPublic

Authored by minsoochoo0122_proton.me on Nov 24 2023, 2:39 AM.
Tags
Referenced Files
Unknown Object (File)
Dec 3 2025, 4:25 AM
Unknown Object (File)
Nov 20 2025, 2:42 AM
Unknown Object (File)
Nov 14 2025, 6:40 AM
Unknown Object (File)
Nov 13 2025, 6:16 AM
Unknown Object (File)
Nov 4 2025, 9:55 PM
Unknown Object (File)
Nov 4 2025, 12:50 AM
Unknown Object (File)
Nov 4 2025, 12:47 AM
Unknown Object (File)
Nov 4 2025, 12:47 AM
Subscribers

Details

Summary

Bugzilla
FreeBSD does not use GNU assembler in its base system. llvm-as(1) can be installed from ports or pkg.

Test Plan

make run

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 54602
Build 51491: arc lint + arc unit

Event Timeline

minsoochoo0122_proton.me edited the test plan for this revision. (Show Details)
minsoochoo0122_proton.me added a reviewer: docs.
minsoochoo0122_proton.me added a project: docs.
minsoochoo0122_proton.me added a subscriber: docs.

FreeBSD does not use GNU assembler in its base system. llvm-as(1) is now in the base system

llvm-as is in ports. It is not in base system.

zlei@:~ % freebsd-version -ku
14.0-RELEASE
14.0-RELEASE
zlei@:~ % which llvm-as
llvm-as: Command not found.

FYI, I have a larger set of changes for this chapter that is in progress locally. But thank you for handling this PR.

In D42744#975102, @zlei wrote:

FreeBSD does not use GNU assembler in its base system. llvm-as(1) is now in the base system

llvm-as is in ports. It is not in base system.

zlei@:~ % freebsd-version -ku
14.0-RELEASE
14.0-RELEASE
zlei@:~ % which llvm-as
llvm-as: Command not found.

Indeed. The assembler front-end shipped with the base system is clang(1). But it would be better to link to the devel/binutils package which provides GNU as(1).

I will make the whitespace tweaks before pushing.

documentation/content/en/books/developers-handbook/x86/_index.adoc
85
87
This revision is now accepted and ready to land.Nov 27 2023, 2:59 PM
This revision was automatically updated to reflect the committed changes.