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

ARM64 relocation error due to default linker flags #28

Closed
opatry opened this issue Dec 8, 2014 · 1 comment
Closed

ARM64 relocation error due to default linker flags #28

opatry opened this issue Dec 8, 2014 · 1 comment

Comments

@opatry
Copy link

opatry commented Dec 8, 2014

Hi,

it seems that the default linker flags breaks the ARM 64 build available since NDK r10 (cf. PR 23).

set( CMAKE_EXE_LINKER_FLAGS    "-Wl,-z,nocopyreloc"      CACHE STRING "executable linker flags" )

should be replaced with

set( CMAKE_EXE_LINKER_FLAGS    ""      CACHE STRING "executable linker flags" )

It fixes the relocation/link issue on ARM64 and had no incidence on other architectures.
Maybe it should be defined according to current architecture and disabled only for ARM64?

Android NDK related post https://groups.google.com/forum/#!topic/android-ndk/-ajpz2E-BEE + extracted project https://bitbucket.org/opatry/ndk10_armv8a_bug

@opatry
Copy link
Author

opatry commented Dec 9, 2014

Using the master branch instead of the mentioned PR 23, everything goes well despite the -Wl,-z,nocopyreloc linker flag.

@opatry opatry closed this as completed Dec 9, 2014
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

1 participant