Skip to content

__gmp_modlimb_invert_table can not be used when making a shared object #286

@madebr

Description

@madebr

Building a shared z3 library with mpir as a replacement for gmp fails because __gmp_modlimb_invert_table does not support relocation.

The link error is:

/usr/bin/ld: /home/maarten/.conan/data/mpir/3.0.0/_/_/package/b911f48570f9bb2902d9e83b2b9ebf9d376c8c56/lib/libgmp.a(modexact_1c_odd.o): relocation R_X86_64_PC32 against symbol `__gmp_modlimb_invert_table' can not be used when making a shared object; recompile with -fPIC

Reference to the source:
https://github.com/wbhart/mpir/blob/master/mpn/x86_64/modexact_1c_odd.as#L58-L88

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