forked from xuhaoyang/ClashForAndroid
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Support 16 KB page sizes #666
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
Closed
Closed
+31
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c72daca to
6f13411
Compare
Author
|
我本地构建会失败,可能需要先去修一下 https://github.com/Kr328/golang-gradle-plugin 和这个项目的构建流程,然后再来看这个问题 |
|
升级下ndk版本好像就可以了吧 |
Author
|
已经是 27 以上了,需要针对 bridge 和 clash 分别添加编译参数 |
|
28不是默认16kb吗 |
https://developer.android.com/guide/practices/page-sizes Old: ``` === ELF alignment === /var/folders/temp/lib/armeabi-v7a/libbarhopper_v3.so: UNALIGNED (2**12) /var/folders/temp/lib/armeabi-v7a/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/armeabi-v7a/libclash.so: UNALIGNED (2**12) /var/folders/temp/lib/armeabi-v7a/libbridge.so: UNALIGNED (2**12) /var/folders/temp/lib/armeabi-v7a/libimage_processing_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86/libbarhopper_v3.so: UNALIGNED (2**12) /var/folders/temp/lib/x86/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86/libclash.so: UNALIGNED (2**12) /var/folders/temp/lib/x86/libbridge.so: UNALIGNED (2**12) /var/folders/temp/lib/x86/libimage_processing_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libbarhopper_v3.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libclash.so: UNALIGNED (2**12) /var/folders/temp/lib/arm64-v8a/libbridge.so: UNALIGNED (2**12) /var/folders/temp/lib/arm64-v8a/libimage_processing_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libbarhopper_v3.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libclash.so: UNALIGNED (2**12) /var/folders/temp/lib/x86_64/libbridge.so: UNALIGNED (2**12) /var/folders/temp/lib/x86_64/libimage_processing_util_jni.so: ALIGNED (2**14) Found 10 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned). ===================== ``` New: ``` === ELF alignment === /var/folders/temp/lib/armeabi-v7a/libbarhopper_v3.so: UNALIGNED (2**12) /var/folders/temp/lib/armeabi-v7a/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/armeabi-v7a/libclash.so: ALIGNED (2**14) /var/folders/temp/lib/armeabi-v7a/libbridge.so: UNALIGNED (2**12) /var/folders/temp/lib/armeabi-v7a/libimage_processing_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86/libbarhopper_v3.so: UNALIGNED (2**12) /var/folders/temp/lib/x86/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86/libclash.so: ALIGNED (2**14) /var/folders/temp/lib/x86/libbridge.so: UNALIGNED (2**12) /var/folders/temp/lib/x86/libimage_processing_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libbarhopper_v3.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libclash.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libbridge.so: ALIGNED (2**14) /var/folders/temp/lib/arm64-v8a/libimage_processing_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libbarhopper_v3.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libsurface_util_jni.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libclash.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libbridge.so: ALIGNED (2**14) /var/folders/temp/lib/x86_64/libimage_processing_util_jni.so: ALIGNED (2**14) Found 4 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned). ===================== ``` Diff: ```diff 4c4 < /var/folders/temp/lib/armeabi-v7a/libclash.so: UNALIGNED (2**12) --- > /var/folders/temp/lib/armeabi-v7a/libclash.so: ALIGNED (2**14) 9c9 < /var/folders/temp/lib/x86/libclash.so: UNALIGNED (2**12) --- > /var/folders/temp/lib/x86/libclash.so: ALIGNED (2**14) 14,15c14,15 < /var/folders/temp/lib/arm64-v8a/libclash.so: UNALIGNED (2**12) < /var/folders/temp/lib/arm64-v8a/libbridge.so: UNALIGNED (2**12) --- > /var/folders/temp/lib/arm64-v8a/libclash.so: ALIGNED (2**14) > /var/folders/temp/lib/arm64-v8a/libbridge.so: ALIGNED (2**14) 19,20c19,20 < /var/folders/temp/lib/x86_64/libclash.so: UNALIGNED (2**12) < /var/folders/temp/lib/x86_64/libbridge.so: UNALIGNED (2**12) --- > /var/folders/temp/lib/x86_64/libclash.so: ALIGNED (2**14) > /var/folders/temp/lib/x86_64/libbridge.so: ALIGNED (2**14) 22c22 < Found 10 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned). --- > Found 4 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned). ```
Author
Old
New
Diff: 4c4
< /var/folders/temp/lib/armeabi-v7a/libclash.so: UNALIGNED (2**12)
---
> /var/folders/temp/lib/armeabi-v7a/libclash.so: ALIGNED (2**14)
9c9
< /var/folders/temp/lib/x86/libclash.so: UNALIGNED (2**12)
---
> /var/folders/temp/lib/x86/libclash.so: ALIGNED (2**14)
14,15c14,15
< /var/folders/temp/lib/arm64-v8a/libclash.so: UNALIGNED (2**12)
< /var/folders/temp/lib/arm64-v8a/libbridge.so: UNALIGNED (2**12)
---
> /var/folders/temp/lib/arm64-v8a/libclash.so: ALIGNED (2**14)
> /var/folders/temp/lib/arm64-v8a/libbridge.so: ALIGNED (2**14)
19,20c19,20
< /var/folders/temp/lib/x86_64/libclash.so: UNALIGNED (2**12)
< /var/folders/temp/lib/x86_64/libbridge.so: UNALIGNED (2**12)
---
> /var/folders/temp/lib/x86_64/libclash.so: ALIGNED (2**14)
> /var/folders/temp/lib/x86_64/libbridge.so: ALIGNED (2**14)
22c22
< Found 10 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned).
---
> Found 4 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned). |
Author
|
你说的对,确实对齐了,见 #667 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://developer.android.com/guide/practices/page-sizes