Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2016 18:47:51 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303158 - head/lib/libmd
Message-ID:  <201607211847.u6LIlpQw087468@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Jul 21 18:47:51 2016
New Revision: 303158
URL: https://svnweb.freebsd.org/changeset/base/303158

Log:
  libmd: strip local absolute symbols (to link with lld)
  
  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

Modified:
  head/lib/libmd/Makefile

Modified: head/lib/libmd/Makefile
==============================================================================
--- head/lib/libmd/Makefile	Thu Jul 21 18:20:35 2016	(r303157)
+++ head/lib/libmd/Makefile	Thu Jul 21 18:47:51 2016	(r303158)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607211847.u6LIlpQw087468>