-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Linking two modules of different data layouts for android aarch64 lto #4806
Comments
It stands for function-pointer alignments: https://llvm.org/docs/LangRef.html#data-layout The data layout string comes from LLVM; not sure if an advanced LLVM cmdline option (see |
Thanks for tips. I am build with ldc |
hi @kinke The clang use ldmd2/ldc2 can not support this: Maybe this arguments cause the problem? |
For LDC, I think this should be |
This doesn't remove the So I guess these 2 attributes don't account for the difference. Which pre-release NDK 28 are you using? RC2 seems to have been released last week; maybe that is/was just a bug in earlier versions. |
Ah - no It might be worth trying to use an lld 19 linker (not the 'old' NDK one) and see if that still complains about incompatible data layouts. |
Thanks for the explain. I can confirm the
|
ndk28 is 'e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128' , ldc v1.40.0 is 'e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32'
try ldc2
--float-abi=soft
,--float-abi=hard
,--float-abi=softfp
, still same problem.Fn32
seems stand for float32 hard data layouts, generate from ldc2, is there a way to change it?The text was updated successfully, but these errors were encountered: