remove the hack to remove .eh_frame -- gcc7 is fixed it seems.

This commit is contained in:
mrg 2019-02-14 12:22:06 +00:00
parent 727a664bee
commit d40c522149

View File

@ -1,4 +1,4 @@
/* $NetBSD: crunchgen.c,v 1.91 2019/02/13 20:48:56 mrg Exp $ */
/* $NetBSD: crunchgen.c,v 1.92 2019/02/14 12:22:06 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.91 2019/02/13 20:48:56 mrg Exp $");
__RCSID("$NetBSD: crunchgen.c,v 1.92 2019/02/14 12:22:06 mrg Exp $");
#endif
#include <stdlib.h>
@ -964,11 +964,7 @@ 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\" || \\\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");
fprintf(outmk, "OBJCOPY_REMOVE_FLAGS+=-R .note.netbsd.mcmodel\n");
fprintf(outmk, ".endif\n\n");