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
hexagon: decouple time64 types from musl symbol redirects
The `musl32_time64` cfg previously conflated two distinct concepts:
1. Type definitions: `time_t` is `i64`, `suseconds_t` is `i64`,
`timespec` has padding — applies to all 32-bit musl v1.2.3+ targets
including hexagon.
2. Symbol redirects: `clock_gettime` → `__clock_gettime64` etc.,
corresponding to musl's `_REDIR_TIME64` — applies only to arm,
mips, powerpc, and x86.
Hexagon was added to musl after the time64 transition and never had a
32-bit `time_t`, so its libc exports `clock_gettime` directly with no
`__*_time64` symbols. Applying the link-name redirects caused undefined
symbol errors at link time (rust-lang/rust#154686).
Introduce a new `musl_redir_time64` cfg for the symbol redirects and
restrict it to arches that define `_REDIR_TIME64`. Keep `musl32_time64`
for the type/struct meaning, now set generically for all 32-bit musl
v1.2.3+ targets (removing explicit `target_arch = "hexagon"` conditions).
0 commit comments