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][AArch64][BZ 18400] fix elf_prpsinfo in procfs.h



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).


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