diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-08-09 21:10:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-08-09 21:10:25 +0000 |
commit | d3b05f8d41df1ab8d213622a3195e7116e06dcca (patch) | |
tree | 64f5490e889ee03bc5901d8b5c8d1284a8635cfc /bfd/elf.c | |
parent | d69bb69b899a1412a6e0ff9726d71a54e8d45d0c (diff) | |
download | gdb-d3b05f8d41df1ab8d213622a3195e7116e06dcca.zip gdb-d3b05f8d41df1ab8d213622a3195e7116e06dcca.tar.gz gdb-d3b05f8d41df1ab8d213622a3195e7116e06dcca.tar.bz2 |
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.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -6001,6 +6001,7 @@ bfd_elf_sprintf_vma (abfd, buf, value) char *buf; bfd_vma value; { +#ifdef BFD64 Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */ i_ehdrp = elf_elfheader (abfd); @@ -6018,6 +6019,9 @@ bfd_elf_sprintf_vma (abfd, buf, value) else sprintf (buf, "%08lx", (unsigned long) (value & 0xffffffff)); } +#else + sprintf_vma (buf, value); +#endif } void @@ -6026,6 +6030,7 @@ bfd_elf_fprintf_vma (abfd, stream, value) PTR stream; bfd_vma value; { +#ifdef BFD64 Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */ i_ehdrp = elf_elfheader (abfd); @@ -6044,4 +6049,7 @@ bfd_elf_fprintf_vma (abfd, stream, value) fprintf ((FILE *) stream, "%08lx", (unsigned long) (value & 0xffffffff)); } +#else + fprintf_vma ((FILE *) stream, value); +#endif } |