On 05/16/2016 11:09 AM, Andreas Schwab wrote:
Florian Weimer <fwei...@redhat.com> writes:
But my test says that at least part of .bss in the main executable is
*not* executable.
Build with -mbss-plt -Wl,--bss-plt.
This gives me:
FAIL exec .bss data (unexpected result)
FAIL exec .data (unexpected result)
FAIL exec malloc (small) (unexpected result)
FAIL exec malloc (page size) (unexpected result)
And this is somewhat expected: There is an RWX LOAD segment which covers
.bss and .data, and it also overlaps with the heap.
So maybe we can change the kernel heap default in case there is no RWX
LOAD segment, so that most binaries get a non-executable heap? What do
you think?
Thanks,
Florian
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev