dlfcn-util: migrate to public SD_ELF_NOTE_DLOPEN() API
Switch all internal callers from the private ELF_NOTE_DLOPEN() macro to the new public SD_ELF_NOTE_DLOPEN() API from sd-dlopen.h, and remove the now-redundant macro definitions from dlfcn-util.h. Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
committed by
Luca Boccassi
parent
e10302b6b6
commit
8b12350b75
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "sd-dlopen.h"
|
||||
#include "sd-json.h"
|
||||
|
||||
#include "alloc-util.h"
|
||||
@@ -270,9 +271,10 @@ int dlopen_cryptsetup(void) {
|
||||
* still available though, and given we want to support 2.2.0 for a while longer, we'll use the old
|
||||
* symbol if the new one is not available. */
|
||||
|
||||
ELF_NOTE_DLOPEN("cryptsetup",
|
||||
SD_ELF_NOTE_DLOPEN(
|
||||
"cryptsetup",
|
||||
"Support for disk encryption, integrity, and authentication",
|
||||
ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||
SD_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||
"libcryptsetup.so.12");
|
||||
|
||||
r = dlopen_many_sym_or_warn(
|
||||
|
||||
Reference in New Issue
Block a user