Skip to content

questions related to --pack-dyn-relocs=android #1800

Answered by enh-google
pendyalasyam asked this question in Q&A
Discussion options

You must be logged in to vote

Build System maintainers guide suggests to use --pack-dyn-relocs=android on API Level 23 and more.

I am trying to understand what are relocations and what is this new packing and how it reduces the binary size. Meanwhile, could somebody please let me know

  1. What happens if we use libraries built with --pack-dyn-relocs=android on Android Devices with lower API levels.

they won't work.

more specifically: https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#relative-relocations-relr

  1. Can libraries built with --pack-dyn-relocs=android work smoothly with libraries that are built without any --pack-dyn-relocs flag?

yes.

  1. Does this flag impact the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pendyalasyam
Comment options

Answer selected by DanAlbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants