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

Linking two modules of different data layouts for android aarch64 lto #4806

Open
calvin2021y opened this issue Dec 21, 2024 · 2 comments
Open

Comments

@calvin2021y
Copy link

calvin2021y commented Dec 21, 2024

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?

@calvin2021y calvin2021y changed the title Linking two modules of different data layouts for android arm64 lto Linking two modules of different data layouts for android aarch64 lto Dec 21, 2024
@kinke
Copy link
Member

kinke commented Dec 23, 2024

Fn32 seems stand for float32 hard data layouts, generate from ldc2, is there a way to change it?

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 -help-hidden), or playing with -mcpu/-mattr can be used to manipulate this one.

@calvin2021y
Copy link
Author

Thanks for tips.

I am build with ldc -mtriple=aarch64-unknown-linux-android, will try -mcpu/-mattr options.

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

No branches or pull requests

2 participants