You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found building the suite hardened (#305) with Homebrew GCC 15.2.0_1 on macOS 14.6.1 (Apple silicon): every test that throws and catches an exception aborts (20 of 1514 tests). Clang 22 (Homebrew LLVM) with the same flag is fine, and so is GCC 16 on Linux aarch64.
So return-address signing (pac-ret) breaks unwinding through GCC-compiled frames on Darwin; presumably the system unwinder doesn't handle GCC's signed return addresses there. No existing GCC Bugzilla report found yet (searched for darwin + mbranch-protection/pac-ret + exceptions); a related Clang issue for arm64e + pac-ret is llvm/llvm-project#60239 (different cause).
In the suite:CPPDOCS_HARDEN skips -mbranch-protection for GCC on Apple targets, citing this issue; known-bugs.json records it.
Upstream: drafted here; to be filed with GCC (Bugzilla, target aarch64-apple-darwin) only with the owner's yes.
Activity