About dlclose in rtl

xuelin.tian at qkmtech.com xuelin.tian at qkmtech.com
Tue Jun 6 09:11:52 UTC 2017


I check this flag becomes available in SUSv3 standard after glibc2.2. 
My concern is whether dlclose can reset (or delete) the static variables defined in loaded xxx.rap. Or we need to delete static variables manually?



Best wishes,
xuelin.tian at qkmtech.com
 
From: Chris Johns
Date: 2017-06-06 17:06
To: xuelin.tian at qkmtech.com
CC: users at rtems.org
Subject: Re: About dlclose in rtl


On 6 Jun 2017, at 5:11 pm, "xuelin.tian at qkmtech.com" <xuelin.tian at qkmtech.com> wrote:

Sure, this makes sense. We need to take care of our own heap, tasks, and so on.
Does dlopen APIs in rtems reset or delete static variables in the same xxx.rap? In linux, dlopen would reset the static variables unless "RTLD_NODELETE" is specified.

Currently there is no support for RTLD_NODELETE and currently no plans to add it. There is no performance gain in using this flag. Is it in the standard?

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170606/def9b6b7/attachment-0002.html>


More information about the users mailing list