summaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-07-12 07:16:41 +0000
committerNick Clifton <nickc@redhat.com>2007-07-12 07:16:41 +0000
commitd2df793a7137120047017593d26669e5092e3841 (patch)
tree691f20fd53ad1cb970387e3a5f434824cb1fb2fe /gas/symbols.c
parentdb42c6e8ee92965ca26f4ccf2183d26a8c560931 (diff)
downloadbinutils-d2df793a7137120047017593d26669e5092e3841.tar.gz
binutils-d2df793a7137120047017593d26669e5092e3841.tar.bz2
binutils-d2df793a7137120047017593d26669e5092e3841.zip
Add support for building on a 64-bit Windows host.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index e8c7154edec..b631a1d6aa4 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -2728,14 +2728,20 @@ print_symbol_value_1 (FILE *file, symbolS *sym)
const char *name = S_GET_NAME (sym);
if (!name || !name[0])
name = "(unnamed)";
- fprintf (file, "sym %lx %s", (unsigned long) sym, name);
+ fprintf (file, "sym ");
+ fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) sym));
+ fprintf (file, " %s", name);
if (LOCAL_SYMBOL_CHECK (sym))
{
struct local_symbol *locsym = (struct local_symbol *) sym;
- if (local_symbol_get_frag (locsym) != &zero_address_frag
+
+ if (local_symbol_get_frag (locsym) != & zero_address_frag
&& local_symbol_get_frag (locsym) != NULL)
- fprintf (file, " frag %lx", (long) local_symbol_get_frag (locsym));
+ {
+ fprintf (file, " frag ");
+ fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) local_symbol_get_frag (locsym)));
+ }
if (local_symbol_resolved_p (locsym))
fprintf (file, " resolved");
fprintf (file, " local");
@@ -2743,7 +2749,10 @@ print_symbol_value_1 (FILE *file, symbolS *sym)
else
{
if (sym->sy_frag != &zero_address_frag)
- fprintf (file, " frag %lx", (long) sym->sy_frag);
+ {
+ fprintf (file, " frag ");
+ fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) sym->sy_frag));
+ }
if (sym->written)
fprintf (file, " written");
if (sym->sy_resolved)
@@ -2817,7 +2826,9 @@ print_binary (FILE *file, const char *name, expressionS *exp)
void
print_expr_1 (FILE *file, expressionS *exp)
{
- fprintf (file, "expr %lx ", (long) exp);
+ fprintf (file, "expr ");
+ fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) exp));
+ fprintf (file, " ");
switch (exp->X_op)
{
case O_illegal: