[PATCH][AArch64][BZ 18400] fix elf_prpsinfo in procfs.h
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue May 12 11:06:00 GMT 2015
On 12/05/15 10:49, Andreas Schwab wrote:
> Szabolcs Nagy <szabolcs.nagy@arm.com> writes:
>
>> Kernel uses int pr_uid, pr_gid, but glibc used unsigned short.
>>
>> This is an ABI breaking change so I created a bugzilla ticket,
>> but I guess glibc elf_prpsinfo is not widely used if this
>> haven't come up yet.
>
> Can you find out where the struct is actually been used?
>
it should be used by things that look at elf core dumps, but
i cannot find any use of the glibc struct
binutils relies on the struct layout:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=bfd/elfxx-aarch64.c;h=db9d4fa01924342cbc110877d1ac06c7a389debc;hb=HEAD#l526
note that those parts are not changed here
(the struct is 8 byte aligned so 2*short -> 2*int
does not change the layout for other members)
i've seen various packages defining their own prpsinfo
struct (uclibc, bionic, musl, google-breakpad, valgrind,
binutils, qemu) and some using the kernel definition
(undertaker).
some of the definitions are broken on various platforms
(i haven't seen the pr_uid/pr_gid fields used).
More information about the Libc-alpha
mailing list