[PATCH] arm: Fix encoding of SG stubs in BE8 mode
Project / Subsystem
binutils / arm
Date
2026-09-14
Proposer
Christophe Lyon <christophe.lyon@arm.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Ensuring correct instruction encoding for security features (CMSE) across different endianness modes.
- • Integrating security-specific stub handling into the general linker stub processing pipeline.
All attributes
- project
- binutils
- subsystem
- arm
- patch_id
- —
- discussion_id
- 20260914121403.499252-1-christophe.lyon@arm.com
- source_type
- public_inbox
- title
- [PATCH] arm: Fix encoding of SG stubs in BE8 mode
- headline
- Fix ARM BE8 encoding for SG stubs
- tldr
- Fixes incorrect byte encoding for ARM Secure Gateway stubs in BE8 mode.
- proposer
- Christophe Lyon <christophe.lyon@arm.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Ensuring correct instruction encoding for security features (CMSE) across different endianness modes.
- • Integrating security-specific stub handling into the general linker stub processing pipeline.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • arm
- • linker
- • encoding
- • be8
- bugzilla_url
- —
- date
- 2026-09-14T00:00:00.000Z
[PATCH] arm: Fix encoding of SG stubs in BE8 mode
This patch corrects the byte encoding for Secure Gateway (SG) stubs in ARM’s Big-Endian 8-bit (BE8) mode within the binutils linker. The issue arises because these veneers are not correctly identified as part of the stub group, preventing the linker from applying the proper BE8 encoding. The fix ensures correct handling for cmse_stub_sec and includes a new test case to verify the raw instruction encoding.