[all-commits] [llvm/llvm-project] 0b8bb8: [MC] Fix crash in x=0; .section x (#183001)
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Feb 23 22:50:14 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0b8bb80e27c6051794873a16a0eaf63501a6a1c7
https://github.com/llvm/llvm-project/commit/0b8bb80e27c6051794873a16a0eaf63501a6a1c7
Author: Fangrui Song <i at maskray.me>
Date: 2026-02-24 (Tue, 24 Feb 2026)
Changed paths:
M llvm/lib/MC/MCContext.cpp
M llvm/test/MC/ELF/section-sym-err.s
Log Message:
-----------
[MC] Fix crash in x=0; .section x (#183001)
When an equated symbol (e.g. `x=0`) is followed by `.section x`,
getOrCreateSectionSymbol reports an "invalid symbol redefinition"
error but continues to reuse the equated symbol as a section symbol.
This causes an assertion failure in MCObjectStreamer::changeSection
when `setFragment` is called on the equated symbol.
Fix this by clearning `Sym`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list