Blob Blame History Raw
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Sep 19 10:44:15 2023 +0200

    elf: Add dummy declaration of _dl_audit_objclose for !SHARED
    
    This allows us to avoid some #ifdef SHARED conditionals.

diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 36055ad251e5be1c..c718e17ae5420aa5 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -1397,7 +1397,14 @@ void DL_ARCH_FIXUP_ATTRIBUTE _dl_audit_pltexit (struct link_map *l,
 						const void *inregs,
 						void *outregs)
   attribute_hidden;
-#endif /* SHARED */
+
+#else  /* !SHARED */
+static inline void
+_dl_audit_objclose (struct link_map *l)
+{
+  /* No audit implementation for !SHARED.  */
+}
+#endif /* !SHARED */
 
 #if PTHREAD_IN_LIBC && defined SHARED
 /* Recursive locking implementation for use within the dynamic loader.