Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld64.lld doesn't seem to support arm64e #79543

Open
glandium opened this issue Jan 26, 2024 · 2 comments
Open

ld64.lld doesn't seem to support arm64e #79543

glandium opened this issue Jan 26, 2024 · 2 comments

Comments

@glandium
Copy link
Contributor

$ echo "int main() { return 0; }" > foo.c
$ clang --target=arm64e-apple-darwin -o foo foo.c -isysroot /path/to/MacOSX14.2.sdk -fuse-ld=lld
$ file foo
foo: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>

When using plain ld64:

$ clang --target=arm64e-apple-darwin -o foo foo.c -isysroot /path/to/MacOSX14.2.sdk
$ file foo
foo: Mach-O 64-bit arm64e 00) executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
@llvmbot
Copy link
Member

llvmbot commented Jan 26, 2024

@llvm/issue-subscribers-lld-macho

Author: Mike Hommey (glandium)

``` $ echo "int main() { return 0; }" > foo.c $ clang --target=arm64e-apple-darwin -o foo foo.c -isysroot /path/to/MacOSX14.2.sdk -fuse-ld=lld $ file foo foo: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE> ``` When using plain ld64: ``` $ clang --target=arm64e-apple-darwin -o foo foo.c -isysroot /path/to/MacOSX14.2.sdk $ file foo foo: Mach-O 64-bit arm64e 00) executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE> ```

@glandium
Copy link
Contributor Author

For the record, isArchABICompatible, compatWithTargetArch and createTargetInfo all ignore the cpuSubtype from the target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants