]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/cofflink.c
Fix problems translating messages when a percentage sign appears at the end of a...
[thirdparty/binutils-gdb.git] / bfd / cofflink.c
index dd3e8dd4bf667b41f42bdba3ea8629072bb2c902..b8a370933be68c6419e5c61454073599c9424859 100644 (file)
@@ -2606,10 +2606,14 @@ _bfd_coff_write_global_sym (struct bfd_hash_entry *bh, void *data)
        if (isym.n_value > (bfd_vma) 0xffffffff)
          {
            if (! h->root.linker_def)
-             _bfd_error_handler
-               (_("%pB: stripping non-representable symbol '%s' (value "
-                  "%" BFD_VMA_FMT "x)"),
-                output_bfd, h->root.root.string, isym.n_value);
+             {
+               char value_buf[128];
+
+               sprintf_vma (value_buf, isym.n_value);
+               _bfd_error_handler
+                 (_("%pB: stripping non-representable symbol '%s' (value 0x%s)"),
+                  output_bfd, h->root.root.string, value_buf);
+             }
            return true;
          }
 #endif