diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-30 15:51:31 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-12-28 08:40:38 -0300 |
commit | d1b38173c9255b1a4ae00018ad9b35404a7c74d0 (patch) | |
tree | 39e6803eb513b9a0dc858028f6ceb16323157f00 /elf/Makefile | |
parent | 063f9ba220f434c7f30dd65c4cff17c0c458a7cf (diff) | |
download | glibc-d1b38173c9255b1a4ae00018ad9b35404a7c74d0.zip glibc-d1b38173c9255b1a4ae00018ad9b35404a7c74d0.tar.gz glibc-d1b38173c9255b1a4ae00018ad9b35404a7c74d0.tar.bz2 |
elf: Add audit tests for modules with TLSDESC
Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index 6368b6a..7fcb9c9 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -394,6 +394,22 @@ modules-names += tst-gnu2-tls1mod $(objpfx)tst-gnu2-tls1: $(objpfx)tst-gnu2-tls1mod.so tst-gnu2-tls1mod.so-no-z-defs = yes CFLAGS-tst-gnu2-tls1mod.c += -mtls-dialect=gnu2 + +tests += tst-audit-tlsdesc tst-audit-tlsdesc-dlopen +modules-names += tst-audit-tlsdesc-mod1 tst-audit-tlsdesc-mod2 tst-auditmod-tlsdesc +$(objpfx)tst-audit-tlsdesc: $(objpfx)tst-audit-tlsdesc-mod1.so \ + $(objpfx)tst-audit-tlsdesc-mod2.so \ + $(shared-thread-library) +CFLAGS-tst-audit-tlsdesc-mod1.c += -mtls-dialect=gnu2 +CFLAGS-tst-audit-tlsdesc-mod2.c += -mtls-dialect=gnu2 +$(objpfx)tst-audit-tlsdesc-dlopen: $(shared-thread-library) +$(objpfx)tst-audit-tlsdesc-dlopen.out: $(objpfx)tst-audit-tlsdesc-mod1.so \ + $(objpfx)tst-audit-tlsdesc-mod2.so +$(objpfx)tst-audit-tlsdesc-mod1.so: $(objpfx)tst-audit-tlsdesc-mod2.so +$(objpfx)tst-audit-tlsdesc.out: $(objpfx)tst-auditmod-tlsdesc.so +tst-audit-tlsdesc-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so +$(objpfx)tst-audit-tlsdesc-dlopen.out: $(objpfx)tst-auditmod-tlsdesc.so +tst-audit-tlsdesc-dlopen-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so endif ifeq (yes,$(have-protected-data)) modules-names += tst-protected1moda tst-protected1modb |