aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-07-04 11:14:59 +0000
committerNick Clifton <nickc@redhat.com>2007-07-04 11:14:59 +0000
commit1a412f5fd37a833c417bde3ac16e1cbf15433b49 (patch)
treeba0b7007b3450cd59d6879650533ac6405600eea /gas/symbols.c
parenta9d8f065563f4ec79f44731aaf4333ea1b2ef8ec (diff)
downloadgdb-1a412f5fd37a833c417bde3ac16e1cbf15433b49.zip
gdb-1a412f5fd37a833c417bde3ac16e1cbf15433b49.tar.gz
gdb-1a412f5fd37a833c417bde3ac16e1cbf15433b49.tar.bz2
* symbols.c (symbol_relc_make_value): Use bfd_sprintf_vma in order to get the
right length of printed value.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 480e3e3..e8c7154 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -3004,7 +3004,7 @@ symbol_relc_make_value (offsetT val)
char * terminal = xmalloc (28); /* Enough for long long. */
terminal[0] = '#';
- sprintf_vma (& terminal[1], val);
+ bfd_sprintf_vma (stdoutput, terminal + 1, val);
return terminal;
}