From 8c0664e2b861fd3789602cc0b0b1922b0e20cb3a Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 22 Jul 2021 18:02:42 -0300 Subject: elf: Add _dl_audit_pltexit It consolidates the code required to call la_pltexit audit callback. Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu. Reviewed-by: Florian Weimer --- sysdeps/generic/ldsodefs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdeps/generic/ldsodefs.h') diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index cf9f58d6f5..d0004a3111 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -1438,6 +1439,11 @@ void _dl_audit_pltenter (struct link_map *l, struct reloc_result *reloc_result, DL_FIXUP_VALUE_TYPE *value, void *regs, long int *framesize) attribute_hidden; +void DL_ARCH_FIXUP_ATTRIBUTE _dl_audit_pltexit (struct link_map *l, + ElfW(Word) reloc_arg, + const void *inregs, + void *outregs) + attribute_hidden; #endif /* SHARED */ #if PTHREAD_IN_LIBC && defined SHARED -- cgit 1.4.1