This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/31634] *_SECTION_ASM_OP storage has undocumented constraints
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2007 12:42:52 -0000
- Subject: [Bug pch/31634] *_SECTION_ASM_OP storage has undocumented constraints
- References: <bug-31634-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from amylaar at gcc dot gnu dot org 2007-05-02 13:42 -------
(In reply to comment #1)
Actually, struct unnamed_section is not suitable for garbage collected memory.
The data member is skipped, and the callback member points to a function,
which can change position when address space randomization is in effect.
I think the best solution is not to garbage collect unnamed sections.
If precompiled headers are compatible, we should be using the same set of
unnamed
sections in the compilation that uses the header as in the compilation that
created the precompiled header.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31634