Conversation

Show replies
Firefox also has a custom linker using this. On Android, the traditional officially supported approach to native libraries has them stored compressed in the apk and automatically extracted by the package manager to a library directory not writable by the application.
1
2
The more modern officially supported approach leaves them uncompressed in the apk (which only impacts installed size, since apk downloads should be compressed due to this approach for various kinds of resources, etc.) and aligned to page size. The linker knows how to map those.
1
Show replies
The other common use case is optimizing code size for NullPointerExceptions in managed languages: instead of littering every object access with a check and branch, just blindly dereference and fix things up in the signal handler.
1
2
Show replies