Skip to content

Read 6.1 alternatives and leave objtool site lists to objtool-report - #46

Merged
tamnd merged 1 commit into
mainfrom
sections-61-alternatives
Oct 4, 2026
Merged

tamnd merged 1 commit into
mainfrom
sections-61-alternatives

Conversation

@tamnd

@tamnd tamnd commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Two fixes for rk sections-diff on 6.1.

Linux 6.3 dropped the padding from struct alt_instr, so an .altinstructions entry is 12 bytes on 6.1 and 14 from 6.3 on. The entry size is now worked out from the section size and its reloc count (two relocs per entry) rather than assumed to be 14, so 6.1 entries are compared by feature like the newer ones.

The site lists objtool writes (.orc_unwind_ip, .return_sites, .retpoline_sites, .static_call_sites) are no longer counted. Before IBT, as in 6.1 defconfig, objtool runs on every object and writes them into each one. From then on it writes them only into vmlinux.o. Either way they follow from the code objtool reads, and rk objtool-report is the check for them. Only __mcount_loc and __patchable_function_entries, which the compiler writes, are still compared per function. Plan doc 09 says the same.

Part of #3.

@tamnd tamnd added kind/bug Something in the harness is wrong area/rk The rk command line labels Oct 4, 2026
@tamnd
tamnd merged commit 9945ed7 into main Oct 4, 2026
3 of 5 checks passed
@tamnd
tamnd deleted the sections-61-alternatives branch October 4, 2026 09:27
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 kind/bug Something in the harness is wrong

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant