Re: [Gc] Re: [PATCH] Dealing with `.data.rel.ro'
ivmai at mail.ru
Wed Apr 29 02:00:54 PDT 2009
ludo at gnu.org (Ludovic CourtХs) wrote:
> "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 https://sourceforge.net/tracker/?func=detail&aid=2364034&group_id=202880&atid=983354).
Although this is ugly, it must not break the collector.
More information about the Gc