Skip to content

Pass the era's assembler version to rucc - #41

Merged
tamnd merged 1 commit into
mainfrom
as-persona
Oct 3, 2026
Merged

tamnd merged 1 commit into
mainfrom
as-persona

Conversation

@tamnd

@tamnd tamnd commented Oct 3, 2026

Copy link
Copy Markdown
Owner

The kernel finds the assembler version by running $(CC) -Wa,--version in scripts/as-version.sh. rucc answered with its own default of 2.46, so CONFIG_AS_VERSION in the rucc build did not match the gcc 14 build, which uses binutils 2.44. That was one of the unexplained lines in rk config-diff.

The persona now passes -fgnu-as-version= from the era next to -fgnuc-version=. The flags, probes and syntax checks skip it the same way they skip the gcc version, and the bring-up shim does not pass it on to the other compiler.

Part of #3.

The kernel reads the assembler version from `$(CC) -Wa,--version` in scripts/as-version.sh, so rucc printed its own gas default of 2.46 and CONFIG_AS_VERSION differed from the gcc build. The persona now carries -fgnu-as-version from the era, and the shim drops it before calling the other compiler, the same as -fgnuc-version.
@tamnd tamnd added the kind/feature New capability in the harness label Oct 3, 2026
@tamnd
tamnd merged commit 6880aec into main Oct 3, 2026
3 of 5 checks passed
@tamnd
tamnd deleted the as-persona branch October 3, 2026 12:00
@tamnd tamnd added area/rk The rk command line area/shim The rk-cc compiler shim labels Oct 3, 2026
@tamnd tamnd mentioned this pull request Oct 3, 2026
26 of 27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/rk The rk command line area/shim The rk-cc compiler shim kind/feature New capability in the harness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant