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

Found elf built without Position Independent Executable (PIE) flag #61

Open
abdulsiddiq opened this issue Jan 22, 2019 · 1 comment
Open

Comments

@abdulsiddiq
Copy link

abdulsiddiq commented Jan 22, 2019

While compiling the native C/C++ code, use "-fPIC" flag in case of 32-bit program. In case of 64-bit program, use "-fPIE" and "-pie" flags.

Suggestions :
Need to add set(CMAKE_POSITION_INDEPENDENT_CODE ON) to cmake file. or necessary flags to the android.mk file

https://corochann.com/build-executable-file-with-android-ndk-after-lollipop-android-api-21-388.html
Refer the following link

@udfvirus
Copy link

Could you please rebuild affected libraries with the -pie flag?
Libraries:
lib/mips64/libmodft2.so
lib/mips64/libc++_shared.so
lib/mips64/libjniPdfium.so
lib/mips64/libmodpng.so
lib/mips64/libmodpdfium.so

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