[PATCH v4 11/12] RISC-V/bfd: warn about non-boolean unaligned-access attribute
Project / Subsystem
binutils / risc-v/bfd
Date
2026-07-24
Proposer
Jan Beulich <jbeulich@suse.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Normalizes eclectic input values to a boolean interpretation, simplifying attribute handling.
- • Warns users about potentially incorrect attribute usage without outright rejecting the object file.
All attributes
- project
- binutils
- subsystem
- risc-v/bfd
- patch_id
- —
- discussion_id
- 822a807f-ed59-4307-a108-3372f6a4c912@suse.com
- source_type
- public_inbox
- title
- [PATCH v4 11/12] RISC-V/bfd: warn about non-boolean unaligned-access attribute
- headline
- RISC-V/bfd: warn about non-boolean unaligned-access attribute
- tldr
- Warn about and normalize non-boolean values for the RISC-V unaligned-access attribute.
- proposer
- Jan Beulich <jbeulich@suse.com>
- consensus
- Proposed
- outcome
- ready
- sentiment_score
- —
- technical_tradeoffs
-
- • Normalizes eclectic input values to a boolean interpretation, simplifying attribute handling.
- • Warns users about potentially incorrect attribute usage without outright rejecting the object file.
- series_id
- binutils:risc-v/bfd: warn about non-boolean unaligned-access attribute
- series_role
- reply
- series_parts
- []
- tags
-
- • binutils
- • risc-v
- • bfd
- • elf
- • attribute
- bugzilla_url
- —
- date
- 2026-07-24T00:00:00.000Z
[PATCH v4 11/12] RISC-V/bfd: warn about non-boolean unaligned-access attribute
This patch enhances the RISC-V BFD implementation to warn when the unaligned_access attribute is set to a value other than 0 or 1. Non-zero values are converted to 1, normalizing the attribute’s interpretation. This ensures that the boolean nature of the attribute is respected and potential misconfigurations are flagged.