Module Name: src
Committed By: mrg
Date: Wed Feb 13 20:48:56 UTC 2019
Modified Files:
src/usr.bin/crunch/crunchgen: crunchgen.c
Log Message:
while we're still figuring out the gcc7 vs .eh_frame issue, apply
the don't remove eh_frame hack to mips as well. hpcmips testbed
is also failing currently:
[ 3.1238738] panic: init died (signal 6, exit 12)
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/usr.bin/crunch/crunchgen/crunchgen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/crunch/crunchgen/crunchgen.c
diff -u src/usr.bin/crunch/crunchgen/crunchgen.c:1.90 src/usr.bin/crunch/crunchgen/crunchgen.c:1.91
--- src/usr.bin/crunch/crunchgen/crunchgen.c:1.90 Tue Feb 12 10:16:58 2019
+++ src/usr.bin/crunch/crunchgen/crunchgen.c Wed Feb 13 20:48:56 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: crunchgen.c,v 1.90 2019/02/12 10:16:58 mrg Exp $ */
+/* $NetBSD: crunchgen.c,v 1.91 2019/02/13 20:48:56 mrg Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: crunchgen.c,v 1.90 2019/02/12 10:16:58 mrg Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.91 2019/02/13 20:48:56 mrg Exp $");
#endif
#include <stdlib.h>
@@ -964,7 +964,9 @@ top_makefile_rules(FILE *outmk)
fprintf(outmk, "OBJCOPY_REMOVE_FLAGS=-R .eh_frame_hdr -R .note -R .note.netbsd.pax -R .ident -R .comment -R .copyright\n\n");
- fprintf(outmk, ".if ${MACHINE} != \"sparc\" && ${MACHINE} != \"sparc64\"\n");
+ fprintf(outmk, ".if !(${MACHINE} == \"sparc\" || \\\n");
+ fprintf(outmk, " ${MACHINE} == \"sparc64\" || \\\n");
+ fprintf(outmk, " ${MACHINE_ARCH:C/mips(e|64e)[bl]/mips/} == \"mips\")\n");
fprintf(outmk, "OBJCOPY_REMOVE_FLAGS+=-R .eh_frame\n");
fprintf(outmk, ".endif\n");
fprintf(outmk, ".if ${MACHINE} != \"sparc64\"\n");