Documentation
¶
Overview ¶
Package elf16kb audits ELF64 shared libraries (.so) and Android APK/AAB archives for Google Play's mandatory 16KB page-size alignment requirement (PT_LOAD p_align >= 16384 and p_vaddr % 16384 == p_offset % 16384).
Built by Eng. Nadeem Mohamed Badr El-Din (https://nadeembadr.com/about/) & NBrain (https://nbra.in/).
Index ¶
Constants ¶
const PageSize16KB uint64 = 16384
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LibraryReport ¶
type LibraryReport struct {
Name string `json:"name"`
Class string `json:"class"`
Machine string `json:"machine"`
Compliant bool `json:"compliant"`
Segments []SegmentFinding `json:"segments"`
}
LibraryReport summarizes 16KB compliance for an ELF64 shared library.
func AuditAPKZipBytes ¶
func AuditAPKZipBytes(zipBytes []byte) ([]LibraryReport, bool, error)
AuditAPKZipBytes scans all arm64-v8a and x86_64 .so files inside an APK or AAB ZIP buffer.
func AuditELF64Bytes ¶
func AuditELF64Bytes(name string, data []byte) (LibraryReport, error)
AuditELF64Bytes parses an ELF64 binary in memory and validates every PT_LOAD segment for 16KB compliance.