projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6b95c
)
elf: Add dummy declaration of _dl_audit_objclose for !SHARED
author
Florian Weimer
<fweimer@redhat.com>
Tue, 26 Sep 2023 09:40:12 +0000
(11:40 +0200)
committer
Florian Weimer
<fweimer@redhat.com>
Tue, 26 Sep 2023 09:40:12 +0000
(11:40 +0200)
This allows us to avoid some #ifdef SHARED conditionals.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/generic/ldsodefs.h
patch
|
blob
|
history
diff --git
a/sysdeps/generic/ldsodefs.h
b/sysdeps/generic/ldsodefs.h
index
edebca9
..
82c5383
100644
(file)
--- a/
sysdeps/generic/ldsodefs.h
+++ b/
sysdeps/generic/ldsodefs.h
@@
-1383,7
+1383,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.