Created attachment 7396 [details] Proposed patch I've recently detected an inconsistency between ld.bfd and ld.gold on ARM platforms. It seems that Gold does not set entry flag in ELF header: # Binutils with --enable-gold=no $ arm-v7a15v5r0-linux-gnueabi-gcc justmain.c $ arm-v7a15v5r0-linux-gnueabi-readelf -h a.out ELF Header: ... Flags: 0x5000202, has entry point, Version5 EABI, <unknown> # Binutils with --enable-gold=default $ arm-v7a15v5r0-linux-gnueabi-gcc justmain.c $ arm-v7a15v5r0-linux-gnueabi-readelf -h a.out ELF Header: ... Flags: 0x5000000, Version5 EABI The attached simple patch seems to fix this: $ arm-v7a15v5r0-linux-gnueabi-readelf -h a.out ELF Header: ... Flags: 0x5000002, has entry point, Version5 EABI
Closing as invalid after discussion on mailing list: https://sourceware.org/ml/binutils/2014-02/msg00076.html