Add the ability to specify more sections to strip.

This commit is contained in:
christos 2016-09-20 20:55:54 +00:00
parent 7b6d02ec13
commit e0e4dc48e0

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.mdset,v 1.40 2014/08/05 15:40:58 apb Exp $
# $NetBSD: Makefile.mdset,v 1.41 2016/09/20 20:55:54 christos Exp $
#
# Makefile snippet to ${TOOL_MDSETIMAGE} file system images into kernels
#
@ -153,7 +153,7 @@ ${_KERNEL.${_K}.${_F}}: .NOTMAIN ${_KERNNAME.${_K}.${_F}} ${_I}
${NM} ${.TARGET}.tmp | ${TOOL_GZIP_N} -9 > ${.TARGET}.symbols.gz
.endif
.if !defined(MDSET_NOSTRIP.${_FILENAME}) && !defined(MDSET_NOSTRIP)
${STRIP} -R .eh_frame -R .eh_frame_hdr -R .comment -R .ident ${.TARGET}.tmp
${STRIP} -R .eh_frame -R .eh_frame_hdr -R .comment -R .ident ${MDSET_STRIPSECTIONS} ${.TARGET}.tmp
.endif
@mv ${.TARGET}.tmp ${.TARGET}
.if defined(MDSET_POST.${_FILENAME}) || defined(MDSET_POST)