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 Oops...don't nuke the global symbol...



details:   https://anonhg.NetBSD.org/src/rev/72d8bf13490f
branches:  trunk
changeset: 517181:72d8bf13490f
user:      jmc <jmc%NetBSD.org@localhost>
date:      Thu Nov 08 07:35:00 2001 +0000

description:
Oops...don't nuke the global symbols with objcopy. Just keep the crunched stub
and revert the others to locals

diffstat:

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

diffs (27 lines):

diff -r bcc750693d19 -r 72d8bf13490f usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c      Thu Nov 08 07:30:00 2001 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c      Thu Nov 08 07:35:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crunchgen.c,v 1.28 2001/11/07 18:22:39 drochner Exp $  */
+/*     $NetBSD: crunchgen.c,v 1.29 2001/11/08 07:35:00 jmc Exp $       */
 /*
  * Copyright (c) 1994 University of Maryland
  * All Rights Reserved.
@@ -33,7 +33,7 @@
  */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: crunchgen.c,v 1.28 2001/11/07 18:22:39 drochner Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.29 2001/11/08 07:35:00 jmc Exp $");
 #endif
 
 #include <stdlib.h>
@@ -881,7 +881,7 @@
     fprintf(outmk, "\t${LD} -dc -r -o %s.cro %s_stub.o $(%s_OBJPATHS)\n", 
            p->name, p->name, p->ident);
 #ifdef NEW_TOOLCHAIN
-    fprintf(outmk, "\t${OBJCOPY} -S -K _crunched_%s_stub %s.cro\n",
+    fprintf(outmk, "\t${OBJCOPY} --keep-global-symbol _crunched_%s_stub %s.cro\n",
            p->ident, p->name);
 #else
     fprintf(outmk, "\t${CRUNCHIDE} -k _crunched_%s_stub %s.cro\n", 



Home | Main Index | Thread Index | Old Index