in Debian we wanted to build bash with PIE enabled , but we discovered that
bash was broken under qemu-user when it was compiled that way .
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.
(see section about "pie", basically we add -fPIE to CFLAGS and -fPIE -pie to
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/