armhf-64k-alignment
authorMatthias Klose <doko@debian.org>
Mon, 3 Mar 2025 21:01:22 +0000 (22:01 +0100)
committerMatthias Klose <doko@debian.org>
Mon, 3 Mar 2025 21:01:22 +0000 (22:01 +0100)
commit33105e9346b190d75d229808bfa00cdf3860aab6
treeb126e2c77577c2e0a6b0cc5e17c0b29ac33bffb2
parentb2f1149b117986f407e4d84f0e6f04dbf68fb70b
armhf-64k-alignment

The upstream binutils commit below reduced the section alignment of
armhf executables (including shared libraries) from 64k to 4k, on the
basis that the additional bloat is not justified, given that arm64 hosts
running 64k pagesize kernels with armhf user space are not used in
practice.

However, the situation is slightly different today on Debian, where a
16k pagesize kernel is provided that enables compat support, and is
therefore able to execute armhf user space. The only impediment is the
fact that armhf binaries are no longer compatible with this, due to the
change below.

To accommodate this use case, revert the patch. This makes the generated
executables compatible with compat mode on arm64 systems running 16k
kernels.

Gbp-Pq: Name armhf-64k-alignment.diff
bfd/elf32-arm.c