Navigation Menu

Skip to content

Commit

Permalink
Bug 1642174 - Resolve sha512-p8.o: ABI version 2 is not compatible wi…
Browse files Browse the repository at this point in the history
…th ABI version 1 output. r=jcj

Don't try to build the SHA-2 accelerated asm on old-ABI ppc.

Currently make only, I don't have enough gyp-fu to do that side.
However, the reporters of 1642174 and 1635625 both used make, not gyp.

Signed-off-by: Lauri Kasanen <cand@gmx.com>

--HG--
extra : amend_source : 9fbc77541c628a1f90187d598df7a37b04393998
  • Loading branch information
clbr committed Nov 19, 2020
1 parent 8010b1a commit dc1f0c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/freebl/Makefile
Expand Up @@ -293,9 +293,12 @@ ifeq ($(CPU_ARCH),arm)
endif
ifeq ($(CPU_ARCH),ppc)
EXTRA_SRCS += gcm-ppc.c
ASFILES += sha512-p8.s
ifdef USE_64
DEFINES += -DNSS_NO_INIT_SUPPORT
PPC_ABI := $(shell $(CC) -dM -E - < /dev/null | awk '$$2 == "_CALL_ELF" {print $$3}')
ifeq ($(PPC_ABI),2)
ASFILES += sha512-p8.s
endif
endif # USE_64
endif # ppc
endif # Linux
Expand Down

0 comments on commit dc1f0c1

Please sign in to comment.