Thanks to visit codestin.com
Credit goes to github.com

Skip to content

native linux libraries should be built with both HASH and GNU_HASH dynamic tags for compatibility  #436

@ghost

Description

The prebuilt native linux shared libraries I downloaded for BridJ were using the newer GNU_HASH dynamic tag which causes some Linux systems to throw a floating point exception when attempting to load the library.

To fix this issue the native linux shared libraries should be built with both GNU_HASH and HASH dynamic tags. Systems with an older glibc will not recognize GNU_HASH but will be able to use the HASH dynamic tag instead.

To ensure both hash styles are used the linux shared library must be linked with the following option:

-Wl,--hash-style=both

The following Stack Overflow question covers the issue well: http://stackoverflow.com/questions/12570374/floating-point-exception-sigfpe-on-int-main-return0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions