about summary refs log tree commit diff
path: root/sysdeps/x86_64/tst-auditmod10b.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-07 06:09:29 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-07-07 06:09:29 -0700
commit9aec6d2a2f2388b08db6af7c2369d8e694d82c9a (patch)
tree8463b10adcf3c91b06a275c78fc4c462e45fe037 /sysdeps/x86_64/tst-auditmod10b.c
parentddd85a65b6e3d6ec1e756c1f78559f99a2c943ca (diff)
downloadglibc-9aec6d2a2f2388b08db6af7c2369d8e694d82c9a.tar.gz
glibc-9aec6d2a2f2388b08db6af7c2369d8e694d82c9a.tar.xz
glibc-9aec6d2a2f2388b08db6af7c2369d8e694d82c9a.zip
Add la_symbind32 to x86-64 audit tests
la_symbind32 is used for x32 in x86-64 audit tests.  We should define
both la_symbind32 and la_symbind64 in x86-64 audit tests.

	* sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
	* sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
	* sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
	* sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
	* sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
	* sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
Diffstat (limited to 'sysdeps/x86_64/tst-auditmod10b.c')
-rw-r--r--sysdeps/x86_64/tst-auditmod10b.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/x86_64/tst-auditmod10b.c b/sysdeps/x86_64/tst-auditmod10b.c
index 9bb6127b81..0eb36747d2 100644
--- a/sysdeps/x86_64/tst-auditmod10b.c
+++ b/sysdeps/x86_64/tst-auditmod10b.c
@@ -102,6 +102,16 @@ la_objclose  (uintptr_t *cookie)
 }
 
 uintptr_t
+la_symbind32 (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook,
+	      uintptr_t *defcook, unsigned int *flags, const char *symname)
+{
+  printf ("symbind32: symname=%s, st_value=%#lx, ndx=%u, flags=%u\n",
+	  symname, (long int) sym->st_value, ndx, *flags);
+
+  return sym->st_value;
+}
+
+uintptr_t
 la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
 	      uintptr_t *defcook, unsigned int *flags, const char *symname)
 {