aboutsummaryrefslogtreecommitdiff
path: root/linux-headers
diff options
context:
space:
mode:
authorAlex Suykov <alex.suykov@gmail.com>2016-08-15 20:32:48 +0300
committerAndrew Waterman <waterman@eecs.berkeley.edu>2016-08-15 10:32:48 -0700
commit006846161cc2f3de5a34f57d77fd8999f183fe48 (patch)
tree159561404d08dac1b77395162e8271b7999b7d2d /linux-headers
parentbfbfdec43fc89a6bed4e3b823badcc1414e73740 (diff)
downloadriscv-gnu-toolchain-006846161cc2f3de5a34f57d77fd8999f183fe48.zip
riscv-gnu-toolchain-006846161cc2f3de5a34f57d77fd8999f183fe48.tar.gz
riscv-gnu-toolchain-006846161cc2f3de5a34f57d77fd8999f183fe48.tar.bz2
newlib: use brk(0) to get initial program break (#172)
There are no guarantees that the break going to be located exactly at the _end, but brk(0) is guaranteed to return its current value. QEMU ELF loader moves the initial break up to the next page boundary, disabling sbrk-based malloc for any allocations smaller than the adjustment made. And ASLR may do even worse.
Diffstat (limited to 'linux-headers')
0 files changed, 0 insertions, 0 deletions