Skip to content

[dsymutil] Report error when section offsets exceed DWARF32 limit (#1…#12842

Open
JDevlieghere wants to merge 2 commits intostable/21.xfrom
cherrypick-ca934b8
Open

[dsymutil] Report error when section offsets exceed DWARF32 limit (#1…#12842
JDevlieghere wants to merge 2 commits intostable/21.xfrom
cherrypick-ca934b8

Conversation

@JDevlieghere
Copy link
Copy Markdown

…93867)

When linking very large binaries, debug section offsets can exceed the 4 GB DWARF32 limit. Previously this caused an assertion in MCStreamer::emitIntValue when trying to emit an overflowing DW_FORM_sec_offset value.

Detect the overflow at the point where section offsets are patched in DWARFStreamer (for .debug_ranges, .debug_rnglists, .debug_loc, .debug_loclists) and in DWARFLinker (for .debug_line and .debug_addr).

rdar://107413300
(cherry picked from commit ca934b8)

…vm#193867)

When linking very large binaries, debug section offsets can exceed the 4
GB DWARF32 limit. Previously this caused an assertion in
MCStreamer::emitIntValue when trying to emit an overflowing
DW_FORM_sec_offset value.

Detect the overflow at the point where section offsets are patched in
DWARFStreamer (for .debug_ranges, .debug_rnglists, .debug_loc,
.debug_loclists) and in DWARFLinker (for .debug_line and .debug_addr).

rdar://107413300
(cherry picked from commit ca934b8)
@JDevlieghere JDevlieghere requested a review from a team as a code owner April 24, 2026 22:55
@JDevlieghere
Copy link
Copy Markdown
Author

@swift-ci test

@JDevlieghere
Copy link
Copy Markdown
Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant