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: [PATCHv3] powerpc: ABI change - add HWCAP/HWCAP2/platform info to TCB


Thanks for the review. Answers below:

> On Oct 7, 2015, at 10:56 PM, Carlos O'Donell <carlos@redhat.com> wrote:
> 
> (a) Reference to GLIBC_2.23 in ppc.h functions?

A dummy call should be harmless at that point. What do you think? If you have a better idea, please let me know.

> 
> (b) Definition of _dl_powerpc_platforms in test program.
> 
> This is an indication that something is wrong. No user code should ever
> need to define a _dl_* data symbol. Everything should just work for -static
> and -shared, otherwise you have something wrong and still need to fix it.
> 
> Why is this definition needed?

In order to test this new feature, I get the data I need from the auxiliary vector via getauxval(). For AT_PLATFORM, we do not store the platform string in the TCB, but the platform number (which is generated by _dl_string_platform() in the __parse* function). So, in order to get this number from getauxval(), I need to call _dl_string_platform() again, and that depends on _dl_powerpc_platform.

Do you have a better idea that doesn’t end up duplicating more code? This is my least favorite part of this patch, to be honest. So any suggestion to get rid of that is welcome.

> 
> (c) Avoid custom dl-support.c
> 
> Are you sure you can't avoid this? Can we add AT_PLATFORM directly to the
> case statement used in _dl_aux_init?

I suppose we could. I’ll see if that doesn’t break anything.

> 
> (c) libc-start.c handling of AT_*
> 
> This seems like your double processing these entries here and in _dl_aux_init?
> Could you please verify this?

OK. If that works, I’ll also spin a patch to cleanup AT_DCACHEBSIZE later.

> 
> (d) Nit-pics about FAIL/PASS
> 
> See POSIX compliant testing notes from DejaGNU.

Will do.

Regards,

-- 
Carlos Eduardo Seo
Software Engineer - Linux on Power Toolchain
cseo@linux.vnet.ibm.com


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