]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add la_symbind32 to x86-64 audit tests
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 7 Jul 2015 13:09:29 +0000 (06:09 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 7 Jul 2015 13:09:29 +0000 (06:09 -0700)
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.

ChangeLog
sysdeps/x86_64/tst-auditmod10b.c
sysdeps/x86_64/tst-auditmod4b.c
sysdeps/x86_64/tst-auditmod5b.c
sysdeps/x86_64/tst-auditmod6b.c
sysdeps/x86_64/tst-auditmod6c.c
sysdeps/x86_64/tst-auditmod7b.c

index 35347e2320464732dbd6725371b3572bb2b3ab40..e00fd0d533b072ce4445fa6698cf488420f23e12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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.
+
 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
index 9bb6127b81fad63598ad97daa8e059a943d18662..0eb36747d27273368b05347e1839f70ec7b4b492 100644 (file)
@@ -101,6 +101,16 @@ la_objclose  (uintptr_t *cookie)
   return 0;
 }
 
+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)
index 80aaedcd3e2da4e43d8756a7122fb214764f926d..2b0d827e88bfb0f7157645b209dbf7041de79f91 100644 (file)
@@ -84,6 +84,16 @@ la_objclose  (uintptr_t *cookie)
   return 0;
 }
 
+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)
index 576183d7226dbd72f7698b5991a84ee41a597fdf..a74d261f03bd49cc4450f9887723b564c2ccb86a 100644 (file)
@@ -85,6 +85,16 @@ la_objclose  (uintptr_t *cookie)
   return 0;
 }
 
+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)
index b1c155a26e8fa9d67471026709ebadc2e0b191bd..886fc33e9bd1c8184fc2c384a9ab7a6a089817ba 100644 (file)
@@ -84,6 +84,16 @@ la_objclose  (uintptr_t *cookie)
   return 0;
 }
 
+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)
index 88adb21aa141b5b30b8437d96062366c2812ecca..b2ee24d8bf38e3b04af82371cb12177767ad8a09 100644 (file)
@@ -84,6 +84,16 @@ la_objclose  (uintptr_t *cookie)
   return 0;
 }
 
+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)
index 68052efe9717bfaf289054b53c31c6cc17d5f62e..f27076d3bb3c41ea21148f39dbecd22b9a280ef2 100644 (file)
@@ -84,6 +84,16 @@ la_objclose  (uintptr_t *cookie)
   return 0;
 }
 
+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)