Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/crunch/crunchgen Remove .note.netbsd.mcmodel and .no...



details:   https://anonhg.NetBSD.org/src/rev/bacb954c7f27
branches:  trunk
changeset: 325724:bacb954c7f27
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jan 04 08:58:51 2014 +0000

description:
Remove .note.netbsd.mcmodel and .note.netbsd.pax from the chrunched binaries.
We don't know wether the former would make sense (as currently used, it never
makes sense for static binaries) and we can not conclude safe PAX flags from
combined binaries.

diffstat:

 usr.bin/crunch/crunchgen/crunchgen.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 05d6988ae7d8 -r bacb954c7f27 usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c      Sat Jan 04 03:19:00 2014 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c      Sat Jan 04 08:58:51 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crunchgen.c,v 1.81 2013/06/10 18:27:30 joerg Exp $     */
+/*     $NetBSD: crunchgen.c,v 1.82 2014/01/04 08:58:51 martin 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.81 2013/06/10 18:27:30 joerg Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.82 2014/01/04 08:58:51 martin Exp $");
 #endif
 
 #include <stdlib.h>
@@ -957,7 +957,7 @@
     fprintf(outmk, "\t@[ -f ${PROG}.unstripped -a ! ${PROG} -nt ${PROG}.unstripped ] || { \\\n");
     fprintf(outmk, "\t\t${_MKSHMSG:Uecho} \"  strip \" ${PROG}; \\\n");
     fprintf(outmk, "\t\tcp ${PROG} ${PROG}.unstripped && \\\n");
-    fprintf(outmk, "\t\t${OBJCOPY} -S -R .eh_frame -R .eh_frame_hdr -R .note -R .ident -R .comment -R .copyright ${PROG} && \\\n");
+    fprintf(outmk, "\t\t${OBJCOPY} -S -R .eh_frame -R .eh_frame_hdr -R .note -R .note.netbsd.mcmodel -R .note.netbsd.pax -R .ident -R .comment -R .copyright ${PROG} && \\\n");
     fprintf(outmk, "\t\ttouch ${PROG}.unstripped; \\\n");
     fprintf(outmk, "\t}\n");
     fprintf(outmk, "objs: $(SUBMAKE_TARGETS)\n");



Home | Main Index | Thread Index | Old Index