shared lib and __data_start

Jacob Carlborg doob at me.com
Mon Nov 12 01:02:53 PST 2012


On 2012-11-12 09:54, Johannes Pfau wrote:

> But anyway, the runtime uses __data_start to find the data
> section which should be scanned by the gc (see rt.memory). I really
> doubt this approach will work in an application with multiple shared
> libraries.

I'm not sure but I think it won't. The runtime needs to iterate all 
loaded images (executables and dynamic libraries) and collect the data 
section of each image.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list