"Pierre d'Herbemont" stegefin@free.fr writes:
On Mac OS X There is no _end symbol. There is a convenience function get_end() to replace it, mainly because of the Mach-O file format. So we have to get the value of get_end at launch time and store it in the nt_header.
Does get_end really return the _end value of the current library? I suspect it returns the value for the main executable in all cases, which is not what we need here.