[pypy-svn] pypy default: With the mingw32 compiler, ".section .rdata" are mixed with function code.
amauryfa
commits-noreply at bitbucket.org
Tue Apr 26 00:20:53 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r43615:11ec65b8347f
Date: 2011-04-26 00:20 +0200
http://bitbucket.org/pypy/pypy/changeset/11ec65b8347f/
Log: With the mingw32 compiler, ".section .rdata" are mixed with function
code. OTOH, the end of the file is stuffed with "_loc.XXX" labels
diff --git a/pypy/translator/c/gcc/trackgcroot.py b/pypy/translator/c/gcc/trackgcroot.py
--- a/pypy/translator/c/gcc/trackgcroot.py
+++ b/pypy/translator/c/gcc/trackgcroot.py
@@ -1443,6 +1443,7 @@
class Mingw32AssemblerParser(DarwinAssemblerParser):
format = "mingw32"
+ r_sectionstart = re.compile(r"^_loc()")
FunctionGcRootTracker = Mingw32FunctionGcRootTracker
class MsvcAssemblerParser(AssemblerParser):
More information about the Pypy-commit
mailing list