Skip to content

Static Link #7

@qbacpey

Description

@qbacpey

Now all the tracing (except for MPI) support only LD_PRELOAD base usage. If you want to add static linkage support, can refer to the TMIO/include/tmio_helper_functions.h for further information.

This feature require the support of the --wrap feature of GNU linker. For example, if you want to intercept the write function, you need to define the TMIO_STATIC_WRAP when complie, and add --warp=write flag when link. So that GNU linker would make sure all call to write become __wrap_write, make sure the TMIO intercept function is called.

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