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)
Sun, Nov 17, 4:40 AM
Unknown Object (File)
Sun, Nov 17, 2:03 AM
Unknown Object (File)
Sun, Nov 10, 1:13 PM
Unknown Object (File)
Tue, Nov 5, 11:37 AM
Unknown Object (File)
Tue, Nov 5, 11:37 AM
Unknown Object (File)
Tue, Nov 5, 11:37 AM
Unknown Object (File)
Sun, Nov 3, 8:47 AM
Unknown Object (File)
Tue, Oct 29, 3:28 AM
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