Fix endianness issues in macho module (#2041)

This is backward compatible change that affects the `magic` field. After this change the value in the `magic` field looks exactly as it looks in the file regardless of the endianness of the current platform, if the file starts with `CA FE BA BE` the value in magic is `0xCAFEBABE`, not `0xBEBAFECA` as it used to be in little-endian architectures.
This commit is contained in:
Victor M. Alvarez
2024-02-12 15:23:09 +01:00
committed by GitHub
parent f3b3027154
commit 4369ca6a1b
3 changed files with 69 additions and 51 deletions
+2 -1
View File
@@ -145,5 +145,6 @@ jobs:
./bootstrap.sh &&
./configure --disable-proc-scan --enable-macho &&
make &&
make check
make check &&
cat test-suite.log
"