Bug#844780: gcc-6-arm-linux-gnueabihf: cross-compiled code fails to link on target with native gcc-6

2016-11-18 Thread Matthijs van Duin
I've found the problem, it has nothing to do with cross-gcc. The issue lies with the native gcc 6.2 which has been configured with --enable-default-pie, which (at least on arm) breaks its ability to link any code produced by earlier compilers.

Bug#844780: gcc-6-arm-linux-gnueabihf: cross-compiled code fails to link on target with native gcc-6

2016-11-18 Thread Matthijs van Duin
Package: gcc-6-arm-linux-gnueabihf Version: 6.1.1-9cross1 Severity: important Dear Maintainer, If I cross-compile any code (even a basic hello-world) and then attempt to link the resulting objects on the target system (stretch, armhf) using the native gcc-6 toolchain (which is 6.2.0 in testing