tpoechtrager / cctools-port

Apple cctools port for Linux and *BSD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arm64e display not support.

okanon opened this issue · comments

It seems that support for arm64e has been substantially completed, but it is not supported on the display by the file command.

arm-apple-darwin11-clang -arch arm64e -o hello hello.c
file hello
hello: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
# iPhone7 Plus iOS11.2 jailbroken (arm64)
sudo ldid -Sent.xml hello && sudo mv hello /usr/bin/
hello
Bad CPU type in executable

What is this issue about? I don't know what "display not support" might mean.

Sorry, the correction of the answer was delayed.
Is it normal for arm64e-compatible binaries to be written as arm64?

I don't think iOS11.2 supports arm64e.

I know that, does arm64e binaries still show arm64?

The file command does not support arm64e.

otool -L a.out 
a.out (architecture armv6):
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
a.out (architecture armv7):
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
a.out (architecture armv7s):
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
a.out (architecture arm64):
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
a.out (architecture arm64e):
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)

Mystery was solved. Thank you :)