[PATCH] Adjust _Unwind_Word in unwind.h to version in libgcc.
Stefan Liebler
stli@linux.vnet.ibm.com
Tue Jul 28 13:32:00 GMT 2015
On 07/28/2015 10:05 AM, Andreas Schwab wrote:
> I see three uses of _Unwind_Word as a pointer: in
> sysdeps/generic/unwind-dw2.c _Unwind_GetGR and _Unwind_SetGR and in
> sysdeps/generic/unwind-pe.h read_uleb128. Is the new definition correct
> for them?
>
> Andreas.
>
sysdeps/generic/unwind-pe.h read_uleb128:
_Unwind_Word has now a size of 4bytes on s390-32 (esa or zarch mode),
which can store a pointer, which has 4bytes on s390-32 (esa or zarch
mode). On s390-64 both _Unwind_Word and a pointer have a size of 8 bytes.
sysdeps/generic/unwind-dw2.c _Unwind_GetGR and _Unwind_SetGR:
Here the 4 bytes on s390-32 (esa or zarch mode) is correct, too.
Without this patch, 8 bytes would be dereferenced on s390-32
(zarch-mode), which is incorrect.
For s390-64, 8 bytes is correct.
More information about the Libc-alpha
mailing list