public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Fix readelf unwind dump for 32bit host
@ 2005-05-13 19:45 H. J. Lu
  0 siblings, 0 replies; only message in thread
From: H. J. Lu @ 2005-05-13 19:45 UTC (permalink / raw)
  To: binutils

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),

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-13 18:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13 19:45 PATCH: Fix readelf unwind dump for 32bit host H. J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).