[PATCH][AArch64] Fix elf_greg_t on ILP32
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue Aug 29 15:01:00 GMT 2017
On 23/08/17 18:21, Szabolcs Nagy wrote:
> Use uint64_t instead of unsigned long.
>
> will commit it tomorrow if there are no objections.
>
> ChangleLog:
> 2017-08-23 Szabolcs Nagy <szabolcs.nagy@arm.com>
>
> * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
> Use uint64_t instead of unsigned long.
>
hm sys/procfs.h is included into signal.h
via sys/ucontext.h, where stdint.h should
not be exposed..
this does not happen in standards conforming
mode, but happens with _DEFAULT_SOURCE==1 so
it may cause problems.
i'm not sure if this is ok or better use
unsigned long long instead of uint64_t
(preferred uint64_t to avoid changing the
type on lp64)
More information about the Libc-alpha
mailing list