From 73fc4e28b9464f0e13edc719a5372839970e7ddb Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 28 Feb 2022 11:50:41 +0100 Subject: Linux: Consolidate auxiliary vector parsing (redo) And optimize it slightly. This is commit 8c8510ab2790039e58995ef3a22309582413d3ff revised. In _dl_aux_init in elf/dl-support.c, use an explicit loop and -fno-tree-loop-distribute-patterns to avoid memset. Reviewed-by: Szabolcs Nagy --- sysdeps/unix/sysv/linux/powerpc/dl-auxv.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'sysdeps/unix/sysv/linux/powerpc/dl-auxv.h') diff --git a/sysdeps/unix/sysv/linux/powerpc/dl-auxv.h b/sysdeps/unix/sysv/linux/powerpc/dl-auxv.h index 594371940a..ce2281cf11 100644 --- a/sysdeps/unix/sysv/linux/powerpc/dl-auxv.h +++ b/sysdeps/unix/sysv/linux/powerpc/dl-auxv.h @@ -16,15 +16,5 @@ License along with the GNU C Library; if not, see . */ -#include - -#if IS_IN (libc) && !defined SHARED -int GLRO(dl_cache_line_size); -#endif - -/* Scan the Aux Vector for the "Data Cache Block Size" entry and assign it - to dl_cache_line_size. */ -#define DL_PLATFORM_AUXV \ - case AT_DCACHEBSIZE: \ - GLRO(dl_cache_line_size) = av->a_un.a_val; \ - break; +#define DL_PLATFORM_AUXV \ + GLRO(dl_cache_line_size) = auxv_values[AT_DCACHEBSIZE]; -- cgit 1.4.1