diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-09-26 11:40:12 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-09-26 11:40:12 +0200 |
commit | f563971b5bf7191acfdd5702fe00878752c2056d (patch) | |
tree | 7dd5e7e4baa2596afe2b447b3f6a83256dfc54be /sysdeps/generic | |
parent | ec6b95c3303c700eb89eebeda2d7264cc184a796 (diff) | |
download | glibc-f563971b5bf7191acfdd5702fe00878752c2056d.tar.gz glibc-f563971b5bf7191acfdd5702fe00878752c2056d.tar.xz glibc-f563971b5bf7191acfdd5702fe00878752c2056d.zip |
elf: Add dummy declaration of _dl_audit_objclose for !SHARED
This allows us to avoid some #ifdef SHARED conditionals. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index edebca9a23..82c5383c7e 100644 --- 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. |