PATCH: Fix readelf unwind dump for 32bit host
H. J. Lu
hjl@lucon.org
Fri May 13 19:45:00 GMT 2005
stamp is 8 byte. BYTE_GET will pass the size of pointer to byte_get.
It only works on 64bit hosts. I will check it in shortly.
H.J.
----
2005-05-13 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (dump_ia64_unwind): Get stamp with proper size.
--- binutils/readelf.c.foo 2005-05-13 10:47:56.000000000 -0700
+++ binutils/readelf.c 2005-05-13 11:23:05.000000000 -0700
@@ -4518,7 +4518,7 @@ dump_ia64_unwind (struct ia64_unw_aux_in
(unsigned long) (tp->info.offset - aux->seg_base));
head = aux->info + (tp->info.offset - aux->info_addr);
- stamp = BYTE_GET ((unsigned char *) head);
+ stamp = byte_get ((unsigned char *) head, sizeof (stamp));
printf (" v%u, flags=0x%lx (%s%s), len=%lu bytes\n",
(unsigned) UNW_VER (stamp),
More information about the Binutils
mailing list