This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][AArch64][BZ 18400] fix elf_prpsinfo in procfs.h
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Tue, 12 May 2015 12:06:27 +0100
- Subject: Re: [PATCH][AArch64][BZ 18400] fix elf_prpsinfo in procfs.h
- Authentication-results: sourceware.org; auth=none
- References: <5551BE4D dot 4060308 at arm dot com> <mvmd226nn0f dot fsf at hawking dot suse dot de>
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).