in Debian we wanted to build bash with PIE enabled [1], but we discovered that
bash was broken under qemu-user when it was compiled that way [2].

It turns out that it's broken only when it uses bash's malloc
implementation. If we build bash with PIE and --without-bash-malloc then
we don't have the problem.

It would be nice if bash's malloc implementation could be fixed to also
work under qemu-user.

This was all tested with 4.4 patchlevel 18.

[1] https://bugs.debian.org/865599
    (see section about "pie", basically we add -fPIE to CFLAGS and -fPIE -pie to
[2] https://bugs.debian.org/889869
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/

Reply via email to