Skip to content

Rebuild build/link system to avoid RTLD_GLOBAL #8

@mikeboers

Description

@mikeboers

Currently, LibTomCrypt is compiled into tomcrypt/_core.so. In order for those functions to be accessible to the other Cython modules, we force the .so to be loaded in RTLD_GLOBAL mode.

Unfortunately, this pollutes the global namespace.

Potential options are:

  • compile LibTomCrypt into its own _tomcrypt.so, which is still loaded with RTLD_GLOBAL, hoping to polute less;
  • rebuild everything using ctypes;
  • merge everything into a single tomcrypt.so which is all Cython;
  • wrap every C function in a Cython function so it can be exported via the Cython capi;
  • hack every C function into the Cython capi export table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions