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 the always defined RENAME_SY...



details:   https://anonhg.NetBSD.org/src/rev/b61e223262c1
branches:  trunk
changeset: 570141:b61e223262c1
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Sep 25 18:32:37 2004 +0000

description:
Remove the always defined RENAME_SYMS and the code that would be
compiled were it defined.
That code is out of date, doesn't work on some archs, and is in the way
of another commit.

diffstat:

 usr.bin/crunch/crunchgen/crunchgen.c |  17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diffs (52 lines):

diff -r d908915d2587 -r b61e223262c1 usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c      Sat Sep 25 18:24:55 2004 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c      Sat Sep 25 18:32:37 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crunchgen.c,v 1.58 2004/08/23 00:42:32 wiz Exp $       */
+/*     $NetBSD: crunchgen.c,v 1.59 2004/09/25 18:32:37 dsl 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.58 2004/08/23 00:42:32 wiz Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.59 2004/09/25 18:32:37 dsl Exp $");
 #endif
 
 #include <stdlib.h>
@@ -57,12 +57,6 @@
 #define MAXLINELEN     16384
 #define MAXFIELDS       2048
 
-/*
- * Define RENAME_SYMS to rename symbols using objcopy --redefine-syms.
- * Undef RENAME_SYMS to hide globals symbols using objcopy --keep-global-symbol.
- */
-#define        RENAME_SYMS
-
 /* internal representation of conf file: */
 
 /* simple lists of strings suffice for most parms */
@@ -948,7 +942,6 @@
     fprintf(outmk, "\t${LD} -r -o %s.cro %s_stub.o $(%s_OBJPATHS)\n", 
            p->name, p->name, p->ident);
 #ifdef NEW_TOOLCHAIN
-#ifdef RENAME_SYMS
     fprintf(outmk, "\t${NM} -ng %s.cro | grep -v '^ *U' | ", p->name);
     fprintf(outmk, "grep -v '^[0-9a-fA-F][0-9a-fA-F]* C' | ");
     fprintf(outmk, "grep -wv _crunched_%s_stub | ", p->ident);
@@ -959,12 +952,6 @@
        "> %s.cro.syms\n", p->name, p->name);
     fprintf(outmk, "\t${OBJCOPY} --redefine-syms %s.cro.syms ", p->name);
 #else
-    fprintf(outmk, "\t${OBJCOPY} --keep-global-symbol _crunched_%s_stub ",
-           p->ident);
-    for (lst = p->keepsymbols; lst != NULL; lst = lst->next)
-       fprintf(outmk, "--keep-global-symbol %s ", lst->str);
-#endif
-#else
     fprintf(outmk, "\t${CRUNCHIDE} -k _crunched_%s_stub ", p->ident);
     for (lst = p->keepsymbols; lst != NULL; lst = lst->next)
        fprintf(outmk, "-k %s ", lst->str);



Home | Main Index | Thread Index | Old Index