diff options
author | Christian Heimes <christian@cheimes.de> | 2013-10-22 08:22:29 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-10-22 08:22:29 (GMT) |
commit | 49e61806f5675c7830f2290f3099588bd8f221dc (patch) | |
tree | ba77cd5b1b7bf7aa86540179f9bb2008ea449bbf | |
parent | e45975080bc4e63647da10dfc1157f2868211035 (diff) | |
download | cpython-49e61806f5675c7830f2290f3099588bd8f221dc.zip cpython-49e61806f5675c7830f2290f3099588bd8f221dc.tar.gz cpython-49e61806f5675c7830f2290f3099588bd8f221dc.tar.bz2 |
Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the
Python executable and not removed by the linker's optimizer.
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Python/pythonrun.c | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -12,6 +12,9 @@ What's New in Python 3.3.3 release candidate 1? Core and Builtins ----------------- +- Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the + Python executable and not removed by the linker's optimizer. + - Issue #19279: UTF-7 decoder no more produces illegal strings. - Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at diff --git a/Python/pythonrun.c b/Python/pythonrun.c index ee277b6..832df53 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -96,6 +96,10 @@ int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */ PyThreadState *_Py_Finalizing = NULL; +/* Hack to force loading of object files */ +int (*_PyOS_mystrnicmp_hack)(const char *, const char *, Py_ssize_t) = \ + PyOS_mystrnicmp; /* Python/pystrcmp.o */ + /* PyModule_GetWarningsModule is no longer necessary as of 2.6 since _warnings is builtin. This API should not be used. */ PyObject * |