From 829a679fac1fe173e81cb2c08204d2da86cf3f3a Mon Sep 17 00:00:00 2001 From: Andrew Senkevich Date: Mon, 25 May 2015 21:20:20 +0300 Subject: Localplt testing for vector math library and libmvec_hidden_* macro series. * elf/Makefile (localplt-built-dso): libmvec added to localplt test. * include/libc-symbols.h: libmvec_hidden_* macro series added. --- ChangeLog | 5 +++++ elf/Makefile | 3 +++ include/libc-symbols.h | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4e289a0345..d7ad59f675 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-05-25 Andrew Senkevich + + * elf/Makefile (localplt-built-dso): libmvec added to localplt test. + * include/libc-symbols.h: libmvec_hidden_* macro series added. + 2015-05-22 H.J. Lu [BZ #18410] diff --git a/elf/Makefile b/elf/Makefile index 34450eaa5b..b06e0a7ed2 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -990,6 +990,9 @@ localplt-built-dso := $(addprefix $(common-objpfx),\ resolv/libresolv.so \ crypt/libcrypt.so \ ) +ifeq ($(build-mathvec),yes) +localplt-built-dso += $(addprefix $(common-objpfx), mathvec/libmvec.so) +endif ifeq ($(have-thread-library),yes) localplt-built-dso += $(filter-out %_nonshared.a, $(shared-thread-library)) endif diff --git a/include/libc-symbols.h b/include/libc-symbols.h index ca3fe00c88..743b6f6f5b 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -546,6 +546,26 @@ for linking") # define libm_hidden_data_ver(local, name) #endif +#if IS_IN (libmvec) +# define libmvec_hidden_proto(name, attrs...) hidden_proto (name, ##attrs) +# define libmvec_hidden_tls_proto(name, attrs...) hidden_tls_proto (name, ##attrs) +# define libmvec_hidden_def(name) hidden_def (name) +# define libmvec_hidden_weak(name) hidden_weak (name) +# define libmvec_hidden_ver(local, name) hidden_ver (local, name) +# define libmvec_hidden_data_def(name) hidden_data_def (name) +# define libmvec_hidden_data_weak(name) hidden_data_weak (name) +# define libmvec_hidden_data_ver(local, name) hidden_data_ver (local, name) +#else +# define libmvec_hidden_proto(name, attrs...) +# define libmvec_hidden_tls_proto(name, attrs...) +# define libmvec_hidden_def(name) +# define libmvec_hidden_weak(name) +# define libmvec_hidden_ver(local, name) +# define libmvec_hidden_data_def(name) +# define libmvec_hidden_data_weak(name) +# define libmvec_hidden_data_ver(local, name) +#endif + #if IS_IN (libresolv) # define libresolv_hidden_proto(name, attrs...) hidden_proto (name, ##attrs) # define libresolv_hidden_tls_proto(name, attrs...) \ -- cgit v1.2.3