64 bits in 64-cross-32 environment.
+2013-05-31 Doug Evans <dje@google.com>
+
+ * linux-x86-low.c (ps_get_thread_area): Properly extend address to
+ 64 bits in 64-cross-32 environment.
+
2013-05-28 Pedro Alves <palves@redhat.com>
* Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
(void *) (intptr_t) idx, (unsigned long) &desc) < 0)
return PS_ERR;
- *(int *)base = desc[1];
+ /* Ensure we properly extend the value to 64-bits for x86_64. */
+ *base = (void *) (uintptr_t) desc[1];
return PS_OK;
}
}