Easier to maintain than a linker script. We build everything with visibility hidden by default.
Move registerNatives() call to a separate file to make jni.cpp less dependent on native headers.