diff options
author | Ed Maste <emaste@FreeBSD.org> | 2016-07-21 18:47:51 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2016-07-21 18:47:51 +0000 |
commit | 60a4cd8411cdbf7ee11afe5318cf98bf20f73024 (patch) | |
tree | c875a645e4e73f11c1b4a22696e8690b94d36a69 /lib/libmd | |
parent | 3c4fd2463bb29f65ef1404011fcb31e508cdf2e2 (diff) | |
download | src-60a4cd8411cdbf7ee11afe5318cf98bf20f73024.tar.gz src-60a4cd8411cdbf7ee11afe5318cf98bf20f73024.zip |
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
Notes
Notes:
svn path=/head/; revision=303158
Diffstat (limited to 'lib/libmd')
-rw-r--r-- | lib/libmd/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
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 |