CHERIoT-Platform / llvm-project

Fork of LLVM adding CHERIoT, based on the CHERI LLVM fork
4 stars 6 forks source link

Add missing InputSectionBase::relaxAux initialization. #35

Closed sleffler closed 4 months ago

sleffler commented 4 months ago

Under complicated conditions Arch/RISCV.cpp:initSymbolAnchors() can encounter an InputSection with an uninitialized relaxAux pointer. Safeguard against this by always initializing relaxAux.

sleffler commented 4 months ago

The upstream Cheri repo looks to handle this by union'ing relaxAux w/ another pointer that it sets to null. Didn't see anything similar in llvm upstream.