rt_finalize WTFs?

Jacob Carlborg doob at me.com
Mon Dec 5 23:26:26 PST 2011


On 2011-12-05 23:45, Iain Buclaw wrote:
> On 5 December 2011 22:34, Martin Nowak<dawg at dawgfoto.de>  wrote:
>> We currently add something from etext to _end (rt.memory) as static root.
>> This probably contains read-only sections, data from other languages
>> and (unlikely) other unrelated sections.
>> I think some help from the compiler will be necessary to support
>> shared libraries anyhow, so we should be able to get a precise range.
>>
>
> Indeed.  The current implementation kicking around is to scan
> /proc/self/maps on init (this is true for the runtime that ships with
> GDC at least).  Which is not the most pleasant of things to do - not
> to mention only supports Unix-flavoured systems, but it works well
> enough for when linking against shared D libraries.

/proc doesn't exist on Mac OS X.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list