FRIDAY, NOVEMBER 27, 2026
bfd — Proposed
bfd: xcofflink: validate line-number offsets accepted
Patch to validate line-number offsets in xcofflink is approved.
Alan Modra has approved version 2 of the patch that validates line-number offsets within xcofflink. The patch addresses feedback from a previous review, including using the correct data type for offsets and incorporating alignment checks.
In the Thread
- reviewer
Approves the patch after addressing review comments.
“Yes, OK.”
- proposer
Submitted v2 of the patch, incorporating review feedback.
“Gentle ping on v2. It makes the changes from your review of v1: linoff is a bfd_size_type in both places, the checks use your forms, pass 2 also checks alignment, and the bfd_zmalloc change is gone. It still applies cleanly to master (a2f37c50c7). Is it OK now?”
In Details
This patch addresses a validation issue in the BFD library's xcofflink utility, specifically concerning line-number offsets. The revision incorporates feedback on data types and alignment checks, suggesting a refinement of the linker's internal data handling for XCOFF object files.
For Context
- BFD
- The Binary File Descriptor library, a low-level library used by GNU Binutils to parse and manipulate object file formats.
- xcofflink
- A component within BFD that handles linking for XCOFF (eXecutable and Common Object File Format) object files, often used on IBM platforms.
- line-number offsets
- Data within object files that maps machine code addresses to source code line numbers, used for debugging.