Page MenuHomeFreeBSD

arm64: 32-bit compat is little endian, read the correct word
AbandonedPublic

Authored by jmg on Aug 29 2025, 5:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 6, 3:03 PM
Unknown Object (File)
Sat, Mar 28, 8:07 PM
Unknown Object (File)
Sat, Mar 28, 1:58 PM
Unknown Object (File)
Fri, Mar 27, 5:48 PM
Unknown Object (File)
Thu, Mar 26, 3:54 PM
Unknown Object (File)
Wed, Mar 25, 1:56 AM
Unknown Object (File)
Mon, Mar 23, 5:15 AM
Unknown Object (File)
Sat, Mar 21, 3:42 PM
Subscribers

Details

Reviewers
andrew
manu
Summary

Obtained from: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66643
Build 63526: arc lint + arc unit

Event Timeline

jmg requested review of this revision.Aug 29 2025, 5:24 PM

The attached program can be used to test/verify the problem/fix. Compile w/ -m32.

I did try to see if I could run a big endian 32-bit binary, but I couldn't figure out how to compile one, plus, we don't ship big endian libraries anyway, so definitely the old code is wrong.

review didn't get approved before someone else's review got approved and fixed it.