Hi,
First of all, a really useful docker container as all I needed was a PIE ssh client and I've never compiled NDK stuff before.
However the PIE output (at least for the ARM ssh client) wasn't actually a PIE executable.
It seemed that the final linking(?) command didn't have the PIE flags, so I brute forced a solution by adding -pie -fPIE to the end of the COMPILER=${TOOLCHAIN}/bin/arm-linux-androideabi-gcc line
Which worked, but I'm pretty sure this isn't the correct way to fix this.
Cheers,
Ian
Hi,
First of all, a really useful docker container as all I needed was a PIE ssh client and I've never compiled NDK stuff before.
However the PIE output (at least for the ARM ssh client) wasn't actually a PIE executable.
It seemed that the final linking(?) command didn't have the PIE flags, so I brute forced a solution by adding
-pie -fPIEto the end of theCOMPILER=${TOOLCHAIN}/bin/arm-linux-androideabi-gcclineWhich worked, but I'm pretty sure this isn't the correct way to fix this.
Cheers,
Ian