GMP Shared Libraries include Text Relocations for some Architectures
Mike Mohr
akihana at gmail.com
Sat May 20 04:56:17 UTC 2017
The original issue was discovered in the Android build of GMP 6.1.2 I host
on Github. It might be a bug in the GMP assembly files, or it could be a
compiler / toolchain bug. I don't modify the GMP source code, other than
to add a missing closing parentheses in one of the assembly files (here
<https://github.com/Rupan/gmp/blob/master/build/gmp_add_missing_paren.patch>
).
I've just rebuilt the ARM shared objects using the latest compiler
toolchains from Google, re-targeting against API level 24 (previously the
libraries were built against API levels 19 for armeabi and 21 for
aarch64). Hopefully this will resolve the text relocations. If not,
perhaps Michael can provide additional details - debugging symbols are
included with the binary releases, so hopefully tracking down the problem
source file shouldn't be difficult.
On Fri, May 19, 2017 at 11:18 AM, Torbjörn Granlund <tg at gmplib.org> wrote:
> Michael Arpin <marpin at unicoi.com> writes:
>
> If this is deemed a "bug" also, I will submit it as such. I'm not too
> familiar with the GMP library myself so I wanted to make sure it was
> actually a bug before submitting it as one.
>
> The GMP assembly code is not oblivious to this issue, and if
> text relocations are left in a shared build, then that is a bug.
>
> Our automated nightly build check for this on almost all platforms since
> may years. Therefore, it surprises me if a textrel has slipped through.
>
> --
> Torbjörn
> Please encrypt, key id 0xC8601622
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>
More information about the gmp-discuss
mailing list