Make Linux uname(2) return x86_64 to 32-bit apps.
This fixes PR 240432.
Details
Details
- Reviewers
emaste - Group Reviewers
Linux Emulation - Commits
- rS362205: Make Linux uname(2) return x86_64 to 32-bit apps. This helps Steam.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
lazytwitter turned up https://unix.stackexchange.com/questions/136407/is-my-linux-arm-32-or-64-bit for me,
On a 64-bit processor, you'd see a string starting with armv8 (or above) if the uname process itself is a 32-bit process, or aarch64 if it's a 64-bit process.
Comment Actions
https://twitter.com/agentdero/status/1271570495041761281
looks like it's actually aarch64 for 32-bit uname on 64-bit kernel
Comment Actions
We also need to know what's being returned by getauxval. You can use https://people.freebsd.org/~trasz/u.c to check it.
Comment Actions
https://twitter.com/duncaen/status/1271714593816162304
After setarch linux32 the architecture says armv8l