Comment 5 for bug 1729850

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

The incorrect instruction at the start of sha256_block_data_order comes from the ADR pseudo-instruction in sha256-armv4.S:

.global sha256_block_data_order
.type sha256_block_data_order,%function
sha256_block_data_order:
#if __ARM_ARCH__<7
        sub r3,pc,#8 @ sha256_block_data_order
#else
        adr r3,sha256_block_data_order
#endif

The ADR instruction assembles to a SUB in our case, and it appears to do this incorrectly in Thumb mode. Adding a binutils task for this.