[PATCH v3 0/4] microblaze: fix and clean up md_apply_fix and md_assemble
Project / Subsystem
binutils / microblaze
Date
2026-09-24
Proposer
Sam Price <thesamprice@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Consolidates instruction encoding logic by using `md_number_to_chars` across `md_apply_fix` and `md_assemble`.
- • Fixes test suite issues related to MicroBlaze endianness.
- • Improves code maintainability and reduces potential for errors in manual byte manipulation.
All attributes
- project
- binutils
- subsystem
- microblaze
- patch_id
- —
- discussion_id
- 20260924014435.30185-1-thesamprice@gmail.com
- source_type
- public_inbox
- title
- [PATCH v3 0/4] microblaze: fix and clean up md_apply_fix and md_assemble
- headline
- microblaze: fix and clean up md_apply_fix and md_assemble
- tldr
- A series of patches cleaning up and fixing MicroBlaze assembly code related to relocations and instruction encoding.
- proposer
- Sam Price <thesamprice@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Consolidates instruction encoding logic by using `md_number_to_chars` across `md_apply_fix` and `md_assemble`.
- • Fixes test suite issues related to MicroBlaze endianness.
- • Improves code maintainability and reduces potential for errors in manual byte manipulation.
- series_id
- binutils:microblaze: fix and clean up md_apply_fix and md_assemble
- series_role
- cover
- series_parts
- []
- tags
-
- • microblaze
- • gas
- • refactoring
- • relocation
- • testsuite
- bugzilla_url
- —
- date
- 2026-09-24T00:00:00.000Z
[PATCH v3 0/4] microblaze: fix and clean up md_apply_fix and md_assemble
This is the cover letter for a four-patch series aimed at fixing and cleaning up the MicroBlaze backend’s handling of relocations and instruction assembly. Patch 1/4 adds support for 8-bit and 16-bit relocations in md_apply_fix using md_number_to_chars. Patch 2/4 extends this refactoring to the remaining parts of md_apply_fix. Patch 4/4 cleans up md_assemble by replacing manual byte assignments with md_number_to_chars and removing unused macros. Patch 3/4, a testsuite-only change, corrects MicroBlaze test exclusions in gas.exp to work for both endiannesses. The series results in code simplification and resolves test failures, with no functional changes and identical test suite results before and after.