+2001-08-09 H.J. Lu <hjl@gnu.org>
+
+ * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
+ (bfd_elf_fprintf_vma): Likewise.
+
2001-08-09 H.J. Lu <hjl@gnu.org>
* bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
char *buf;
bfd_vma value;
{
+#ifdef BFD64
Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */
i_ehdrp = elf_elfheader (abfd);
else
sprintf (buf, "%08lx", (unsigned long) (value & 0xffffffff));
}
+#else
+ sprintf_vma (buf, value);
+#endif
}
void
PTR stream;
bfd_vma value;
{
+#ifdef BFD64
Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */
i_ehdrp = elf_elfheader (abfd);
fprintf ((FILE *) stream, "%08lx",
(unsigned long) (value & 0xffffffff));
}
+#else
+ fprintf_vma ((FILE *) stream, value);
+#endif
}