Re[2]: [Gc] Re: [PATCH] Dealing with `.data.rel.ro'

Ivan Maidanski ivmai at mail.ru
Wed Apr 29 02:00:54 PDT 2009


Hi!

ludo at gnu.org (Ludovic CourtХs) wrote:
> Hello,
> "Boehm, Hans" <hans.boehm at hp.com> writes:
> ...
> > Thus it's not implausible that a user would call
> > GC_exclude_static_roots on something inside a GNU_RELRO section?
> 
> Yes, although users could assume that `const'-qualified areas are not
> scanned by default, regardless of whether they are relocatable or not (I
> mean, an application writer doesn't necessarily pay attention to this).

A developer might manually (temporarily) exclude a `const'-qualified area to work around a compiler/linker bug (eg., see such bug in http://sourceforge.net/tracker/?func=detail&aid=2364034&group_id=202880&atid=983354).
Although this is ugly, it must not break the collector.

Bye.


More information about the Gc mailing list