When attempting to compile and run binaries using recent versions of the gold linker on AArch64 on a kernel with a 64k page granule, we observe translation faults before the programs reach main(). When these same binaries are run on a kernel with a 4k page granule, they run successfully to completion. We observe that adding '-z max-page-size=0x10000' to our linker flags allows them to run successfully even on a 64k page kernel. We have also observed the following error when loading shared objects at runtime on a 64k-page kernel, and suspect it is due to the same issue:
ELF load command alignment not page-aligned Can gold's max page size for AArch64 be updated to 64k to match current kernel capabilities? Thanks, Chad
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils