aboutsummaryrefslogtreecommitdiff
path: root/binutils/nm.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-05-20 23:15:15 +0000
committerSteve Chamberlain <steve@cygnus>1991-05-20 23:15:15 +0000
commitfc5d60745615a903d4a149fc5753ea54d3606597 (patch)
tree9d76fc8dbfb061c00bd715ddff480fdbed2eb5be /binutils/nm.c
parentbce4bf525feda14fd2eb6ee84590e032465d6976 (diff)
downloadfsf-binutils-gdb-fc5d60745615a903d4a149fc5753ea54d3606597.zip
fsf-binutils-gdb-fc5d60745615a903d4a149fc5753ea54d3606597.tar.gz
fsf-binutils-gdb-fc5d60745615a903d4a149fc5753ea54d3606597.tar.bz2
Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
* Changed some types to work with 64 bit object files
Diffstat (limited to 'binutils/nm.c')
-rw-r--r--binutils/nm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/binutils/nm.c b/binutils/nm.c
index ac490f7..5226095 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -43,7 +43,7 @@ struct option long_options[] = {
{"print-armap", 0, &print_armap, 1},
{"print-file-name", 0, &file_on_each_line, 1},
{"reverse-sort", 0, &reverse_sort, 1},
- {"target", 2, NULL, NULL},
+ {"target", 2, (int *)NULL, 0},
{"undefined-only", 0, &undefined_only, 1},
{0, 0, 0, 0}
};
@@ -230,8 +230,8 @@ non_numeric_forward (x, y)
char *x;
char *y;
{
- char *xn = (*(asymbol **) x)->name;
- char *yn = (*(asymbol **) y)->name;
+ CONST char *xn = (*(asymbol **) x)->name;
+ CONST char *yn = (*(asymbol **) y)->name;
return ((xn == NULL) ? ((yn == NULL) ? 0 : -1) :
((yn == NULL) ? 1 : strcmp (xn, yn)));
@@ -353,11 +353,11 @@ print_symbols (abfd, syms, symcount)
if (p->flags & BSF_GLOBAL)
class = toupper (class);
- if (p->value || ((p->flags & BSF_UNDEFINED) != BSF_UNDEFINED))
- printf ("%08lx ", (p->section ? p->value + p->section->vma : p->value));
- else fputs (" ", stdout);
+ if (p->value || ((p->flags & BSF_UNDEFINED) != BSF_UNDEFINED))
+ printf_vma( (p->section ? p->value + p->section->vma : p->value));
+ else fputs (" ", stdout);
- printf ("%c %s\n", class, p->name);
+ printf (" %c %s\n", class, p->name);
}
}
}