Skip to content

OpenBSD: Missing dlopen modes #5318

Description

@nphantasm

RTLD_NODELETE and RTLD_NOLOAD are not defined for OpenBSD, although they are supported in its libc.

  • RTLD_NODELETE documented in dlopen man page since OpenBSD 7.0
  • RTLD_NOLOAD documented in dlopen man page since OpenBSD 7.2

From 7.9 headers:

$ grep RTLD /usr/include/dlfcn.h  
#define RTLD_LAZY       1
#define RTLD_NOW        2
#define RTLD_GLOBAL     0x100
#define RTLD_LOCAL      0x000
#define RTLD_TRACE      0x200
#define RTLD_NODELETE   0x400
#define RTLD_NOLOAD     0x800
#define RTLD_NEXT       ((void *) -1)   /* Search subsequent objects. */
#define RTLD_DEFAULT    ((void *) -2)   /* Use default search algorithm. */
#define RTLD_SELF       ((void *) -3)   /* Search the caller itself. */
#define DL_LAZY         RTLD_LAZY       /* Compat */

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-API-requestCategory: API requestE-help-wantedCall for participation: Help is requested to fix this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions