From fa9fef1f9b683582892fe39c4d8cd7b164b3388d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 7 Jul 2015 05:09:16 -0700 Subject: Add a testcase for i386 LD_AUDIT This patch adds a testcase for i386 LD_AUDIT to check function return and parameters passed in registers. * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3. (modules-names): Add tst-auditmod3a tst-auditmod3b. ($(objpfx)tst-audit3): New rule. ($(objpfx)tst-audit3.out): Likewise. * sysdeps/i386/tst-audit3.c: New file. * sysdeps/i386/tst-audit3.h: Likewise. * sysdeps/i386/tst-auditmod3a.c: Likewise. * sysdeps/i386/tst-auditmod3b.c: Likewise. --- sysdeps/i386/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sysdeps/i386/Makefile') diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile index c8af591d27..910edff0b2 100644 --- a/sysdeps/i386/Makefile +++ b/sysdeps/i386/Makefile @@ -66,6 +66,13 @@ endif ifeq ($(subdir),elf) sysdep-dl-routines += tlsdesc dl-tlsdesc + +tests += tst-audit3 +modules-names += tst-auditmod3a tst-auditmod3b + +$(objpfx)tst-audit3: $(objpfx)tst-auditmod3a.so +$(objpfx)tst-audit3.out: $(objpfx)tst-auditmod3b.so +tst-audit3-ENV = LD_AUDIT=$(objpfx)tst-auditmod3b.so endif ifeq ($(subdir),csu) -- cgit v1.2.1