Skip to content

ecp_nistz256-armv4.S bad arguments to instruction #12848

@HenryNe

Description

@HenryNe

Error from ARMv4 Assembler:

arm-armv4tl-linux-gcc  -I. -Iinclude -Icrypto -fPIC -pthread -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/vagrant/igw-systems/INSTALL/OPENSSL-1.1.1g-issue/usr/lib/engines-1.1\"" -DNDEBUG -D__ARM_ARCH_4__ -march=armv4 -fpic -c -o crypto/ec/ecp_nistz256-armv4.o crypto/ec/ecp_nistz256-armv4.S
crypto/ec/ecp_nistz256-armv4.S: Assembler messages:
crypto/ec/ecp_nistz256-armv4.S:3853: Error: bad arguments to instruction -- `orr r11,r10'
crypto/ec/ecp_nistz256-armv4.S:3854: Error: bad arguments to instruction -- `orr r11,r12'
crypto/ec/ecp_nistz256-armv4.S:3855: Error: bad arguments to instruction -- `orrs r11,r14'
Makefile:3084: recipe for target 'crypto/ec/ecp_nistz256-armv4.o' failed
make[1]: *** [crypto/ec/ecp_nistz256-armv4.o] Error 1
make[1]: Leaving directory '/home/vagrant/igw-systems/build/openssl-1.1.1g'
Makefile:174: recipe for target 'all' failed
make: *** [all] Error 2

Call to build:

MACHINE="armv4tl" ./config shared --cross-compile-prefix="arm-armv4tl-linux-" --prefix=/usr/local "-D__ARM_ARCH_4__ -march=armv4 -fpic"

make MACHINE="armv4tl" SRCDIR=. BLDDIR=.

Version:
OpenSSL 1.1.1g 21 Apr 2020

Used GNU GCC:
arm-armv4tl-linux-gcc (GCC) 3.4.4

perl-config-dump.txt

Suggested patch:
openssl-1.1.1.armv4.patch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 1.1.1Applies to OpenSSL_1_1_1-stable branch (EOL)branch: masterApplies to master branchtriaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions