runtime: Check _end rather than end to find end of program.
commit08d22f9b41e46aba888e694f380e78d05c4321a2
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Jul 2013 17:37:07 +0000 (24 17:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Jul 2013 17:37:07 +0000 (24 17:37 +0000)
tree4bb653dd86ad7900797661b952db05e7dcb8f000
parentf735ce315f6d9ee0c67c319d4ad58b65ed4ab28b
runtime: Check _end rather than end to find end of program.

This fixes a problem on Solaris, where end is not defined in
the main program but comes from some shared library.  This
only matters for 32-bit targets.

From-SVN: r201220
libgo/runtime/malloc.goc