[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash's malloc does not work within qemu-user when compiled with PIE enab
Bash's malloc does not work within qemu-user when compiled with PIE enabled
Tue, 13 Feb 2018 12:41:13 +0100
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/
- Bash's malloc does not work within qemu-user when compiled with PIE enabled,
Raphael Hertzog <=