diff options
author | Nick Clifton <nickc@redhat.com> | 1999-12-10 18:32:57 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-12-10 18:32:57 +0000 |
commit | 2f5288870a7b5ac5e892a64bab8fe83452dc162e (patch) | |
tree | 11aeb55f51eaec7bcf67b7c076718b28b818ec89 /binutils | |
parent | ad247e3c7de719151c02516afc9c682a32a181cc (diff) | |
download | gdb-2f5288870a7b5ac5e892a64bab8fe83452dc162e.zip gdb-2f5288870a7b5ac5e892a64bab8fe83452dc162e.tar.gz gdb-2f5288870a7b5ac5e892a64bab8fe83452dc162e.tar.bz2 |
Fix support for native 64bit ELF systems
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 39806f5..07548ef 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +1999-12-10 Nick Clifton <nickc@cygnus.com> + + * readelf.c (print_vma): Support native 64bit ELF systems. + 1999-12-09 Nick Clifton <nickc@cygnus.com> * dlltool.c (mtable): Add epoc-arm specific entry. diff --git a/binutils/readelf.c b/binutils/readelf.c index 637cdcb..a2b5bcf 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -442,27 +442,39 @@ print_vma (vma, mode) break; case DEC: +#if BFD_HOST_64BIT_LONG + printf ("%ld", vma); +#else if (_bfd_int64_high (vma)) /* ugg */ printf ("++%ld", _bfd_int64_low (vma)); else printf ("%ld", _bfd_int64_low (vma)); +#endif break; case DEC_5: +#if BFD_HOST_64BIT_LONG + printf ("%5ld", vma); +#else if (_bfd_int64_high (vma)) /* ugg */ printf ("++%ld", _bfd_int64_low (vma)); else printf ("%5ld", _bfd_int64_low (vma)); +#endif break; case UNSIGNED: +#if BFD_HOST_64BIT_LONG + printf ("%lu", vma); +#else if (_bfd_int64_high (vma)) /* ugg */ printf ("++%lu", _bfd_int64_low (vma)); else printf ("%lu", _bfd_int64_low (vma)); +#endif break; } } |