Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/elf2ecoff remove unused variables
details: https://anonhg.NetBSD.org/src/rev/b18d1613a3a9
branches: trunk
changeset: 791254:b18d1613a3a9
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 10 17:14:25 2013 +0000
description:
remove unused variables
diffstat:
usr.bin/elf2ecoff/elf2ecoff.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (55 lines):
diff -r 008bc1156869 -r b18d1613a3a9 usr.bin/elf2ecoff/elf2ecoff.c
--- a/usr.bin/elf2ecoff/elf2ecoff.c Sun Nov 10 12:46:19 2013 +0000
+++ b/usr.bin/elf2ecoff/elf2ecoff.c Sun Nov 10 17:14:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elf2ecoff.c,v 1.28 2011/08/23 20:27:22 christos Exp $ */
+/* $NetBSD: elf2ecoff.c,v 1.29 2013/11/10 17:14:25 christos Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone
@@ -106,7 +106,6 @@
size_t i;
int pad;
struct sect text, data, bss; /* a.out-compatible sections */
- struct sect rdata, sdata, sbss; /* ECOFF-only sections */
struct ecoff_exechdr ep;
struct ecoff_scnhdr esecs[6];
@@ -114,7 +113,6 @@
int infile, outfile;
unsigned long cur_vma = ULONG_MAX;
- int symflag = 0;
int nsecs = 0;
int mipsel;
@@ -122,9 +120,6 @@
text.len = data.len = bss.len = 0;
text.vaddr = data.vaddr = bss.vaddr = 0;
- rdata.len = sdata.len = sbss.len = 0;
- rdata.vaddr = sdata.vaddr = sbss.vaddr = 0;
-
/* Check args... */
if (argc < 3 || argc > 4) {
usage:
@@ -136,7 +131,6 @@
if (argc == 4) {
if (strcmp(argv[3], "-s"))
goto usage;
- symflag = 1;
}
/* Try the input file... */
if ((infile = open(argv[1], O_RDONLY)) < 0)
@@ -753,10 +747,9 @@
/* Copy and translate symbols... */
idx = 0;
for (i = 0; i < nsyms; i++) {
- int binding, type;
+ int binding;
binding = ELF32_ST_BIND((elfp->elf_syms[i].st_info));
- type = ELF32_ST_TYPE((elfp->elf_syms[i].st_info));
/* skip strange symbols */
if (binding == 0) {
Home |
Main Index |
Thread Index |
Old Index