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]

[PATCH v2 0/6] Export AT_HWCAP from libc.


Version 2.

  * Renamed <sys/hwcap.h> to <sys/auxv.h>
  * Renamed __libc_hwcap to gethwcap.
  * Added getauxval.

The type we save for gethwcap is larger than the type we
received in ElfW(auxv_t); I'd like to return all of it to
allow libc to massage the value if desired, so I've kept
the separate accessor function.


r~


Richard Henderson (6):
  Add <sys/auxv.h> and gethwcap function.
  Move _dl_auxv to rtld_global_ro.
  Add getauxval.
  s390: Add <bits/hwcap.h>.
  sparc: Add <bits/hwcap.h>
  powerpc: Add <bits/hwcap.h>

 elf/dl-support.c                          |    2 +
 elf/dl-sysdep.c                           |    9 ++---
 misc/Makefile                             |    4 +-
 misc/Versions                             |    4 ++
 misc/getauxval.c                          |   33 ++++++++++++++++++
 misc/gethwcap.c                           |   28 +++++++++++++++
 misc/sys/auxv.h                           |   32 +++++++++++++++++
 sysdeps/generic/bits/hwcap.h              |   23 ++++++++++++
 sysdeps/generic/ldsodefs.h                |    2 +
 sysdeps/powerpc/bits/hwcap.h              |   53 +++++++++++++++++++++++++++++
 sysdeps/powerpc/sysdep.h                  |   29 ++--------------
 sysdeps/sparc/bits/hwcap.h                |   47 +++++++++++++++++++++++++
 sysdeps/sparc/sysdep.h                    |   29 +---------------
 sysdeps/unix/sysv/linux/s390/bits/hwcap.h |   36 +++++++++++++++++++
 14 files changed, 271 insertions(+), 60 deletions(-)
 create mode 100644 misc/getauxval.c
 create mode 100644 misc/gethwcap.c
 create mode 100644 misc/sys/auxv.h
 create mode 100644 sysdeps/generic/bits/hwcap.h
 create mode 100644 sysdeps/powerpc/bits/hwcap.h
 create mode 100644 sysdeps/sparc/bits/hwcap.h
 create mode 100644 sysdeps/unix/sysv/linux/s390/bits/hwcap.h

-- 
1.7.7.6


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