mips: section .note.gnu.build-id can't be allocated in segment
Project / Subsystem
binutils / mips
Date
2026-05-24
Proposer
Alan Modra <amodra@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • The patch modifies file offset tracking logic, which could potentially impact performance or introduce regressions in other scenarios.
All attributes
- project
- binutils
- subsystem
- mips
- patch_id
- —
- discussion_id
- ahLelwz89ecd39ec@squeak.grove.modra.org
- source_type
- public_inbox
- title
- mips: section .note.gnu.build-id can't be allocated in segment
- headline
- mips: section .note.gnu.build-id can't be allocated in segment
- tldr
- Fixes an objcopy error on MIPS when .note.gnu.build-id follows SHT_NOBITS sections due to file offset tracking.
- proposer
- Alan Modra <amodra@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • The patch modifies file offset tracking logic, which could potentially impact performance or introduce regressions in other scenarios.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • objcopy
- • MIPS
- • ELF
- • section allocation
- bugzilla_url
- —
- date
- 2026-05-24T00:00:00.000Z
mips: section .note.gnu.build-id can't be allocated in segment
This patch resolves an error encountered during objcopy on MIPS systems. The error occurred when the .note.gnu.build-id section, which has the type SHT_PROGBITS, immediately followed sections with the type SHT_NOBITS (e.g., .MIPS.abiflags and .reginfo). The underlying cause was a bug in file offset tracking within the assign_file_positions_for_load_sections function.