Android NDK - Symbol __sfp and __sflag are not compatible with 64bit

106 Views Asked by At

Application is supporting to 32bit. Facing issue while migrating from 32bit (armeabi-v7a) to 64bit (arm64-v8a).

Issue - assertion "orig___sfp" failed

In project, using two symbol __sfp and __sflag. These are working fine with 32bit. These symbols are used in one functionality.

int flags, oflags;

if ((flags = orig___sflags(mode, &oflags)) == 0)
    return (NULL);

my_FILE *fp;
    if ((fp = (my_FILE *)orig___sfp()) == NULL)
        return (NULL);

These symbols are hidden, found in below links. https://android.googlesource.com/platform/bionic/+/50a7621b3fc493ffbb72aa23e29a4f1727dc1f51/libc/stdio/local.h https://android.googlesource.com/platform/bionic/+/a818445%5E%21/

Can anyone know, which symbols are replaced in these place? Which are compatible for 64bit?

0

There are 0 best solutions below