我最感興趣的是提取體系結構版本,例如v5,v5T等。我一直在引用Elf for the ARM Architecture Section 4.3.6 Build Attributes,這對於幫助我達到這一點很有幫助。我可以找到.ARM.attributes部分的開頭,並且可以解析信息的第一個關鍵部分:Format-version,Section-length和vendor-name + null字
https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Writable-and-Executable-Segments-Enforced-for-API-level-26 由於具有可寫段和可執行段,當前Android O Preview 4阻止某些本地庫的加載。
我想打包一個二進制文件以便與NixOS一起使用。爲了工作,我必須通過patchelf將解釋器更改爲鏈接到nix商店內的解釋器。到現在爲止還挺好。二進制也有共享庫,但我得到一個奇怪的錯誤消息,如果我使用其次patchelf的--set-rpath的選項:庫路徑拼接列表: ./result/bin/exe: ./result/bin/exe: no version information availa