Skip to main content

dlopen_note

Macro dlopen_note 

Source
dlopen_note!() { /* proc-macro */ }
Expand description

Creates a .note.dlopen section.

§Example

dlopen_note! {
    soname: ["libvulkan.so.1"],
    feature: "vulkan",
    description: "required for the vulkan renderer",
    priority: "recommended",
}

§Syntax

The fields and their meaning are specified at uapi-group.org.

In short:

  • The supported fields are the ones that appear in the example above.
  • The soname field is required and must have at least one element.
  • The strings must not contain any control characters.
  • The priority must be required, recommended, or suggested.