Skip to content

Commit 36d8e77

Browse files
committed
Correct hexagon "unwinder_private_data_size"
Discovered while porting libstd to hexagon-unknown-qurt: the unwinder data size refers to the count of pointers in _Unwind_Exception but when I put the value "35" intiially for hexagon linux, I incorrectly considered the size of the exception context hexagon_thread_state_t data structure. Correct the value for hexagon linux and expand it to cover all hexagon architecture instead.
1 parent 7fefa09 commit 36d8e77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/unwind/src/libunwind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ pub const unwinder_private_data_size: usize = 20;
7878
#[cfg(all(target_arch = "wasm32", target_os = "linux"))]
7979
pub const unwinder_private_data_size: usize = 2;
8080

81-
#[cfg(all(target_arch = "hexagon", target_os = "linux"))]
82-
pub const unwinder_private_data_size: usize = 35;
81+
#[cfg(target_arch = "hexagon")]
82+
pub const unwinder_private_data_size: usize = 5;
8383

8484
#[cfg(any(target_arch = "loongarch32", target_arch = "loongarch64"))]
8585
pub const unwinder_private_data_size: usize = 2;

0 commit comments

Comments
 (0)