enable musl32_time64 and musl_v1_2_3 for hexagon by androm3da · Pull Request #4992 · rust-lang/libc (original) (raw)

@androm3da

Hexagon musl uses 64-bit time_t (__USE_TIME_BITS64), so add it to MUSL_REDIR_TIME64_ARCHES and force musl_v1_2_3 since hexagon only exists with recent musl. Without this, time_t is c_long (4 bytes) causing a 24-byte stack buffer overflow on fstat() calls.

JohnTitor

JohnTitor pushed a commit to JohnTitor/libc that referenced this pull request

Mar 8, 2026

@androm3da @JohnTitor

Hexagon musl uses 64-bit time_t (__USE_TIME_BITS64), so add it to MUSL_REDIR_TIME64_ARCHES and force musl_v1_2_3 since hexagon only exists with recent musl. Without this, time_t is c_long (4 bytes) causing a 24-byte stack buffer overflow on fstat() calls.

(backport <rust-lang#4992>) (cherry picked from commit 0a15ee8)

github-merge-queue Bot pushed a commit that referenced this pull request

Mar 8, 2026

@androm3da @JohnTitor

Hexagon musl uses 64-bit time_t (__USE_TIME_BITS64), so add it to MUSL_REDIR_TIME64_ARCHES and force musl_v1_2_3 since hexagon only exists with recent musl. Without this, time_t is c_long (4 bytes) causing a 24-byte stack buffer overflow on fstat() calls.

(backport <#4992>) (cherry picked from commit 0a15ee8)

@JohnTitor JohnTitor added stable-applied

This PR has been cherry-picked to libc's stable release branch

and removed stable-nominated

This PR should be considered for cherry-pick to libc's stable release branch

labels

Mar 8, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})