Page MenuHomeFreeBSD

rtld-elf: Add CFI annotation for .rtld_start on RISC-V
ClosedPublic

Authored by arichardson on Aug 21 2024, 10:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 20, 1:18 PM
Unknown Object (File)
Mon, Mar 16, 3:02 PM
Unknown Object (File)
Mon, Mar 16, 1:58 AM
Unknown Object (File)
Sun, Mar 15, 7:08 AM
Unknown Object (File)
Sun, Mar 15, 12:58 AM
Unknown Object (File)
Sat, Mar 14, 11:06 PM
Unknown Object (File)
Tue, Feb 24, 11:51 AM
Unknown Object (File)
Sun, Feb 22, 9:59 PM
Subscribers

Details

Summary

Without this change, unwinders such as LLVM libunwind will attempt to
unwind beyond the start of RTLD and get stuck in an infinite loop or
crash (depending on the current values on the stack).
This fixes an infinite loop in the LLVM libunwind test suite on RISC-V.

See also https://reviews.freebsd.org/D40844 for AArch64

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable