This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Adjust _Unwind_Word in unwind.h to version in libgcc.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]