|
|
Subscribe / Log in / New account

Re: [PATCH v2 3/6] Add getauxval.

From:  Richard Henderson <rth-AT-twiddle.net>
To:  David Miller <davem-AT-davemloft.net>
Subject:  Re: [PATCH v2 3/6] Add getauxval.
Date:  Sun, 18 Mar 2012 08:38:34 -0700
Message-ID:  <4F66017A.3080702@twiddle.net>
Cc:  libc-alpha-AT-sourceware.org

On 03/18/2012 08:33 AM, David Miller wrote:
> From: Richard Henderson <rth@twiddle.net>
> Date: Sun, 18 Mar 2012 08:23:49 -0700
> 
>> On 03/17/2012 03:43 PM, David Miller wrote:
>>> From: Richard Henderson <rth@twiddle.net>
>>> Date: Sat, 17 Mar 2012 10:06:32 -0700
>>>
>>>> 	* misc/getauxval.c: New file.
>>>> 	* misc/Makefile (routines): Add it.
>>>> 	* misc/Versions (GLIBC_2.16): Export it.
>>>> 	* misc/sysv/auxv.h (getauxval): Declare.
>>>> 	* elf/dl-support.c (_dl_auxv): New variable.
>>>> 	(_dl_aux_init): Initialize it.
>>>
>>> If you provide this then you could use only getauxval() in libgcc
>>> and therefore have code that works on Solaris too.
>>
>> Works with the non-existant Solaris ifunc's?
> 
> Good point :-)

I think the best reason to provide getauxval too is for future
enhancements to the AT_ values, especially target-specific ones.


r~




to post comments


Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds