mbox series

[for-9.2,0/6] linux-user: Fix elf load and vdso alignment

Message ID 20241112203757.804320-1-richard.henderson@linaro.org
Headers show
Series linux-user: Fix elf load and vdso alignment | expand

Message

Richard Henderson Nov. 12, 2024, 8:37 p.m. UTC
GDB picked up that we weren't properly honoring alignment.
After fixing that, reduce vdso alignment to minimum page size.


r~


Richard Henderson (6):
  linux-user: Honor elf alignment when placing images
  linux-user: Drop image_info.alignment
  linux-user/aarch64: Reduce vdso alignment to 4k
  linux-user/arm: Reduce vdso alignment to 4k
  linux-user/loongarch64: Reduce vdso alignment to 4k
  linux-user/ppc: Reduce vdso alignment to 4k

 linux-user/qemu.h                    |   1 -
 linux-user/elfload.c                 |  38 ++++++++++++++++++++-------
 linux-user/aarch64/Makefile.vdso     |   5 ++--
 linux-user/aarch64/vdso-be.so        | Bin 3224 -> 3224 bytes
 linux-user/aarch64/vdso-le.so        | Bin 3224 -> 3224 bytes
 linux-user/arm/Makefile.vdso         |   2 +-
 linux-user/arm/vdso-be.so            | Bin 2648 -> 2648 bytes
 linux-user/arm/vdso-le.so            | Bin 2648 -> 2648 bytes
 linux-user/loongarch64/Makefile.vdso |   3 ++-
 linux-user/loongarch64/vdso.so       | Bin 3560 -> 3560 bytes
 linux-user/ppc/Makefile.vdso         |   6 +++--
 linux-user/ppc/vdso-32.so            | Bin 3020 -> 3020 bytes
 linux-user/ppc/vdso-64.so            | Bin 3896 -> 3896 bytes
 linux-user/ppc/vdso-64le.so          | Bin 3896 -> 3896 bytes
 14 files changed, 39 insertions(+), 16 deletions(-)