Upravit

Sdílet prostřednictvím


Dlfcn.RTLD Enum

Definition

Dynamic loader resolution flags.

public enum Dlfcn.RTLD
type Dlfcn.RTLD = 
Inheritance
Dlfcn.RTLD

Fields

Name Value Description
MainOnly -5

Only searches for symbol in the main executable.

Self -3

Search for the symbol starts with the image that called dlsym. If it is not found, the search continues as if Next was used.

Default -2

Searches all Mach-O images in the process (except those loaded with dlopen(xxx, RTLD_LOCAL)) in the order they were loaded. This can be a costly search and should be avoided.

Next -1

The dynamic linker searches for the symbol in the dylibs the calling image linked against when built. It is usually used when you intentionally have multiply defined symbol across images and want to find the "next" definition.

Remarks

These flags are used to control the way the dynamic linker looks up symbols at runtime.

Applies to