From 860980172e791f17312aebfee43b9ad0fae70007 Mon Sep 17 00:00:00 2001 From: emaste Date: Thu, 21 Jul 2016 18:47:51 +0000 Subject: [PATCH] libmd: strip local absolute symbols (to link with lld) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Old versions of gas produce an invalid section index. That is ignored by old versions of ld, but prevents a link with lld. Submitted by: Rafael Ávila de Espíndola (earlier version) Reviewed by: allanjude Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6789 --- lib/libmd/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile index bb506236dc7b..9afdc4583f4a 100644 --- a/lib/libmd/Makefile +++ b/lib/libmd/Makefile @@ -93,6 +93,7 @@ SRCS+= rmd160.S CFLAGS+= -DRMD160_ASM .endif .if exists(${MACHINE_ARCH}/skein_block_asm.s) +AFLAGS += --strip-local-absolute SRCS+= skein_block_asm.s CFLAGS+= -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792 .endif