diff options
author | agc <agc> | 2000-10-06 11:08:31 +0000 |
---|---|---|
committer | agc <agc> | 2000-10-06 11:08:31 +0000 |
commit | d3452e076423ec79d4b57859d9e4ff034cb528ce (patch) | |
tree | 71bbbac3e0fd5095fcbb8d398037d1449b42c124 /lang | |
parent | 85d6374446655fa6a056fb9ad8216582bec73b6c (diff) | |
download | pkgsrc-d3452e076423ec79d4b57859d9e4ff034cb528ce.tar.gz |
Only grab global symbols from object files.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/elk/files/stab-elf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/elk/files/stab-elf.c b/lang/elk/files/stab-elf.c index e93d2835b81..433f2bc435a 100644 --- a/lang/elk/files/stab-elf.c +++ b/lang/elk/files/stab-elf.c @@ -1,4 +1,4 @@ -/* $NetBSD: stab-elf.c,v 1.1 2000/10/05 15:08:54 agc Exp $ */ +/* $NetBSD: stab-elf.c,v 1.2 2000/10/06 11:08:31 agc Exp $ */ /* * Copyright (c) 2000 Alistair G. Crooks. All rights reserved. @@ -36,7 +36,7 @@ __COPYRIGHT( "@(#) Copyright (c) 2000 \ The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: stab-elf.c,v 1.1 2000/10/05 15:08:54 agc Exp $"); +__RCSID("$NetBSD: stab-elf.c,v 1.2 2000/10/06 11:08:31 agc Exp $"); #endif #include <sys/types.h> @@ -74,7 +74,7 @@ Open_File_And_Snarf_Symbols (name) SYM **nextp; SYM *sp; - (void) snprintf(cmd, sizeof(cmd), "%s %s | %s '$2 == \"T\" { printf(\"%s %s\n\", $1 $3) }'", NM, name, AWK); + (void) snprintf(cmd, sizeof(cmd), "%s -g %s | %s '$2 == \"T\" { printf(\"%s %s\n\", $1 $3) }'", NM, name, AWK); if ((pp = popen(cmd, "r")) == NULL) { Primitive_Error("can't open a.out file"); } |