diff --git a/src/shared/elf-util.c b/src/shared/elf-util.c index 104a35cc77..4d93e7eaba 100644 --- a/src/shared/elf-util.c +++ b/src/shared/elf-util.c @@ -685,6 +685,8 @@ int parse_elf_object(int fd, const char *executable, bool fork_disable_dump, cha _cleanup_free_ char *buf = NULL; int r; + assert(fd >= 0); + r = dlopen_dw(); if (r < 0) return r;